![]() Xsize = mpl_left+mpl_right+(mpl_width*mpl_nx)+(mpl_nx-1)*mpl_dx # now set a label and tic marks for the x-axis # set horizontal margins for first row (bottom) # set horizontal margins for second row (middle) # set horizontal margins for second column Set arrow 2 from first 0, graph 0 rto 0, graph 1 nohead lt 1 lw 1 lc 0 Set arrow 1 from graph 0, first 0 rto graph 1, 0 nohead lt 1 lw 1 lc 0 # set horizontal margins for third row (top) # set horizontal margins for first column # define x-axis settings for all subplots Set terminal postscript eps enhanced color dl 2.0 size xsize ,ysize "Helvetica" 28 Right (n ) = 1 - ( (mpl_right + (mpl_nx -n ) * (mpl_width +mpl_dx ) ) /xsize ) Left (n ) = (mpl_left + (n - 1 ) *mpl_width + (n - 1 ) *mpl_dx ) /xsize # columns are numbered from left to right ![]() Top (n ) = 1 - ( (mpl_top + (mpl_ny -n ) * (mpl_height +mpl_dy ) ) /ysize ) Ysize = mpl_top +mpl_bot + (mpl_ny *mpl_height ) + (mpl_ny - 1 ) *mpl_dyīot (n ) = (mpl_bot + (n - 1 ) *mpl_height + (n - 1 ) *mpl_dy ) /ysize Xsize = mpl_left +mpl_right + (mpl_width *mpl_nx ) + (mpl_nx - 1 ) *mpl_dx Mpl_dy = 0.1 #inch inter-plot vertical spacing Mpl_dx = 0.1 #inch inter-plot horizontal spacing Mpl_width = 2.0 #inch width of individual plots Mpl_height = 1.5 #inch height of individual plots Mpl_right = 0.1 #inch outer right margin, y2 label goes here Mpl_left = 0.9 #inch outer left margin, y label goes here Mpl_bot = 0.7 #inch outer bottom margin, x label goes here Mpl_top = 0.4 #inch outer top margin, title goes here So now I put down a template for my own purposes, but perhaps someone else might find it useful as well – if so, please leave a comment below… The template is based on the enhanced postscript terminal, but it should be possible to easily adjust it even to pixel-based terminals, such as PNG: All I wanted originally was a stack of equally sized subplots were I easily could adjust the overall framing, the labeling and tic marks and so on. Perhaps my expectations and my understanding of the functionality were wrong – I don’t know. However, it simply did not do, what I expected. You should not complain about short-comings in Gnuplot: it’s for free and you should be grateful for every single line of code which was put down by the volunteers of the Gnuplot-team!!!įor a long time it has been possible to create multiplots in Gnuplot, and lately this functionality was enhanced with additional functions. For the last 13 years I have made almost all plots with this great program which gives me full control… ![]()
0 Comments
Leave a Reply. |