<!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>Replot</TITLE> <META NAME="description" CONTENT="Replot"> <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="node172.html"> <LINK REL="previous" HREF="node170.html"> <LINK REL="up" HREF="node88.html"> <LINK REL="next" HREF="node172.html"> </HEAD> <BODY > <!--Navigation Panel--> <A NAME="tex2html3529" HREF="node172.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> <A NAME="tex2html3523" HREF="node88.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> <A NAME="tex2html3517" HREF="node170.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> <A NAME="tex2html3525" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> <A NAME="tex2html3527" HREF="node467.html"> <IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> <BR> <B> Next:</B> <A NAME="tex2html3530" HREF="node172.html">Reread</A> <B> Up:</B> <A NAME="tex2html3524" HREF="node88.html">Commands</A> <B> Previous:</B> <A NAME="tex2html3518" HREF="node170.html">Refresh</A> <B> <A NAME="tex2html3526" HREF="node1.html">Contents</A></B> <B> <A NAME="tex2html3528" HREF="node467.html">Index</A></B> <BR> <BR> <!--End of Navigation Panel--> <H1><A NAME="SECTION040200000000000000000"></A> <A NAME="commands_replot"></A><A NAME="replot"></A><A NAME="3638"></A> <BR> Replot </H1> The <B>replot</B> command without arguments repeats the last <B>plot</B> or <B>splot</B> command. This can be useful for viewing a plot with different <B>set</B> options, or when generating the same plot for several devices. <P> Arguments specified after a <B>replot</B> command will be added onto the last <B>plot</B> or <B>splot</B> command (with an implied ',' separator) before it is repeated. <B>replot</B> accepts the same arguments as the <B>plot</B> and <B>splot</B> commands except that ranges cannot be specified. Thus you can use <B>replot</B> to plot a function against the second axes if the previous command was <B>plot</B> but not if it was <B>splot</B>. <P> N.B. -- use of <P> <BR> <PRE> plot '-' ; ... ; replot </PRE> <BR> <P> is not recommended, because it will require that you type in the data all over again. In most cases you can use the <B>refresh</B> command instead, which will redraw the plot using the data previously read in. <P> Note that <B>replot</B> does not work in <B>multiplot</B> mode, since it reproduces only the last plot rather than the entire screen. <P> See also <B>command-line-editing (p. <A HREF="node16.html#command-line-editing"><IMG ALIGN="BOTTOM" BORDER="1" ALT="[*]" SRC="crossref.png"></A>)<A NAME="3658"></A></B> for ways to edit the last <B>plot (p. <A HREF="node113.html#plot"><IMG ALIGN="BOTTOM" BORDER="1" ALT="[*]" SRC="crossref.png"></A>)<A NAME="3660"></A></B> (<B>splot (p. <A HREF="node335.html#splot"><IMG ALIGN="BOTTOM" BORDER="1" ALT="[*]" SRC="crossref.png"></A>)<A NAME="3662"></A></B>) command. <P> See also <B>show plot (p. <A HREF="node244.html#show_plot"><IMG ALIGN="BOTTOM" BORDER="1" ALT="[*]" SRC="crossref.png"></A>)<A NAME="3664"></A></B> to show the whole current plotting command, and the possibility to copy it into the <B>history (p. <A HREF="node107.html#history"><IMG ALIGN="BOTTOM" BORDER="1" ALT="[*]" SRC="crossref.png"></A>)<A NAME="3666"></A></B>. <HR> <!--Navigation Panel--> <A NAME="tex2html3529" HREF="node172.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> <A NAME="tex2html3523" HREF="node88.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> <A NAME="tex2html3517" HREF="node170.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> <A NAME="tex2html3525" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> <A NAME="tex2html3527" HREF="node467.html"> <IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> <BR> <B> Next:</B> <A NAME="tex2html3530" HREF="node172.html">Reread</A> <B> Up:</B> <A NAME="tex2html3524" HREF="node88.html">Commands</A> <B> Previous:</B> <A NAME="tex2html3518" HREF="node170.html">Refresh</A> <B> <A NAME="tex2html3526" HREF="node1.html">Contents</A></B> <B> <A NAME="tex2html3528" HREF="node467.html">Index</A></B> <!--End of Navigation Panel--> <ADDRESS> 2010-08-17 </ADDRESS> </BODY> </HTML>