Hi Is it possible in gnuplot to set scales so that length of scaleX and scaleY would be the same?? I tried different tricks (set size, set ratio etc) but even if the range of scaleX and scaleY is the same - the length of that scales are different. It looks like length of range from 0 to 1(on scalex) is greater then length of range from 0 to 1 (on scaleY).
Asked
Active
Viewed 7.5k times
3 Answers
55
Actually, set size ratio -1
set the same ratio in all direction independently of the window while set size square
plot in a square box, no matter what range you use.

Luís Cruz
- 14,780
- 16
- 68
- 100

Tsathoggua
- 799
- 6
- 14
29
Well, now that we found the answer (see comments of the question), I might just as well post it for others to find it more easily:
set size square
does the trick.
Cherio Woltan

Woltan
- 13,723
- 15
- 78
- 104
23
That works fine for plot (2D). For splot (3D) use
set view equal xyz

Jaime Villate
- 261
- 2
- 3
-
1No, that is not the same! `set size square` sets the `x` and `y` axis to the same length, whereas `set view equal xyz` uses the same unit length for all axes. Example: `reset; set xrange[-5:5]; set yrange[-1:1]; set view equal xy; set multiplot layout 2,1; plot x; set size square; plot x; unset multiplot` – Christoph Nov 12 '13 at 22:45