Open pgf-tikz-bot opened 9 years ago
Migrated from SourceForge https://sourceforge.net/p/pgfplots/bugs/80/#1bc7 Author: ljeub Timestamp: 2015-03-20 16:08:16.469000
https://sourceforge.net/p/pgfplots/bugs/_discuss/thread/f046cb65/1bc7/attachment/test2.png
And here is what it looks like with unit vector ratio=2 2 1
for the 3d axis. Note that the aspect ratio of the 3d axis is correct but it does not expand to the specified width and height. Try uncommenting different combinations of unit vector ratio
and scale uniformly strategy
to see some other strange behaviour, such as differently sized axes for values of the unit vector ratio
that should be equivalent.
Migrated from SourceForge https://sourceforge.net/p/pgfplots/bugs/80/ Author: ljeub Timestamp: 2015-03-20 16:02:12.891000
https://sourceforge.net/p/pgfplots/bugs/80/attachment/test.png Hi,
I was trying to implement 3d-plots with fixed aspect ratio (see https://github.com/matlab2tikz/matlab2tikz/pull/560), and I ran into issues with the behaviour of
scale mode=scale uniformly
andunit vector ratio
.Consider this example, which is set up such that the
width
andheight
constraints can both be satisfied simultaneously, and theunit vector ratio=2 2 1
is set up such that it should produce equivalent results toplot box ratio=3 2 1
which behaves as expected:Here is what the example looks like: