← 输入框|github.com|刷新
Skip to content

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

@butterw 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

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

butterw commented Jun 15, 2011

Copy link
Copy Markdown
Author

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

@mdboom

mdboom commented Jun 15, 2011

Copy link
Copy Markdown
Member

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

@butterw

butterw commented Jun 15, 2011

Copy link
Copy Markdown
Author

the commits seem to have messed up a bit !

@ddale

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
butterw merged commit c5c9f69 into matplotlib:master Jun 17, 2011
@richbwood richbwood mentioned this pull request Dec 19, 2012
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