<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <!--Converted with LaTeX2HTML 98.1p1 release (March 2nd, 1998) originally by Nikos Drakos (nikos@cbl.leeds.ac.uk), 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>Handling of Plotfiles</TITLE> <META NAME="description" CONTENT="Handling of Plotfiles"> <META NAME="keywords" CONTENT="vol1"> <META NAME="resource-type" CONTENT="document"> <META NAME="distribution" CONTENT="global"> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <LINK REL="STYLESHEET" HREF="vol1.css"> <LINK REL="next" HREF="node82.html"> <LINK REL="previous" HREF="node80.html"> <LINK REL="up" HREF="node70.html"> <LINK REL="next" HREF="node82.html"> </HEAD> <BODY > <!--Navigation Panel--> <A NAME="tex2html1511" HREF="node82.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="icons.gif/next_motif.gif"></A> <A NAME="tex2html1507" HREF="node70.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="icons.gif/up_motif.gif"></A> <A NAME="tex2html1501" HREF="node80.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="icons.gif/previous_motif.gif"></A> <A NAME="tex2html1509" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="icons.gif/contents_motif.gif"></A> <A NAME="tex2html1510" HREF="node216.html"> <IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="icons.gif/index_motif.gif"></A> <BR> <B> Next:</B> <A NAME="tex2html1512" HREF="node82.html">Encapsulated PostScript Files</A> <B> Up:</B> <A NAME="tex2html1508" HREF="node70.html">Graphic Facilities</A> <B> Previous:</B> <A NAME="tex2html1502" HREF="node80.html">Graphic Cursor Commands</A> <BR> <BR> <!--End of Navigation Panel--> <H2><A NAME="SECTION00916000000000000000"> </A><A NAME="8034"> </A> <A NAME="handling-of-plotfiles"> </A> <BR> Handling of Plotfiles </H2> Plotting in MIDAS will create a MIDAS plotfile which contains all essential plot information. By default this plotfile (metafile)<A NAME="8036"> </A> is always created by the execution of the main plot commands. The plotfile will carry the name of the data structure that has been plotted: the name of a frame, table, descriptor or keyword. The plotfile has the extension ``.plt''. MIDAS keeps track of what the user has plotted. The <TT>SHOW/GRAPH</TT> command shows the user which is the last created plotfile. Subsequent overplot commands will append to this plotfile. Names of plotfiles are a composition of the device names that is currently assigned and the MIDAS session number. As an example, take the situation were the user runs MIDAS under the unit number 04 and the graphics window 1 (graph_wnd1) is assigned. In this case all plots created will be stored in the file <TT>graph_wnd104.plt</TT>. If the device ``lp'' was assigned, plot files will go into the file <TT>lp04.plt</TT>. Names of plot files are unique and do not have version numbers. Hence, MIDAS will delete an old plotfile if a new one with the same name is created. With the command <TT>SHOW/GRAPH</TT> you can display the name of the plot file. <P> There are several ways to obtain a hardcopy<A NAME="8041"> </A> of a plot. Below you will find a few examples. <DL COMPACT> <DT>1. <DD>The user works with a graphic terminal or a workstation and has made this plot on the graphic terminal first. He/she can now send the plot to a hardcopy device using the <TT>COPY/GRA</TT> command. <BR> <B>Example:</B> <BLOCKQUOTE> <TT>MIDAS 001> PLOT/TABLE mytable :velocity :distance <BR> MIDAS 002> COPY/GRAPH LASER </TT></BLOCKQUOTE> <DT>2. <DD>The user does not have a graphics terminal (or does not want to use it), and wants to dump his plot directly onto a hardcopy device. In this case, the hardcopy device has to be assigned first as the output device by the <TT>ASSIGN/GRAPH</TT> command. Now all the plot(s) (including the overplot !!!) will be sent directly to the hardcopy device. <BR> <B>Example:</B> <BLOCKQUOTE> <TT>MIDAS 003> ASSIGN/GRAPH LASER </TT>! assign LASER as output device<TT> <BR> MIDAS 004> PLOT/TABLE mytable :velocity :distance </TT>! make plot</BLOCKQUOTE> <DT>3. <DD>In a MIDAS plot command sequence (with many <I>e.g.</I> <TT>OVERPLOT</TT> and <TT>LABEL</TT> commands) intermediate output is not always wanted, in some cases even undesirable. In order to switch off the direct routing of plots to a device users can specify the extra switch <TT>NOSPOOL</TT><A NAME="8057"> </A> in the <TT>ASSIGN/GRAPH</TT> command. Using this switch the plotfile(s) will be stored on disk first. Once the user has finished his sequence of plot commands, he/she can create the complete plot on the hardcopy device using the command <TT>COPY/GRAPH</TT>. Intermediate results can be obtained using the same command. <BR> <B>Example:</B> <BLOCKQUOTE> <TT>MIDAS 005> ASSIGN/GRAP LASER NOSPOOL </TT>! plot file, don't send<TT> <BR> MIDAS 006> PLOT/ROW frame [@100,@150:@150,@250] 20.0,20.0 <BR> MIDAS 007> OVERPLOT/TABLE table #1 </TT>! overplot<TT> <BR> MIDAS 008> LABEL/GRAPHIC "THIS IS AN EXAMPLE" 90 4 400,300 <BR> MIDAS 009> COPY/GRAPH LASER </TT>! send the plot file</BLOCKQUOTE> <DT>4. <DD>The user wants to send a previously created MIDAS plotfile (<I> e.g.</I> ``midas.plt'', and different from the last created plotfile) to a device. <BR> <B>Example:</B> <BLOCKQUOTE> <TT>MIDAS 010> COPY/GRAPH LASER frame.plt </TT>! send plotfile to LASER</BLOCKQUOTE></DL> <P> As can be seen in section <A HREF="node98.html#plot-command-summary">6.1.9</A>, in most cases the user can produce a plot with certain scales of the x- and y-axis. In the current version routing the plot file (with <TT>COPY/GRAPH</TT>) to a device different from the one pre-specified (with the <TT>ASSIGN/GRAP</TT> command) may lead to incorrect scales. In case the pre-specified device is the same as the device to which the plot is sent the scales will be correct. <BR> <B>Example:</B> <BLOCKQUOTE> <TT>MIDAS 005> ASSIGN/GRAPH VERSA NOSPOOL <BR> MIDAS 006> PLOT/ROW image [@100,@150:@150,@250] 20.0,20.0 <BR> MIDAS 007> OVERPLOT/TABLE table #1 <BR> MIDAS 008> LABEL/GRAPHIC "THIS IS A EXAMPLE" 90 4 400,300 <BR> MIDAS 009> COPY/GRAPH LASER </TT>! plot will have incorrect scales<TT> <BR> MIDAS 010> COPY/GRAP VERSA </TT>! with correct scales</BLOCKQUOTE> <P> <HR> <!--Navigation Panel--> <A NAME="tex2html1511" HREF="node82.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="icons.gif/next_motif.gif"></A> <A NAME="tex2html1507" HREF="node70.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="icons.gif/up_motif.gif"></A> <A NAME="tex2html1501" HREF="node80.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="icons.gif/previous_motif.gif"></A> <A NAME="tex2html1509" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="icons.gif/contents_motif.gif"></A> <A NAME="tex2html1510" HREF="node216.html"> <IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="icons.gif/index_motif.gif"></A> <BR> <B> Next:</B> <A NAME="tex2html1512" HREF="node82.html">Encapsulated PostScript Files</A> <B> Up:</B> <A NAME="tex2html1508" HREF="node70.html">Graphic Facilities</A> <B> Previous:</B> <A NAME="tex2html1502" HREF="node80.html">Graphic Cursor Commands</A> <!--End of Navigation Panel--> <ADDRESS> <I>Petra Nass</I> <BR><I>1999-06-09</I> </ADDRESS> </BODY> </HTML>