;ò
É“ô;c           @   s×   d  k  Z  d  k Z d  k Z d  k Z d f  d „  ƒ  YZ e ƒ  a e d „ Z d „  Z d „  Z	 d „  Z
 e e d „ Z d „  Z d	 „  Z d
 „  Z e e e e e d „ Z d e e d „ Z d e e e e d „ Z d  S(   Ns   _MatlabEmulationc           B   s¶   t  Z d d d g Z d d d d d d	 d
 d d d d d d d d g Z d d d d d d g Z e Z e Z e Z d Z	 d Z
 d Z d Z d „  Z d „  Z e d „ Z e d „ Z RS(   Ns   solids
   longdasheds   dotteds   filled circles   pluss   asterisks   circles   crosss   squares   triangles   diamonds   stars   inverted triangles   octagons   filled squares   filled triangles   filled diamonds   filled inverted triangles   blacks   reds   greens   blues   magentas   cyani   i    c         C   s´  t  d t  f \ } } } t i | d ƒ d j o d } t i | d d ƒ } nq t i | d ƒ d j o d } t i | d d ƒ } n9 t i | d ƒ d j o d	 } t i | d d ƒ } n d
 | j o
 d } n¢ d | j o
 d } n‹ d | j o
 d } nt d | j o
 d } n] d | j o
 d } nF d | j o
 d } n/ d | j o
 d } n d | j o
 d } n d | j o
 d } nd | j o
 d } nþ d | j o
 d } nç d | j o
 d  } nÐ d! | j o
 d" } n¹ d# | j o
 d$ } n¢ d% | j o
 d& } n‹ d' | j o
 d( } nt d) | j o
 d* } n] d+ | j o
 d, } nF d- | j o
 d. } n/ d/ | j o
 d0 } n d1 | j o
 d2 } n | | | f Sd  S(3   Ns   blacks   --i    s
   longdasheds    s   -s   solids   :s   dotteds   ys   yellows   ms   magentas   cs   cyans   rs   reds   gs   greens   bs   blues   ks   ws   whites   .s   dots   os   filled circles   xs   crosss   +s   pluss   *s   asterisks   ss   filled squares   ds   filled diamonds   ^s   triangles   vs   inverted triangles   <s   filled triangles   >s   filled inverted triangles   ps   octagons   hs   filled octagon(   s   Nones   ls   cs   ds   strings   finds   ss   replace(   s   selfs   ss   cs   ds   l(    (    s   ../biggles/matlab.pys   parse_styleC   sj     
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c         C   s:   |  i t j o t i |  i |  i ƒ |  _ n |  i Sd  S(   N(   s   selfs   TABLEs   Nones   biggless   Tables   NROWSs   NCOLS(   s   self(    (    s   ../biggles/matlab.pys	   get_tableh   s    c         C   s”   | t j oI |  i o |  i } qV |  i ƒ  } t i ƒ  } | | |  i |  i	 f <n y | i
 d } Wn t j
 o d } n X| | _
 | Sd  S(   Ni   i    (   s   ps   Nones   selfs   HOLDs	   get_tables   ts   biggless
   FramedPlots   Rs   Cs   mplotnums   nths   KeyError(   s   selfs   ps   nths   t(    (    s   ../biggles/matlab.pys   get_plotm   s    
	c         C   sG   | i } | o |  i | ƒ Sn# |  i | |  i | |  i | f Sd  S(   N(	   s   ps   mplotnums   ns   styles   selfs   parse_styles   LINESs   COLORSs   SYMBOLS(   s   selfs   ps   styles   n(    (    s   ../biggles/matlab.pys	   get_style~   s    	(   s   __name__s
   __module__s   LINESs   SYMBOLSs   COLORSs   Nones   LASTs   HOLDs   TABLEs   NROWSs   NCOLSs   Rs   Cs   parse_styles	   get_tables   get_plots	   get_style(    (    (    s   ../biggles/matlab.pys   _MatlabEmulation/   s   3	%	c         C   s¸   t  i |  j p t  i | j o t t  _ n |  t  _ | t  _ | t j oV t t	 | d ƒ t	 | ƒ ƒ t  _ t d t i t	 | ƒ d t	 | ƒ ƒ ƒ t  _ n | t  _ | t  _ d  S(   Ni   f0.5f1.0(   s   _matlabs   NROWSs   nrs   NCOLSs   ncs   Nones   TABLEs   cs   ints   floats   rs   Rs   maths   fmods   C(   s   nrs   ncs   rs   c(    (    s   ../biggles/matlab.pys   subplot‡   s      		#3	c           C   s   t  i t  _ d  S(   N(   s   _matlabs   LASTs   HOLD(    (    (    s   ../biggles/matlab.pys   hold_on”   s     c           C   s   t  t _ d  S(   N(   s   Nones   _matlabs   HOLD(    (    (    s   ../biggles/matlab.pys   hold_off˜   s     c           C   sC   t  t _ t  t _ t  t _ d t _ d t _ d t _ d t _ d  S(   Ni   i    (	   s   Nones   _matlabs   LASTs   HOLDs   TABLEs   NROWSs   NCOLSs   Rs   C(    (    (    s   ../biggles/matlab.pys   clfœ   s     						c         C   s+   t  i o t  i i d |  d | ƒ n d  S(   Ns   widths   height(   s   _matlabs   TABLEs   shows   widths   height(   s   widths   height(    (    s   ../biggles/matlab.pys   drawnow¦   s     
c         C   s   t  i o |  t  i _ n d  S(   N(   s   _matlabs   LASTs   ss   xlabel(   s   s(    (    s   ../biggles/matlab.pys   xlabel«   s     
c         C   s   t  i o |  t  i _ n d  S(   N(   s   _matlabs   LASTs   ss   ylabel(   s   s(    (    s   ../biggles/matlab.pys   ylabel°   s     
c         C   s   t  i o |  t  i _ n d  S(   N(   s   _matlabs   LASTs   ss   title(   s   s(    (    s   ../biggles/matlab.pys   titleµ   s     
c         C   så   t  i | ƒ } t  i | | ƒ \ } } } | t	 j o |  } t t | ƒ ƒ }  n | t	 j	 o) | i t i |  | d | d | ƒƒ n | t	 j	 o) | i t i |  | d | d | ƒƒ n | o | i ƒ  n | t  _ | Sd  S(   Ns   colors
   symboltypes   linetype(   s   _matlabs   get_plots   ps	   get_styles   styles   lstyles   colors   mstyles   ys   Nones   xs   ranges   lens   adds   biggless   Pointss   Curves   shows   LAST(   s   xs   ys   styles   shows   ps   colors   mstyles   lstyle(    (    s   ../biggles/matlab.pys   plotº   s     ))	s   ko-c   	      C   sÞ   t  i | ƒ } t  i | | ƒ \ } } } | i t	 i
 |  | | d | ƒƒ | t j	 o) | i t	 i |  | d | d | ƒƒ n | t j	 o) | i t	 i |  | d | d | ƒƒ n | o | i ƒ  n | t  _ | Sd  S(   Ns   colors   type(   s   _matlabs   get_plots   ps	   get_styles   styles   lstyles   colors   mstyles   adds   biggless   SymmetricErrorBarsYs   xs   ys   es   Nones   Pointss   Curves   shows   LAST(	   s   xs   ys   es   styles   shows   ps   colors   mstyles   lstyle(    (    s   ../biggles/matlab.pys   errorbarÍ   s     "))	i
   c         C   s½  t  i | ƒ } | t j o t t |  ƒ ƒ } n | t j o t t	 |  ƒ ƒ } n | | t | d ƒ } t i | | | | ƒ } t i | i d ƒ } xm t t |  ƒ ƒ D]Y }	 t t t |  |	 ƒ | | d ƒ ƒ }
 y | |
 d | |
 <Wq® t j
 o q® Xq® Wt i d t | ƒ d d ƒ } t i d t | ƒ d ƒ } | d | d <d | d <x t d t | ƒ ƒ D]v }	 | |	 | |	 | f \ | d d |	 <| d d |	 d <| |	 | |	 f \ | d d |	 <| d d |	 d <qvW| |	 | | d d |	 d <d | d d |	 d <| d | d d |	 d <d | d d |	 d <| i t i | | ƒ t i | | ƒ ƒ d t	 | ƒ f | _ | t j	 o | i  ƒ  n | t  _! | Sd  S(   Ni   s   ii    i   i   s   f("   s   _matlabs   get_plots   ps   vmins   Nones   floats   mins   vs   vmaxs   maxs   nbinss   binwidths   Numerics
   arrayranges   xs   zeross   shapes   ys   ranges   lens   is   ints   rounds   ns
   IndexErrors   xxs   yys   adds   biggless	   FillBelows   Curves   yranges   shows   LAST(   s   vs   nbinss   vmins   vmaxs   shows   ps   binwidths   xxs   yys   is   ns   ys   x(    (    s   ../biggles/matlab.pys   histÞ   sD      '	 
 ::(	(   s   biggless   maths   Numerics   strings   _MatlabEmulations   _matlabs   Nones   subplots   hold_ons   hold_offs   clfs   drawnows   xlabels   ylabels   titles   plots   errorbars   hist(   s   subplots   drawnows   biggless   strings   titles   _MatlabEmulations   clfs   plots   Numerics   errorbars   hists   hold_ons   xlabels   ylabels   hold_offs   math(    (    s   ../biggles/matlab.pys   ?*   s    				V				
			