Skip to content

Commit

Permalink
weaker grid
Browse files Browse the repository at this point in the history
  • Loading branch information
Uwe Fechner committed May 3, 2024
1 parent a9643ae commit 857c5f0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ControlPlots.jl
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ function plot(X, Ys::AbstractVector{<:AbstractVector}; xlabel="", ylabel="",
plt.xlim(xlims)
end
plt.grid(true)
plt.grid(which="major", color="#DDDDDD")
plt.legend()
plt.tight_layout()
else
Expand Down Expand Up @@ -92,6 +93,7 @@ function plot(X, Y::AbstractVector{<:Number}; xlabel="", ylabel="", xlims=nothin
plt.annotate(ann[3], xy=(ann[1], ann[2]), fontsize = 14)
end
plt.grid(true)
plt.grid(which="major", color="#DDDDDD")
plt.tight_layout()
end
PlotX(X, Y, nothing, xlabel, ylabel, ysize, xlims, ylims, ann, fig, 1)
Expand Down Expand Up @@ -122,6 +124,7 @@ function plotx(X, Y...; xlabel="time [s]", ylabels=nothing, xlims=nothing, ylims
plt.xlim(X[begin], X[end])
plt.ylabel(lbl; fontsize=ysize);
plt.grid(true)
plt.grid(which="major", color="#DDDDDD")
if i < len
plt.setp(ax[i].get_xticklabels(), visible=false)
end
Expand All @@ -143,6 +146,7 @@ function plotxy(X, Y; xlabel="", ylabel="", xlims=nothing, ylims=nothing, ann=no
plt.xlabel(xlabel, fontsize=14);
plt.ylabel(ylabel, fontsize=ysize);
plt.grid(true)
plt.grid(which="major", color="#DDDDDD")
plt.tight_layout()
end
PlotX(X, Y, nothing, xlabel, ylabel, ysize, xlims, ylims, ann, fig, 3)
Expand Down

0 comments on commit 857c5f0

Please sign in to comment.