Skip to content

Commit 7741be7

Browse files
authored
Fix docs (#69)
* Fix docs
1 parent d98de3d commit 7741be7

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "UnitfulRecipes"
22
uuid = "42071c24-d89e-48dd-8a24-8a12d9b8861f"
33
authors = ["Benoit Pasquier", "Jan Weidner"]
4-
version = "1.5.2"
4+
version = "1.5.3"
55

66
[deps]
77
RecipesBase = "3cdcf5f2-1ef4-517c-9805-6587b60abb01"

docs/lit/examples/2_Plots.jl

+14-12
Original file line numberDiff line numberDiff line change
@@ -75,35 +75,37 @@ n = length(styles)
7575
y = cumsum(randn(20, n), dims=1) * u"km"
7676
plot(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+
8888
x = y = (0:10)*u"m"
8989
plot(
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 = 1u"m", label = "Constant"), link=:all
92+
plot(x,y; ribbon = 1u"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+
99101
x = y = (0:10)*u"m"
100102
plot(
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 = 0u"m", label = "Constant"), link = :all
105+
plot(x,y; fillrange = 0u"m", label = "Constant"),
106+
link = :all
104107
)
105108

106-
107109
# ## Marker types
108110

109111
markers = intersect(Plots._shape_keys, Plots.supported_markers())

0 commit comments

Comments
 (0)