Skip to content

Commit 7971c66

Browse files
committed
updated margins on problems diagram
1 parent 4a3aa17 commit 7971c66

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

diagrams.jl

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ upperLine(x) = @. exp(-6*x+3)+1
1313
x = 0:0.01:1
1414
y1 = lowerLine(x)
1515
y2 = upperLine(x)
16-
plot(x, lowerLine, color=:black, label="", left_margin=5Plots.mm, xlim=(0,1), ylim=ylims; plotParams...)
16+
plot(x, lowerLine, color=:black, label="", xlim=(0,1), ylim=ylims; plotParams...)
1717
plot!(x, upperLine, color=:black, label="", xlabel="Parameter", ylabel="State", xticks=([p1, p2], [L"p_1", L"p_2"]), yticks=nothing; plotParams...)
1818

1919
# Continuation curve
@@ -41,15 +41,14 @@ xCurve1(y) = @. -curve1*(y-centery1)^2+centerx1
4141
xCurve2(y) = @. curve2*(y-centery2)^2+centerx2
4242

4343
y = 0:0.01:centery1
44-
plot(xCurve1(y), y, xlim=(0,1), ylim=(0,1), linestyle=:dot, color=:black, label="", left_margin=5Plots.mm; plotParams...)
44+
plot(xCurve1(y), y, xlim=(0,1), ylim=(0,1), linestyle=:dot, color=:black, label=""; plotParams...)
4545
y = centery1:0.01:1
46-
plot(xCurve1(y), y, xlim=(0,1), ylim=(0,1), color=:black, label="", left_margin=5Plots.mm; plotParams...)
46+
plot(xCurve1(y), y, xlim=(0,1), ylim=(0,1), color=:black, label=""; plotParams...)
4747
y = 0:0.01:centery2
4848
plot!(xCurve2(y), y, color=:black, label="Stable LC"; plotParams...)
4949
y = centery2:0.01:1
5050
plot!(xCurve2(y), y, color=:black, label="Unstable LC", linestyle=:dot, xticks=([p1, p2], [L"p_1", L"p_2"]), yticks=nothing; plotParams...)
5151
xlabel!("Parameter")
52-
ylabel!("State")
5352

5453
# Continuation curve
5554
criticalY = centery1+sqrt((centerx1-p1)/curve1)
@@ -65,7 +64,7 @@ plot!([p2, p2], [initialCondition, centery2-sqrt((p2-centerx2)/curve2)], label="
6564
# Initial Condition
6665
plotB = hline!([initialCondition], label="IC", color=:pink; plotParams...)
6766

68-
plot(plotA, plotB, layout=l, size=(539,250), dpi=300, margin=5Plots.mm, left_margin=10Plots.mm,
67+
plot(plotA, plotB, layout=l, size=(539,250), dpi=300, left_margin=4Plots.mm,
6968
title=["A" "B"], titlelocation=:left)
7069
savefig("results/diagrams/possibleProblems.pdf")
7170

-852 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)