-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Expose legend's line: legline._legmarker
as public
#20552
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
Comments
Labeling this as a good first issue as the tasks are:
might be worth keeping the |
- Link to Sphinx reStructuredText primer. - `make show` for opening locally built docs. Closes matplotlib#20552.
Looks like a typo in the issue number. |
I'm 👍 on keeping the Edit: It's even used in some pretty big and downloaded repos: https://github.com/h2oai/h2o-3/blob/177b9097febf3275c7651a766d2ecf316fe7f0e8/h2o-py/h2o/model/extensions/std_coef.py |
I think this would effectively be fixed by #11358. |
Agreed that #11358 would be nice. |
Hi @tacaswell, is this still open? I'm a first time contributor and would love to work on it. |
Problem
I would like to be able to modify the alpha of both the line and marker in a legend as an extension of this example: https://matplotlib.org/stable/gallery/event_handling/legend_picking.html
However, currently the only way to access the marker in in the legend in order to set it's alpha value is via the private
legline._legmarker
attribute.matplotlib/lib/matplotlib/legend_handler.py
Line 254 in 108e1b0
This is not ideal for the reasons that @jklymak noted in #9155 (comment)
So with the current public api the best you can achieve is:

when what I want is:

Proposed Solution
The simplest solution would be to drop the underscore on the legmarker and add modifying the marker to the example as a way of documenting.
The text was updated successfully, but these errors were encountered: