GiovineItalia / Gadfly.jl

Crafty statistical graphics for Julia.
http://gadflyjl.org/stable/
Other
1.9k stars 250 forks source link

Please add a feature to vary the thickness of the line in Geom.line and Geom.path #1613

Open arinbasu opened 1 year ago

arinbasu commented 1 year ago

Geom.line and Geom.path are widely used for a range of different visualisations. Both these features can gain if a line thickness or linesize parameter is added to the function. Can you please add a linesize parameter, such that we could do something like Geom.line(size = somevalue) OR Geom.line(size = :some_variable) and depending in the value of the variable, the thickness of the line would change. I was working on the codes in ggplot by Hadley Wickham from his article layered grammar of graphics where he demonstrated this feature for drawing Minard's March. I could reproduce most of Minard's March through Gadfly, but the variable thickness of the lines would be useful.

bjarthur commented 1 year ago

have you tried line_width in a Theme? see http://gadflyjl.org/stable/lib/gadfly/#Gadfly.Theme