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 14, 2022
1 parent baeaa50 commit 9f73560
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/backends/pgfplotsx.jl
Original file line number Diff line number Diff line change
Expand Up @@ -224,12 +224,13 @@ function (pgfx_plot::PGFPlotsXPlot)(plt::Plot{PGFPlotsXBackend})
if RecipesPipeline.is3d(sp)
push!(
axis_opt,
"unit vector ratio" =>
if (ar = sp[:aspect_ratio]) !== :auto && ar !== :equal
join(ar, ' ')
else
1
end,
"unit vector ratio" => if (ar = sp[:aspect_ratio]) === :auto
""
elseif ar === :equal
1
else
join(ar, ' ')
end,
"view" => tuple(sp[:camera]),
)
end
Expand Down

0 comments on commit 9f73560

Please sign in to comment.