Skip to content

Subplot - #10

Merged
lava merged 2 commits into
lava:masterfrom
torfinnberset:subplot
Sep 22, 2016
Merged

Subplot#10
lava merged 2 commits into
lava:masterfrom
torfinnberset:subplot

Conversation

@torfinnberset

Copy link
Copy Markdown

Add subplot function

Fix typos, whitespace, and reorder functions
Add subplot functions
Comment thread matplotlibcpp.h
}


inline void subplot(long nrows, long ncols, long plot_number) {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work, thanks! But I think this function could be improved if

  • there was a check that args is not nullptr after calling PyTuple_New()
  • Py_DECREF(args) would be called before throwing the exception to avoid a memory leak

@lava
lava merged commit 741350f into lava:master Sep 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants