![]() | |
![]() |
![]() ![]() ![]() ![]() |
![]() |
The area in which gnuplot draws a graph depends on axis and tic labels. To fix the size of the graph, you need to adjust margins by set margin . An option of this command is the number of letters. There are four kinds of margin, top (tmargin), bottom (bmargin), left (lmargin), and right (rmargin). As the defaults all margins are calculated automatically. Current setting can be displayed by:
The next shows an example in the case that all margins are given manually.
When the margins are defined explicitly like above, the size of graph does not change even formats of the X and Y tics are changed. ![]() ![]() |
Gnuplot draws top, bottom, left, and right frames. To erase those frames, use set border n . An integer is assigned for each frame line, the bottom is 1, left 2, top 4, and right 8. The option n is the sum of those integers. For example, only X1 axis is shown if n=1, X1 and Y1 axes for n=3, all four border lines for n=31. The set border command only affects the border lines, so that tics remain even if n=0. In order to erase axes, you need set no{x|y}tics or set {x|y}tics nomirror. The following example shows how to erase the top and right border.
![]() |
This subject had been known for the old version gnuplot as a very difficult matter, but it is supported nowadays. To make a square plot, give an option square to the set size command.
Similarly, to fix the aspect ratio:
In this case the Y axis length is two times longer than the X axis. This ratio is independent of the values of the X and Y axes. In order to set the scales so that the unit has the same length on both the X and Y axes, give negative value for the ratio. If the ratio is -1, the unit length for the X axis is the same as that for the Y axis. If -2, the Y axis becomes two times longer.
|
![]() | |
![]() |
![]() ![]() ![]() ![]() |
![]() |