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


#1

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


#2

Hi,

did you find a way to set the viewing angle?


#3

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


#4

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


#5

Yes, rotate by hand.


#6

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


#7

No, it could be implemented - it’s just that noone has come around to it yet:


#8

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