§
    óeH™  ã            
       óÖ   — d Z ddlZddlZddlZ G d„ d¦  «        ZddlZddlZddlZd„ Z G d„ dej	        ej        ej
        ej        ej        ej        ¦  «        Z G d„ d	¦  «        ZdS )
z6gp_mac -- an interface to gnuplot for the Macintosh.

é    Nc                   ó2   — e Zd ZdZdZdZdZdZdZdZ	dZ
dZdS )ÚGnuplotOptsz½The configuration options for gnuplot on the Macintosh.

    See gp.py for details about the meaning of these options.  Please
    let me know if you know better choices for these settings.r   é   Úpictz| lprN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Úrecognizes_persistÚrecognizes_binary_splotÚprefer_inline_dataÚsupport_fifoÚprefer_fifo_dataÚdefault_termÚdefault_lprÚprefer_enhanced_postscript© ó    ú0/usr/lib/python3/dist-packages/Gnuplot/gp_mac.pyr   r      sW   € € € € € ðBð Bð Ðð  Ðð Ðð €LØÐð
 €Lð €Kð
 "#ÐÐÐr   r   c                  ó   — dS )Nr   r   r   r   r   Útest_persistr   @   s   € Øˆ1r   c                   ó   — e Zd ZdZd„ ZdS )Ú_GNUPLOTz1Start a gnuplot program and emulate a pipe to it.c                 óJ   — t           j                             | dd¬¦  «         d S )Nz{GP}r   )Ústart)ÚaetoolsÚTalkToÚ__init__©Úselfs    r   r   z_GNUPLOT.__init__L   s%   € ÝŒ×Ò  f°AÐÑ6Ô6Ð6Ð6Ð6r   N)r   r   r	   r
   r   r   r   r   r   r   D   s+   € € € € € ð <Ð;ð7ð 7ð 7ð 7ð 7r   r   c                   ó8   — e Zd ZdZd
d„Zd„ Zd„ Zd„ Zd„ Zd„ Z	d	S )ÚGnuplotProcessztUnsophisticated interface to a running gnuplot program.

    See gp_unix.GnuplotProcess for usage information.

    r   c                 óX   — |rt          j        d¦  «        ‚t          ¦   «         | _        dS )a<  Start a gnuplot process.

        Create a 'GnuplotProcess' object.  This starts a gnuplot
        program and prepares to write commands to it.

        Keyword arguments:

          'persist' -- the '-persist' option is not supported on the
                       Macintosh so this argument must be zero.

        z+-persist is not supported on the Macintosh!N)ÚErrorsÚOptionErrorr   Úgnuplot)r    Úpersists     r   r   zGnuplotProcess.__init__W   s5   € ð ð 	?ÝÔ$Ø=ñ?ô ?ð ?õ  ‘z”zˆŒˆˆr   c                 óX   — | j         �"| j                              ¦   «          d | _         d S d S ©N)r&   Úquitr   s    r   ÚclosezGnuplotProcess.closej   s1   € ØŒ<Ð#ØŒL×ÒÑÔÐØˆDŒLˆLˆLð $Ð#r   c                 ó.   — |                       ¦   «          d S r)   )r+   r   s    r   Ú__del__zGnuplotProcess.__del__o   s   € Ø�
Š
‰Œˆˆˆr   c                 óv   — | j                              t          j        |dt          j        ¦  «        ¦  «         dS )z6Mac gnuplot apparently requires '' to end statements.ú
N)r&   ÚgnuexecÚstringÚreplaceÚosÚlinesep©r    Úss     r   ÚwritezGnuplotProcess.writer   s0   € ð 	Œ×Ò�Vœ^¨A¨tµR´ZÑ@Ô@ÑAÔAÐAÐAÐAr   c                 ó   — d S r)   r   r   s    r   ÚflushzGnuplotProcess.flushw   s   € Øˆr   c                 óX   — |                       |¦  «         |                      ¦   «          dS )z:Send a command string to gnuplot, for immediate execution.N)r7   r9   r5   s     r   Ú__call__zGnuplotProcess.__call__z   s$   € ð 	�
Š
�1‰ŒˆØ�
Š
‰Œˆˆˆr   N)r   )
r   r   r	   r
   r   r+   r-   r7   r9   r;   r   r   r   r"   r"   P   s€   € € € € € ðð ð"ð "ð "ð "ð& ð  ð  ð
ð ð ðBð Bð Bð
ð ð ðð ð ð ð r   r"   )r
   r3   r1   r$   r   Úgnuplot_SuitesÚRequired_Suiter   r   r   Úgnuplot_SuiteÚodds_and_endsÚStandard_SuiteÚMiscellaneous_Eventsr   r"   r   r   r   ú<module>rB      s	  ððð ð Ð Ð Ð Ð Ð Ð Ð à €€€ð
#ð #ð #ð #ð #ñ #ô #ð #ðL Ð Ð Ð Ø Ð Ð Ð Ø €€€ðð ð ð	7ð 	7ð 	7ð 	7ð 	7ˆwŒ~ØÔ,ØÔ+ØÔ+ØÔ,ØÔ2ñ	7ô 	7ð 	7ð/ð /ð /ð /ð /ñ /ô /ð /ð /ð /r   