Adding arbitrary legend_columns for python-backends#4678
Adding arbitrary legend_columns for python-backends#4678briederer wants to merge 5 commits intoJuliaPlots:masterfrom
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
PythonPlotbackend, which has been rather trivial in principle. However, I could not reproduce the behaviour of a fully horizontal legend forlegend_columns=-1like ingr(). I.e. thelegend_titlebeing 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.