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 palette for discrete scales can be changed using Theme, see the Tutorial.
For line styles, the default palette is Theme().line_style. Custom line styles are possible:
using Compose, DataFrames, Gadfly, RDatasets
D =dataset("ggplot2", "economics")
Dl =stack(D[:, [1,2,6]], Not(:Date))
# Example of a custom line style palette
lstyle = [[1, 1].*3.0mm, [5, 2, 3, 2].*2.0pt]
p =plot(Dl, x=:Date, y=:value, color=:variable, linestyle=:variable,
Geom.line, Scale.y_log10,
# Theme(line_style=[:dot, :dash])Theme(line_style=lstyle)
)
Is it possible to add this function in the future?
Because sometimes I find the default arrangement of line styles may not fit well for certain shapes of lines.
Thank you.
The text was updated successfully, but these errors were encountered: