# Fixing aspect ratio and viewing angle of 3D plots using Plots.jl

**URL:** <https://discourse.julialang.org/t/fixing-aspect-ratio-and-viewing-angle-of-3d-plots-using-plots-jl/1556>\
**Category:** General Usage\
**Created:** [January 18, 2017, 12:02am UTC](https://discourse.julialang.org/t/fixing-aspect-ratio-and-viewing-angle-of-3d-plots-using-plots-jl/1556 "2017-01-18T00:02:46Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![sonicsmooth](https://avatars.discourse-cdn.com/v4/letter/s/b5ac83/32.png) [@sonicsmooth](https://discourse.julialang.org/u/sonicsmooth)\
**Post date:** [January 18, 2017, 12:02am UTC](https://discourse.julialang.org/t/fixing-aspect-ratio-and-viewing-angle-of-3d-plots-using-plots-jl/1556/1 "2017-01-18T00:02:46Z")

</div>

Hi, I’m trying out the various backends available for `Plots.jl`.

I’m looking for the functions to set the viewing angle and aspect ratios for `plot3d()` plots.

- With `gr` and `pyplot`, the plots come out sqashed.
- With `glvisualize` and `plotlyjs`, the plots are not squashed, but I wish to programmatically set the viewing angle.

Also, things like `title!(...)` don’t appear to work with `GLVisualize`. Is this expected at this point in its development?

thanks

---

<div class="post-metadata">

**Author:** ![rveltz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rveltz/32/2707_2.png) [@rveltz](https://discourse.julialang.org/u/rveltz)\
**Post date:** [September 19, 2017, 8:05am UTC](https://discourse.julialang.org/t/fixing-aspect-ratio-and-viewing-angle-of-3d-plots-using-plots-jl/1556/2 "2017-09-19T08:05:35Z")

</div>

Hi,

did you find a way to set the viewing angle?

---

<div class="post-metadata">

**Author:** ![mkborregaard](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkborregaard/32/556_2.png) [@mkborregaard](https://discourse.julialang.org/u/mkborregaard)\
**Post date:** [September 19, 2017, 8:49am UTC](https://discourse.julialang.org/t/fixing-aspect-ratio-and-viewing-angle-of-3d-plots-using-plots-jl/1556/3 "2017-09-19T08:49:06Z")

</div>

I’m pretty sure you can’t do that :-/

---

<div class="post-metadata">

**Author:** ![rveltz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rveltz/32/2707_2.png) [@rveltz](https://discourse.julialang.org/u/rveltz)\
**Post date:** [September 19, 2017, 11:25am UTC](https://discourse.julialang.org/t/fixing-aspect-ratio-and-viewing-angle-of-3d-plots-using-plots-jl/1556/4 "2017-09-19T11:25:58Z")

</div>

How do you generate figures for publication in that case? Rotate by hand? Use directly PyPlot?

---

<div class="post-metadata">

**Author:** ![mkborregaard](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkborregaard/32/556_2.png) [@mkborregaard](https://discourse.julialang.org/u/mkborregaard)\
**Post date:** [September 19, 2017, 11:44am UTC](https://discourse.julialang.org/t/fixing-aspect-ratio-and-viewing-angle-of-3d-plots-using-plots-jl/1556/5 "2017-09-19T11:44:09Z")

</div>

Yes, rotate by hand.

---

<div class="post-metadata">

**Author:** ![dpsanders](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dpsanders/32/3573_2.png) [@dpsanders](https://discourse.julialang.org/u/dpsanders)\
**Post date:** [September 19, 2017, 1:00pm UTC](https://discourse.julialang.org/t/fixing-aspect-ratio-and-viewing-angle-of-3d-plots-using-plots-jl/1556/6 "2017-09-19T13:00:00Z")

</div>

That seems rather unfortunate for reproducibility. Is that a limitation of the backends?

---

<div class="post-metadata">

**Author:** ![mkborregaard](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkborregaard/32/556_2.png) [@mkborregaard](https://discourse.julialang.org/u/mkborregaard)\
**Post date:** [September 19, 2017, 1:20pm UTC](https://discourse.julialang.org/t/fixing-aspect-ratio-and-viewing-angle-of-3d-plots-using-plots-jl/1556/7 "2017-09-19T13:20:40Z")

</div>

No, it could be implemented - it’s just that noone has come around to it yet:  
[https://github.com/JuliaPlots/Plots.jl/issues/288](https://github.com/JuliaPlots/Plots.jl/issues/288)

---

<div class="post-metadata">

**Author:** ![mkborregaard](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkborregaard/32/556_2.png) [@mkborregaard](https://discourse.julialang.org/u/mkborregaard)\
**Post date:** [September 19, 2017, 1:22pm UTC](https://discourse.julialang.org/t/fixing-aspect-ratio-and-viewing-angle-of-3d-plots-using-plots-jl/1556/8 "2017-09-19T13:22:08Z")

</div>

Ideally, someone who would find this feature really useful could try and give it a shot? 🙂

---

<div class="post-metadata">

**Author:** ![juliohm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/juliohm/32/215266_2.png) [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Post date:** [May 18, 2019, 1:17pm UTC](https://discourse.julialang.org/t/fixing-aspect-ratio-and-viewing-angle-of-3d-plots-using-plots-jl/1556/9 "2019-05-18T13:17:42Z")

</div>

It is now available: [https://github.com/JuliaPlots/Plots.jl/pull/1141](https://github.com/JuliaPlots/Plots.jl/pull/1141)
