FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

new feature: named figures by butterw · Pull Request #100 · matplotlib/matplotlib · GitHub

Repository navigation

new feature: named figures - #100

Merged
butterw merged 0 commit into
matplotlib:masterfrom
butterw:master
Jun 17, 2011
Merged

butterw merged 0 commit into
matplotlib:masterfrom
butterw:master

Conversation

butterw commented Apr 28, 2011

Copy link
Copy Markdown

I will add some test to support the proposed new feature.

I've not implemented plt.close("today"), because I'm unsure whether it is absolutely required.

PS: It doesn't seem possible to attach a pull request to an existing issue ?

butterw commented Apr 28, 2011

Copy link
Copy Markdown
Author

I've closed the previously opened issue (that didn't contain any code):

this small addition will make it possible to use explicitly named figures in pyplot.figure

Example:

plt.figure("today")
opens new or existing figure with label "today".
In windowed backends, the title of the figure window will be set to "today" instead of Figure 1.
Internally all figures remain tracked using fig.number.

The expected benefit of this patch is to make it easier to switch between multiple figures.

butterw commented Jun 15, 2011

Copy link
Copy Markdown
Author

I've now added tests >> The code is ready for review.

mdboom commented Jun 15, 2011

Copy link
Copy Markdown
Member

Nice. I think plt.close('today') should be added, though, for completeness.

butterw commented Jun 15, 2011

Copy link
Copy Markdown
Author

the commits seem to have messed up a bit !

ddale commented Jun 16, 2011

Copy link
Copy Markdown
Contributor

This can't be merged in its current state. Please redo commit a2e82eb without adding the example files.

butterw merged commit c5c9f69 into matplotlib:master Jun 17, 2011
richbwood mentioned this pull request Dec 19, 2012
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

3 participants


Back | FazBrowse Home | New Git URL