Skip to content

Commit a50362b

Browse files
committed
Fix bug in plotting command
1 parent c5a5f8c commit a50362b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plotting.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function Plots.plot(m::Model, component::Symbol, parameter::Symbol ; index::Symb
1515
if legend==nothing && isa(values, Array) && ndims(values)==2
1616
a = getindexlabels(m, component, parameter)
1717
a = Iterators.filter(i->i!=index, a)
18-
legend = a[1]
18+
legend = first(a)
1919
end
2020

2121
# Create axis labels

0 commit comments

Comments
 (0)