Line styles

Source code Author Update time

using Plots
gaston()
styles = filter((s->begin
                s in Plots.supported_styles()
            end), [:solid, :dash, :dot, :dashdot, :dashdotdot])
styles = reshape(styles, 1, length(styles))
n = length(styles)
y = cumsum(randn(20, n), dims = 1)
plot(y, line = (5, styles), label = map(string, styles), legendtitle = "linestyle")
Gnuplot Produced by GNUPLOT 5.2 patchlevel 8 -5.0 -2.5 0.0 2.5 5.0 5 10 15 20 solid dash dot dashdot dashdotdot linestyle solid solid dash dash dot dot dashdot dashdot dashdotdot dashdotdot

This page was generated using DemoCards.jl and Literate.jl.

This documentation is not for the latest stable release, but for either the development version or an older release.
Click here to go to the documentation for the latest stable release.