Skip to content

Commit 3e44874

Browse files
committed
Don't doctest plot labelling
1 parent b2a42e3 commit 3e44874

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/plot_utils.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Get string labels for for each index of a `ComponentVector`. Useful for automatic plot legend labelling.
66
77
# Examples
8-
```jldoctest
8+
```
99
julia> x = ComponentArray(a=5, b=[(a=(a=20,b=1), b=0), (a=(a=33,b=1), b=0)], c=(a=(a=2, b=[1,2]), b=[1. 2.; 5 6]))
1010
ComponentVector{Float64}(a = 5.0, b = [(a = (a = 20.0, b = 1.0), b = 0.0), (a = (a = 33.0, b = 1.0), b = 0.0)], c = (a = (a = 2.0, b = [1.0, 2.0]), b = [1.0 2.0; 5.0 6.0]))
1111
@@ -46,11 +46,11 @@ _labels(x) = ""
4646
Convert labels made by `labels` function to an array of flat indices of a `ComponentVector`.
4747
4848
# Examples
49-
```jldoctest
49+
```
5050
julia> x = ComponentArray(a=5, b=[(a=(a=20,b=1), b=0), (a=(a=33,b=1), b=0)], c=(a=(a=2, b=[1,2]), b=[1. 2.; 5 6]))
5151
ComponentVector{Float64}(a = 5.0, b = [(a = (a = 20.0, b = 1.0), b = 0.0), (a = (a = 33.0, b = 1.0), b = 0.0)], c = (a = (a = 2.0, b = [1.0, 2.0]), b = [1.0 2.0; 5.0 6.0]))
5252
53-
julia> labels(x)
53+
julia> ComponentArrays.labels(x)
5454
14-element Vector{String}:
5555
"a"
5656
"b[1].a.a"
@@ -67,13 +67,13 @@ julia> labels(x)
6767
"c.b[1,2]"
6868
"c.b[2,2]"
6969
70-
julia> label2index(x, "c.a")
70+
julia> ComponentArrays.label2index(x, "c.a")
7171
3-element Vector{Int64}:
7272
8
7373
9
7474
10
7575
76-
julia> label2index(x, "b[1]")
76+
julia> ComponentArrays.label2index(x, "b[1]")
7777
3-element Vector{Int64}:
7878
2
7979
3

0 commit comments

Comments
 (0)