<TeXmacs|1.99.2>

<style|<tuple|tmdoc|maxima|english>>

<\body>
  <\tmdoc-title>
    Example <name|Gnuplot> session
  </tmdoc-title>

  Select <menu|Insert|Session|Gnuplot> in order to start a <name|Gnuplot>
  session. After pressing <key|return> in a line, your input will be sent to
  <name|Gnuplot>. If you need to enter more than one command then you may
  separate them by <verbatim|~> or a newline, which you insert using
  <key|S-return>. Alternatively you may select <menu|Focus|Input
  options|Multiline input> to reverse the behaviour of the keys. Each input
  must be a complete script ending with a plotting command, i.e. the result
  must always be an image to embed into <TeXmacs>.

  <name|Gnuplot> supports many features which allow the creation of high
  quality graphs. Here are some examples:

  <\session|gnuplot|default>
    <\output>
      This is a TeXmacs interface for GNUplot.
    </output>

    <\unfolded-io|GNUplot] >
      plot [-10:10][-10:10] x+sin(x)
    <|unfolded-io>
      <image|<tuple|<#[encoded data, 27566 characters]>|ps>||||>

      \;
    </unfolded-io>

    <\unfolded-io|GNUplot] >
      set noclip

      set yrange[-30:10]

      plot x*(abs((x-4)/(x+4)))**(1./2.)
    <|unfolded-io>
      <image|<tuple|<#[encoded data, 27352 characters]>|ps>||||>

      \;
    </unfolded-io>

    <\unfolded-io|GNUplot] >
      set pm3d hidden 100

      set style line 100 lt 3

      set nosurface

      set size 0.7,1

      set view 80,180,1,1

      set noborder

      set noxtics ~set noytics ~set noztics

      set parametric

      set samples 36

      set isosamples 20,36

      set ticslevel 0

      set nocolorbox

      set urange [0:pi] ~set vrange [0:2*pi]

      splot sin(u)*cos(v),sin(u)*sin(v),cos(u)
    <|unfolded-io>
      <image|<tuple|<#[encoded data, 301460 characters]>|ps>||||>

      \;
    </unfolded-io>
  </session>

  <tmdoc-copyright|2003, 2014|Chu-Ching Huang|Miguel de Benito Delgado>

  <tmdoc-license|Permission is granted to copy, distribute and/or modify this
  document under the terms of the GNU Free Documentation License, Version 1.1
  or any later version published by the Free Software Foundation; with no
  Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
  Texts. A copy of the license is included in the section entitled "GNU Free
  Documentation License".>
</body>

<initial|<\collection>
</collection>>