From 3e31c4363f03d41ca8409300b271e03a594354b8 Mon Sep 17 00:00:00 2001 From: Anshul Singhvi Date: Thu, 12 Sep 2019 15:42:54 -0400 Subject: [PATCH] add ribbon to refimages? --- src/examples.jl | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/examples.jl b/src/examples.jl index d55d3b4c..5f975dce 100644 --- a/src/examples.jl +++ b/src/examples.jl @@ -152,6 +152,23 @@ plot(y, line = (5, styles), label = map(string,styles), legendtitle = "linestyle end)] ), +PlotExample("Ribbons", + """ + Ribbons can be added to lines via the `ribbon` keyword; + you can pass a tuple of arrays (upper and lower bounds), + a single Array (for symmetric ribbons), a Function, or a number. + """, + [:(begin + plot( + plot(0:10; ribbon = (LinRange(0, 2, 10), LinRange(0, 1, 10))), + plot(0:10; ribbon = 0:0.5:5), + plot(0:10; ribbon = sqrt), + plot(0:10; ribbon = 1), + ) + end) + ] +), + PlotExample("Marker types", "", [:(begin @@ -165,7 +182,7 @@ PlotExample("Marker types", ), PlotExample("Bar", - "x is the midpoint of the bar. (todo: allow passing of edges instead of midpoints)", + "`x` is the midpoint of the bar. (todo: allow passing of edges instead of midpoints)", [:(begin bar(randn(99)) end)]