Skip to content

axes selection in axes editor #5468

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
anntzer opened this issue Nov 12, 2015 · 4 comments
Closed

axes selection in axes editor #5468

anntzer opened this issue Nov 12, 2015 · 4 comments
Milestone

Comments

@anntzer
Copy link
Contributor

anntzer commented Nov 12, 2015

Currently, when there are multiple axes, the curves line and axes editor (aka the green tick button) first pops a window to select the axes, with entries such as

title (<matplotlib.axes._subplots.AxesSubplot object at 0x...>) # if there is a title
<matplotlib.axes._subplots.AxesSubplot object at 0x...> # if there is no title

I would suggest switching this to something more user-friendly such as

title
<anonymous axes>

possibly keeping the class name and object id as tooltips.

Thoughts?

@mdboom mdboom added this to the proposed next point release (2.1) milestone Nov 12, 2015
@mdboom
Copy link
Member

mdboom commented Nov 12, 2015

Cc: @mfitzp

@tacaswell
Copy link
Member

👍

@anntzer
Copy link
Contributor Author

anntzer commented Nov 21, 2015

While working on this I realized that the selection dialog (backend_qt5.py lines 620+) would default to a combination of the axes title, axes ylabel, axes label and axes repr (depending on what is available). In particular I had not noticed that axes can have a label set by set_label (like any artist). Is this label used anywhere else?

anntzer added a commit to anntzer/matplotlib that referenced this issue Dec 13, 2015
Replace the old label, which included the legthy repr of the axes
object, to a nicer label which emphasizes the title or axes labels
(depending on what is present).  Also drops the use of the label of the
Axes object itself, for which I haven't found any other reference or use
in general.  (Another option would be to use solely `Axes.get_label()`
when defined, as this doesn't seem to have any other use.)

See matplotlib#5468.
anntzer added a commit to anntzer/matplotlib that referenced this issue Dec 13, 2015
Replace the old label, which included the legthy repr of the axes
object, to a nicer label which emphasizes the title or axes labels
(depending on what is present).  Also drops the use of the label of the
Axes object itself, for which I haven't found any other reference or use
in general.  (Another option would be to use solely `Axes.get_label()`
when defined, as this doesn't seem to have any other use.)

See matplotlib#5468.
@anntzer
Copy link
Contributor Author

anntzer commented Dec 20, 2015

Closed by #5667.

@anntzer anntzer closed this as completed Dec 20, 2015
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

No branches or pull requests

3 participants