| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
I don't think the figure name should appear in the canvas. Naming a figure is not the same thing as giving a figure or axes a title. |
Sorry, something went wrong.
|
This is done only in the image comparison test. Le , ddale
|
Sorry, something went wrong.
There was a problem hiding this comment.
I don't think the logic here is correct. There is no guarantee that the index of figLabel corresponds to the figure number.
Sorry, something went wrong.
There was a problem hiding this comment.
should be:
num = allLabels.index(figLabel)
num = allnums[num]
Sorry, something went wrong.
|
To elaborate my comment on the source code, here is an example import matplotlib.pyplot as plt
f1 = plt.figure("1")
f2 = plt.figure("2")
f3 = plt.figure("3")
plt.close("1")
from matplotlib.pyplot import _pylab_helpers
figManagers = _pylab_helpers.Gcf.get_all_fig_managers()
print [m.num for m in figManagers]
And it prints out [2, 3] We may use a dictionary that maps labels to figure numbers. |
Sorry, something went wrong.
|
There was a mistake in the code (corrected below). I don't think Dictionnary access is possible because labels are not guaranteed to be unique. correct version: |
Sorry, something went wrong.
|
Please push your changes into your repo. Eric commented on the issue of using "all" as a figure name (#99 (comment)). And I think it is better to explicitly prevent it from being used. |
Sorry, something went wrong.
|
What is the desired behavior when a new figure('all') is created ?
I think 'all' is a reasonable value for creating/selecting a named figure. It's only if close('all') is called that there is a possible issue. Therefore, I would go with solution 2). the warning message could be the following: |
Sorry, something went wrong.
|
Okay. With a reasonable warning message, option 2 should be good. |
Sorry, something went wrong.
|
The feature is fully implemented and ready for pull. |
Sorry, something went wrong.
Named Figures feature: plot('today')
|
This seems to me like a useful and logical feature, and a bit of testing turned up no surprises, so I saw no reason not to merge it. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Continued from issue #100 (my repo was messed up).
Hopefully this time it works...