(ddd.info)Entering Plotting Commands


Next: Exporting Plot Data Prev: Printing Plots Up: Plotting Values
Enter node , (file) or (file)node

7.4.6 Entering Plotting Commands
--------------------------------

Via `File => Command', you can enter Gnuplot commands directly.  Each
command entered at the `gnuplot>' prompt is passed to Gnuplot, followed
by a Gnuplot `replot' command to update the view.  This is useful for
advanced Gnuplot tasks.

   Here's a simple example.  The Gnuplot command

     set xrange [XMIN:XMAX]

sets the horizontal range that will be displayed to XMIN...XMAX.  To
plot only the elements 10 to 20, enter:

     gnuplot> set xrange [10:20]
     gnuplot> _

   After each command entered, DDD adds a `replot' command, such that
the plot is updated automatically.

   Here's a more complex example.  The following sequence of Gnuplot
commands saves the plot in TeX format:

     gnuplot> set output "plot.tex" # Set the output filename
     gnuplot> set term latex        # Set the output format
     gnuplot> set term x11          # Show original picture again
     gnuplot> _

   Due to the implicit `replot' command, the output is automatically
written to `plot.tex' after the `set term latex' command.

   The dialog keeps track of the commands entered; use the arrow keys to
restore previous commands.  Gnuplot error messages (if any) are also
shown in the history area.

   The interaction between DDD and Gnuplot is logged in the file
`~/.ddd/log' (Note: Logging).  The DDD `--trace' option logs this
interaction on standard output.


automatically generated by info2www version 1.2.2.9