I’m creating a 3D plot via splot
in gnuplot and want to manually set the scaling (/aspect ratio) of all three axes.
The scale of the z axis can be set using the fourth argument of the set view
command, but not the scale of the x or y axis.
For a 2D plot, you can set the aspect ratio of the x and y axes with set size ratio <r>
, but this does not work in a 3D plot.
(You can also do set size <xscale>,<yscale>
which works for a 2D plot, but for a 3D plot, it scales the final 2D projection on screen, not the axes.)
The only option for a 3D plot I can find is set view equal xy
(and set view equal xyz
) which force the axes to a 1:1(:1) aspect ratio. But I want to set my own aspect ratio.
How do I manually scale the x and y axes of a 3D plot (or set the aspect ratio between them)?
(The only workaround I can think of is scaling the data itself, and then modifying the tick marks to compensate. But it feels like there has to be a better way.)