<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <!--Converted with LaTeX2HTML 2008 (1.71) original version by: Nikos Drakos, CBLU, University of Leeds * revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan * with significant contributions from: Jens Lippmann, Marek Rouchal, Martin Wilck and others --> <HTML> <HEAD> <TITLE>Size</TITLE> <META NAME="description" CONTENT="Size"> <META NAME="keywords" CONTENT="gnuplot"> <META NAME="resource-type" CONTENT="document"> <META NAME="distribution" CONTENT="global"> <META NAME="Generator" CONTENT="LaTeX2HTML v2008"> <META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css"> <LINK REL="STYLESHEET" HREF="gnuplot.css"> <LINK REL="next" HREF="node261.html"> <LINK REL="previous" HREF="node259.html"> <LINK REL="up" HREF="node175.html"> <LINK REL="next" HREF="node261.html"> </HEAD> <BODY > <!--Navigation Panel--> <A NAME="tex2html4942" HREF="node261.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> <A NAME="tex2html4936" HREF="node175.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> <A NAME="tex2html4930" HREF="node259.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> <A NAME="tex2html4938" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> <A NAME="tex2html4940" HREF="node467.html"> <IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> <BR> <B> Next:</B> <A NAME="tex2html4943" HREF="node261.html">Style</A> <B> Up:</B> <A NAME="tex2html4937" HREF="node175.html">Set-show</A> <B> Previous:</B> <A NAME="tex2html4931" HREF="node259.html">Samples</A> <B> <A NAME="tex2html4939" HREF="node1.html">Contents</A></B> <B> <A NAME="tex2html4941" HREF="node467.html">Index</A></B> <BR> <BR> <!--End of Navigation Panel--> <H2><A NAME="SECTION0402460000000000000000"></A> <A NAME="commands_set_size"></A><A NAME="commands_show_size"></A><A NAME="set_size"></A><A NAME="show_size"></A><A NAME="size"></A><A NAME="6169"></A> <A NAME="aspect_ratio"></A> <BR> Size </H2> Syntax: <BR> <PRE> set size {{no}square | ratio <r> | noratio} {<xscale>,<yscale>} show size </PRE> <BR> <P> The 4#4xscale5#5 and 4#4yscale5#5 values are scale factors for the size of the plot, which includes the graph, labels, and margins. <P> Important note: <BR> <PRE> In earlier versions of gnuplot, some terminal types used the values from `set size` to control also the size of the output canvas; others did not. In version 4.4 almost all terminals now follow the following convention: </PRE> <BR> <P> <B>set term 4#4terminal_type5#5 size 4#4XX5#5, 4#4YY5#5</B> controls the size of the output file, or <B>canvas</B>. Please see individual terminal documentation for allowed values of the size parameters. By default, the plot will fill this canvas. <P> <B>set size 4#4XX5#5, 4#4YY5#5</B> scales the plot itself relative to the size of the canvas. Scale values less than 1 will cause the plot to not fill the entire canvas. Scale values larger than 1 will cause only a portion of the plot to fit on the canvas. Please be aware that setting scale values larger than 1 may cause problems on some terminal types. <P> <B>ratio</B> causes <B>gnuplot</B> to try to create a graph with an aspect ratio of 4#4r5#5 (the ratio of the y-axis length to the x-axis length) within the portion of the plot specified by 4#4xscale5#5 and 4#4yscale5#5. <P> The meaning of a negative value for 4#4r5#5 is different. If 4#4r5#5=-1, gnuplot tries to set the scales so that the unit has the same length on both the x and y axes (suitable for geographical data, for instance). If 4#4r5#5=-2, the unit on y has twice the length of the unit on x, and so on. <P> The success of <B>gnuplot</B> in producing the requested aspect ratio depends on the terminal selected. The graph area will be the largest rectangle of aspect ratio 4#4r5#5 that will fit into the specified portion of the output (leaving adequate margins, of course). <P> <B>square</B> is a synonym for <B>ratio 1</B>. <P> Both <B>noratio</B> and <B>nosquare</B> return the graph to the default aspect ratio of the terminal, but do not return 4#4xscale5#5 or 4#4yscale5#5 to their default values (1.0). <P> <B>ratio</B> and <B>square</B> have no effect on 3D plots, but do affect 3D projections created using <B>set view map</B>. See also <B>set view equal (p. <A HREF="node286.html#set_view_equal"><IMG ALIGN="BOTTOM" BORDER="1" ALT="[*]" SRC="crossref.png"></A>)<A NAME="6189"></A></B>, which forces the x and y axes of a 3D onto the same scale. <P> Examples: <P> To set the size so that the plot fills the available canvas: <BR> <PRE> set size 1,1 </PRE> <BR> <P> To make the graph half size and square use: <BR> <PRE> set size square 0.5,0.5 </PRE> <BR> <P> To make the graph twice as high as wide use: <BR> <PRE> set size ratio 2 </PRE> <BR> <P> See also <P> http://www.gnuplot.info/demo/airfoil.html<TT>airfoil demo. </TT> <P> <HR> <!--Navigation Panel--> <A NAME="tex2html4942" HREF="node261.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> <A NAME="tex2html4936" HREF="node175.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> <A NAME="tex2html4930" HREF="node259.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> <A NAME="tex2html4938" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> <A NAME="tex2html4940" HREF="node467.html"> <IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> <BR> <B> Next:</B> <A NAME="tex2html4943" HREF="node261.html">Style</A> <B> Up:</B> <A NAME="tex2html4937" HREF="node175.html">Set-show</A> <B> Previous:</B> <A NAME="tex2html4931" HREF="node259.html">Samples</A> <B> <A NAME="tex2html4939" HREF="node1.html">Contents</A></B> <B> <A NAME="tex2html4941" HREF="node467.html">Index</A></B> <!--End of Navigation Panel--> <ADDRESS> 2010-08-17 </ADDRESS> </BODY> </HTML>