Step Types

Source code Author Update time

using Plots
gaston()

A comparison of the various step-like seriestypes

x = 1:5
y = [1, 2, 3, 2, 1]
default(shape = :circle)
plot(plot(x, y, markershape = :circle, seriestype = :steppre, label = "steppre"), plot(x, y, markershape = :circle, seriestype = :stepmid, label = "stepmid"), plot(x, y, markershape = :circle, seriestype = :steppost, label = "steppost"), layout = (3, 1))
Gnuplot Produced by GNUPLOT 5.4 patchlevel 2 1.0 1.5 2.0 2.5 3.0 1 2 3 4 5 steppre gnuplot_plot_2a steppre steppre gnuplot_plot_2a 1.0 1.5 2.0 2.5 3.0 1 2 3 4 5 stepmid gnuplot_plot_2b stepmid stepmid gnuplot_plot_2b 1.0 1.5 2.0 2.5 3.0 1 2 3 4 5 steppost gnuplot_plot_2c steppost steppost gnuplot_plot_2c

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