forked from JuliaPlots/AbstractPlotting.jl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
7 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
83c2a27
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Concerning: MakieOrg/Makie.jl#308 and MakieOrg/Makie.jl#302
e.g. the example listed in MakieOrg/Makie.jl#308,
https://simondanisch.github.io/ReferenceImages/gallery///labels//index.html
the labels are printed back-to-front, e.g. attribute 4 ... 1 instead of 1...4.
Changes order of legends: currently, legends are printed back-to-front (with increasing y position value); this PR changes the y position of text and graphics from
i-1
ton-i
, wheren=num_of_labels
is the total number of labels. Changes are made to the text and graphical part of the legends.For the text part:
labels
is an array of strings, sonum_of_labels = length(labels)
[in
map_once(labels, args...)
]For the graphical part [in
function make_label
], the total number of labels is obtained fromattributes[:labels]
, which is anObservable
, so I used[]
to convert to a normal array (is this the acceptable way of doing this?)example: