Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set equal scale's length in gnuplot

Tags:

plot

gnuplot

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).

like image 686
nina Avatar asked Mar 08 '11 22:03

nina


People also ask

Does gnuplot support multiple Y axes on a single plot?

5.9 Does gnuplot support multiple y-axes on a single plot? Yes. 2D plots can have separate x axes at the bottom (x1) and top (x2), and separate y axes at the left (y1) and right (y2).

What is the use of gnuplot?

gnuplot is a command-line and GUI program that can generate two- and three-dimensional plots of functions, data, and data fits. The program runs on all major computers and operating systems (Linux, Unix, Microsoft Windows, macOS, FreeDOS, and many others).

What is plot in gnuplot?

plot and splot are the primary commands in Gnuplot. They plot functions and data in many many ways. plot is used to plot 2-d functions and data, while splot plots 3-d surfaces and data.


2 Answers

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.

like image 131
Tsathoggua Avatar answered Oct 08 '22 21:10

Tsathoggua


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

like image 26
Woltan Avatar answered Oct 08 '22 23:10

Woltan