-
-
Notifications
You must be signed in to change notification settings - Fork 355
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
Adding arbitrary legend_columns for python-backends #4678
base: master
Are you sure you want to change the base?
Conversation
Also interesting to note: |
Apparently for the So although my plans where ambitious, I think adding this option for |
FWIW pgfplots also sorts these row-major |
Hmm 🤔 |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #4678 +/- ##
==========================================
- Coverage 90.42% 90.40% -0.02%
==========================================
Files 40 40
Lines 8703 8706 +3
==========================================
+ Hits 7870 7871 +1
- Misses 833 835 +2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
It would be possible to let the sign carry the majorness. |
I also thought about that, but then -1 for horizontal would probably not be the right choice anymore but instead -nseries. So I think that this is not the best solution. |
See also #2047. |
That's a good point. However, I also want to give the pgfplotsx backend another look. |
It is already working for that. Consider: julia> using Plots; pgfplotsx()
Plots.PGFPlotsXBackend()
julia> plot(rand(4,4), legend_columns = 2)
Its just that your example errors because pgfplots errors on too small labels for some reason... |
That's good to know. |
@briederer is this good to go? |
Oh sorry, totally forgot about this. |
bump |
kindly reminder |
As a follow up to #4645 I am trying to implement the feature also for other backends.
As asked in #4645 (comment) by @lmanzanillas I have started with the
PythonPlot
backend, which has been rather trivial in principle. However, I could not reproduce the behaviour of a fully horizontal legend forlegend_columns=-1
like ingr()
. I.e. thelegend_title
being on the same line as the series labels.I'll have a look at the other backends too and then also create Test Images for the docs.
Samples
GR
PythonPlot
Other Backends
To be done.