Skip to content

Commit

Permalink
rework aspect ratio (pr 4231)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-bltg committed Jul 11, 2022
1 parent c113bdf commit 4486e9b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/backends/pgfplotsx.jl
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,12 @@ function (pgfx_plot::PGFPlotsXPlot)(plt::Plot{PGFPlotsXBackend})
push!(
axis_opt,
"unit vector ratio" =>
if (ar = sp[:aspect_ratio]) !== :auto && ar !== :equal
join(ar, ' ')
else
if (ar = sp[:aspect_ratio]) === :auto
""
elseif ar === :equal
1
else
join(ar, ' ')
end,
"view" => tuple(sp[:camera]),
)
Expand Down

0 comments on commit 4486e9b

Please sign in to comment.