You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ordering of colors when drawing a dodged bar plot seems to be reversed compared to the legend.
Using the example from the julialang.org benchmark plot but modifying the last line to make it a dodged bar plot:
p = plot(benchmarks,
x = :language,
y = :time,
color = :benchmark,
Scale.y_log10,
Guide.ylabel(nothing),
Guide.xlabel(nothing),
Theme(
default_point_size = 1mm,
guide_title_position = :left,
colorkey_swatch_shape = :circle,
minor_label_font = "Georgia",
major_label_font = "Georgia",
),
Geom.bar(position=:dodge),
)
draw(SVG("_includes/benchmarks.svg", 8inch, 8inch/golden), p)
Produces the following plot:
mandel is the first listed in the legend, but is the rightmost bar in each language. I would have expected the bars to be ordered left to right in accordance with the legend order, but it seems the reverse is the case?
The text was updated successfully, but these errors were encountered:
The ordering of colors when drawing a dodged bar plot seems to be reversed compared to the legend.
Using the example from the julialang.org benchmark plot but modifying the last line to make it a dodged bar plot:
Produces the following plot:
mandel is the first listed in the legend, but is the rightmost bar in each language. I would have expected the bars to be ordered left to right in accordance with the legend order, but it seems the reverse is the case?
The text was updated successfully, but these errors were encountered: