Tatjana Skrbic wrote:
> Please, if you could give me some info about how to "break" x-axis in
> gnuplot in order to avoid large empty region in the graph.
You'll have to do that almost entirely by hand:
1) turn off the bottom border --> "help set border"
2) write a function to map from "real" values to graphical positions
3) use a long-form 'set xtics' statement to produce the re-mapped ticks
4) use the mapping function to modify all x values in passing
5) use "set arrow" commands to draw the two parts of the broken axis
Example:
newx(x) = (x<=100) ? x : (x>=1000) ? (x-1000)/10+110 : 0/0
set xtics (0, 50, 100, '1000' newx(1000), '1500' newx(1500))
set param
set trange [10:1700] ; set samples 200
set xrange [newx(10):newx(1700)]
set log y
set arrow from newx(10), graph 0 to newx(100), graph 0 nohead
set arrow from newx(1000), graph 0 to newx(1700), graph 0 nohead
plot newx(t), (newx(t))**2 title 'y=x^2'
|