@@ -75,35 +75,37 @@ n = length(styles)
7575y = cumsum (randn (20 , n), dims= 1 ) * u " km"
7676plot (y, line= (5 , styles), label= map (string, styles), legendtitle= " linestyle" )
7777
78-
7978# ## Ribbons
80- #
79+
8180# Ribbons can be added to lines via the `ribbon` keyword;
8281# you can pass:
83- # * a single Array (for symmetric ribbons)
84- # * a Function
85- # * or a number.
86- # Currently unsupported: a tuple of arrays ( upper and lower bounds)
82+ # * an array (for symmetric ribbons)
83+ # * a function
84+ # * a number
85+ # (Tuple of arrays for upper and lower bounds are currently unsupported. )
8786#
87+
8888x = y = (0 : 10 )* u " m"
8989plot (
90- # plot((0:10)*u"m"; ribbon = (LinRange(0, 2, 11)*u"m", LinRange(0, 1, 11)*u"m")),
9190 plot (x,y; ribbon = (0 : 0.5 : 5 )* u " m" , label = " Vector" ),
9291 plot (x,y; ribbon = sqrt, label = " Function" ),
93- plot (x,y; ribbon = 1 u " m" , label = " Constant" ), link= :all
92+ plot (x,y; ribbon = 1 u " m" , label = " Constant" ),
93+ link= :all
9494)
9595
9696# ## Fillrange
97- # the fillrange keyword defines a second line and fills between it and the y data.
98- # Note: ribbons are fillranges
97+
98+ # The fillrange keyword defines a second line and fills between it and the y data.
99+ # Note: ribbons are fillranges.
100+
99101x = y = (0 : 10 )* u " m"
100102plot (
101103 plot (x,y; fillrange = (0 : 0.5 : 5 )* u " m" , label = " Vector" ),
102104 plot (x,y; fillrange = sin, label = " Function" ),
103- plot (x,y; fillrange = 0 u " m" , label = " Constant" ), link = :all
105+ plot (x,y; fillrange = 0 u " m" , label = " Constant" ),
106+ link = :all
104107)
105108
106-
107109# ## Marker types
108110
109111markers = intersect (Plots. _shape_keys, Plots. supported_markers ())
0 commit comments