@@ -75,35 +75,37 @@ n = length(styles)
75
75
y = cumsum (randn (20 , n), dims= 1 ) * u " km"
76
76
plot (y, line= (5 , styles), label= map (string, styles), legendtitle= " linestyle" )
77
77
78
-
79
78
# ## Ribbons
80
- #
79
+
81
80
# Ribbons can be added to lines via the `ribbon` keyword;
82
81
# 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. )
87
86
#
87
+
88
88
x = y = (0 : 10 )* u " m"
89
89
plot (
90
- # plot((0:10)*u"m"; ribbon = (LinRange(0, 2, 11)*u"m", LinRange(0, 1, 11)*u"m")),
91
90
plot (x,y; ribbon = (0 : 0.5 : 5 )* u " m" , label = " Vector" ),
92
91
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
94
94
)
95
95
96
96
# ## 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
+
99
101
x = y = (0 : 10 )* u " m"
100
102
plot (
101
103
plot (x,y; fillrange = (0 : 0.5 : 5 )* u " m" , label = " Vector" ),
102
104
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
104
107
)
105
108
106
-
107
109
# ## Marker types
108
110
109
111
markers = intersect (Plots. _shape_keys, Plots. supported_markers ())
0 commit comments