Skip to content

Commit

Permalink
add ylims
Browse files Browse the repository at this point in the history
  • Loading branch information
Uwe Fechner committed Sep 13, 2024
1 parent 7346c61 commit e9a3f99
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/plot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,18 @@ function plot(X, Y1::AbstractVector{<:Number}, Y2::AbstractVector{<:Number};
if ylabels != ["", ""]
plt.ylabel(ylabels[1], fontsize=ysize);
end
if ! isnothing(ylims)
plt.ylim(ylims[1])
end
plt.twinx()
else
l2, = plt.plot(X, Y; label=labels[i], color="red")
if ylabels[2] != ""
plt.ylabel(ylabels[2], fontsize=ysize);
end
if ! isnothing(ylims)
plt.ylim(ylims[2])
end
end
end

Expand Down

0 comments on commit e9a3f99

Please sign in to comment.