;ò
ÎÑAHc        	   @   s]  d  Z  d d d d d d d d d	 g	 Z d
 k Z d
 k Z d
 k Z d k l Z e i ƒ  Z e	 e d ƒ i
 d ƒ e d e ƒ Z e i e ƒ e o d GHd Z n d Z [ [ e i d d g j p e i d j o
 d Z n d Z d
 k i Z d f  d „  ƒ  YZ e e d „ Z e ƒ  Z e i Z e i Z e i Z e i Z e i Z e i Z d Z d
 S(   sŸ  Basic Gnuplot functionality for inclusion in other code.

This module creates a running Gnuplot instance called 'gp' and builds other
convenient globals for quick use in running scripts. It is intended to allow
you to script plotting tasks in Python with a minimum of effort. A typical
usage would be:

import IPython.GnuplotRuntime as GP  # or some other short name
GP.gp.plot(GP.File('your_data.dat'))


This module exposes the following objects:

- gp: a running Gnuplot instance. You can access its methods as
gp.<method>. gp(`a string`) will execute the given string as if it had been
typed in an interactive gnuplot window.

- gp_new: a function which returns a new Gnuplot instance. This can be used to
have multiple Gnuplot instances running in your session to compare different
plots.

- Gnuplot: alias to the Gnuplot2 module, an improved drop-in replacement for
the original Gnuplot.py. Gnuplot2 needs Gnuplot but redefines several of its
functions with improved versions (Gnuplot2 comes with IPython).

- Data: alias to Gnuplot.Data, makes a PlotItem from array data.

- File: alias to Gnuplot.File, makes a PlotItem from a file.

- String: alias to Gnuplot.String, makes a PlotItem from a string formatted
exactly like a file for Gnuplot.File would be.

- Func: alias to Gnuplot.Func, makes a PlotItem from a function string.

- GridData: alias to Gnuplot.GridData, makes a PlotItem from grid data.

- pm3d_config: a string with Gnuplot commands to set up the pm3d mode for
surface plotting. You can activate it simply by calling gp(pm3d_config).

- eps_fix_bbox: A Unix-only function to fix eps files with bad bounding boxes
(which Gnuplot generates when the plot size is set to square).

This requires the Gnuplot.py module for interfacing Python with Gnuplot, which
can be downloaded from:

http://gnuplot-py.sourceforge.net/

Inspired by a suggestion/request from Arnd Baecker.

$Id: GnuplotRuntime.py 389 2004-10-09 07:59:30Z fperez $s   Gnuplots   gps   gp_news   Datas   Files   Funcs   GridDatas   pm3d_configs   eps_fix_bboxN(   s	   getoutputs   ws	   set mouses   gnuplot s>   *** Your version of Gnuplot appears not to have mouse support.i    i   s   nts   doss   cygwins   NotGivenc           B   s   t  Z RS(   N(   s   __name__s
   __module__(    (    (    sG   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/GnuplotRuntime.pys   NotGivend   s    c         C   s]   |  t j o
 t }  n | t j o
 t } n t i d | ƒ } |  o | d ƒ n | Sd S(   s  Return a new Gnuplot instance.

    The instance returned uses the improved methods defined in Gnuplot2.

    Options (boolean):

    - mouse: if unspecified, the module global gnuplot_mouse is used.

    - persist: if unspecified, the module global gnuplot_persist is used.s   persists	   set mouseN(   s   mouses   NotGivens   gnuplot_mouses   persists   gnuplot_persists   Gnuplots   g(   s   mouses   persists   g(    (    sG   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/GnuplotRuntime.pys   gp_newf   s    	 

s=   
set pm3d solid
set hidden3d
unset surface
set isosamples 50
(   s   __doc__s   __all__s   oss   tempfiles   syss   IPython.genutilss	   getoutputs   mktemps   tmpnames   opens   writes   gnu_outs   unlinks   gnuplot_mouses   names   platforms   gnuplot_persists   IPython.Gnuplot2s   Gnuplot2s   Gnuplots   NotGivens   gp_news   gps   Datas   Files   Funcs   Strings   GridDatas   eps_fix_bboxs   pm3d_config(   s   gnuplot_mouses   GridDatas   Gnuplots   __all__s   gps   tempfiles   NotGivens   pm3d_configs   gp_news   Funcs   syss   tmpnames	   getoutputs   eps_fix_bboxs   gnu_outs   Files   gnuplot_persists   oss   Datas   String(    (    sG   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/GnuplotRuntime.pys   ?3   s4   !
&
							