Es klingt wie Sie möchten, dass Ihre Ausgabe dynamisch Passen Sie die Größe an die geplotteten Daten an. Hier ist ein Skript, das:
#!/usr/bin/env gnuplot
# don't make any output just yet
set terminal unknown
# plot the data file to get information on ranges
plot 'data.dat' title 'My Moneys'
# span of data in x and y
xspan = GPVAL_DATA_X_MAX - GPVAL_DATA_X_MIN
yspan = GPVAL_DATA_Y_MAX - GPVAL_DATA_Y_MIN
# define the values in x and y you want to be one 'equivalent:'
# that is, xequiv units in x and yequiv units in y will make a square plot
xequiv = 100
yequiv = 250
# aspect ratio of plot
ar = yspan/xspan * xequiv/yequiv
# dimension of plot in x and y (pixels)
# for constant height make ydim constant
ydim = 200
xdim = 200/ar
# set the y tic interval
set ytics 100
# set the x and y ranges
set xrange [GPVAL_DATA_X_MIN:GPVAL_DATA_X_MAX]
set yrange [GPVAL_DATA_Y_MIN:GPVAL_DATA_Y_MAX]
# set the labels
set title 'Dollars in buckets'
set xlabel 'number'
set ylabel 'Dollars'
set terminal png size xdim,ydim
set output 'test.png'
set size ratio ar
set style data linespoints
replot
Für diese Beispieldaten:
0 50
50 150
100 400
150 500
200 300
ich die folgende Handlung:

Es ist etwa quadratisch, wie es sein sollte (Ich habe 100 Einheiten in x definiert, um 250 Einheiten in y zu entsprechen, und die Daten umfassen den Bereich [(0,200), (50,500)]). Wenn ich einen weiteren Datenpunkt (400.300) hinzufügen, ist die Ausgabedatei breiter, wie erwartet:

Um Ihre andere Frage zu beantworten, können Sie die y tic Schritt gesetzt so:
set ytics <INCREMENT>
Das obige Skript gibt ein Beispiel.
Randnotiz: Die Größe im Terminal-Befehl ('set terminal png size ...') definiert die Größe der tatsächlichen Ausgabedatei und der Befehl 'set size ratio' legt das Seitenverhältnis des Bereichs innerhalb der Ausgabe fest wo die Handlung geplottet wird. Ich habe beides getan, um sicherzustellen, dass das Seitenverhältnis konsistent ist. –
andyras