def plot(self, atrix, atriy, fname=None, numtype='<STR_LIT>',<EOL>legend=None, labelx=None, labely=None, indexx=None,<EOL>indexy=None, title=None, shape='<STR_LIT:.>', logx=False,<EOL>logy=False, path='<STR_LIT:/>', base=<NUM_LIT:10>, sparse=<NUM_LIT:1>, show=True, pdf=False,limits=None,<EOL>markevery=None, linewidth=<NUM_LIT:1>):
t1=time.time()<EOL>if labelx== None :<EOL><INDENT>labelx=atrix<EOL><DEDENT>if labely== None :<EOL><INDENT>labely=atriy<EOL><DEDENT>if title!=None:<EOL><INDENT>title=title<EOL><DEDENT>else:<EOL><INDENT>title=labely+'<STR_LIT>'+labelx<EOL><DEDENT>if str(fname.__class__)=="<STR_LIT>":<EOL><INDENT>self.plotMulti(atrix,atriy,fname,title,path,legend,labelx,labely,logx, logy, <NUM_LIT:10>,<NUM_LIT:1>,pdf,limits)<EOL>return<EOL><DEDENT>tmpX=[]<EOL>tmpY=[]<EOL>singleX=False<EOL>singleY=False<EOL>plotType=self._classTest()<EOL>if plotType=='<STR_LIT>':<EOL><INDENT>if fname==None:<EOL><INDENT>fname=self.cycles[-<NUM_LIT:1>]<EOL><DEDENT>listY=self.get(atriy,fname, numtype,resolution='<STR_LIT:a>')<EOL>listX=self.get(atrix,fname, numtype,resolution='<STR_LIT:a>')<EOL><DEDENT>elif plotType=='<STR_LIT>':<EOL><INDENT>if fname==None:<EOL><INDENT>listY=self.get( atriy,sparse=sparse)<EOL>listX=self.get(atrix,sparse=sparse)<EOL><DEDENT>else:<EOL><INDENT>listY=self.get(fname, atriy,sparse=sparse)<EOL>listX=self.get(fname, atrix,sparse=sparse)<EOL><DEDENT>t2= time.time()<EOL>print(t2 -t1)<EOL><DEDENT>elif plotType=='<STR_LIT>' :<EOL><INDENT>if fname==None and atrix not in self.cattrs and atriy not in self.cattrs:<EOL><INDENT>fname=len(self.files)-<NUM_LIT:1><EOL><DEDENT>if numtype=='<STR_LIT>':<EOL><INDENT>numtype='<STR_LIT>'<EOL><DEDENT>listY=self.get(atriy,fname,numtype)<EOL>listX=self.get(atrix,fname,numtype)<EOL><DEDENT>elif plotType=='<STR_LIT>' or plotType=='<STR_LIT>' or plotType=='<STR_LIT>' or plotType=='<STR_LIT>' or plotType=='<STR_LIT>':<EOL><INDENT>listY=self.get(atriy)<EOL>listX=self.get(atrix)<EOL><DEDENT>else:<EOL><INDENT>listY=self.get(atriy)<EOL>listX=self.get(atrix)<EOL><DEDENT>tmpX=[]<EOL>tmpY=[]<EOL>if isinstance(listX[<NUM_LIT:0>], basestring) or isinstance(listY[<NUM_LIT:0>], basestring):<EOL><INDENT>for i in range(len(listX)):<EOL><INDENT>if '<STR_LIT>' == listX[i] or '<STR_LIT>' == listY[i]:<EOL><INDENT>print('<STR_LIT>')<EOL>print('<STR_LIT>')<EOL>break<EOL><DEDENT>tmpX.append(float(listX[i]))<EOL>tmpY.append(float(listY[i]))<EOL><DEDENT>listX=tmpX<EOL>listY=tmpY<EOL><DEDENT>try:<EOL><INDENT>j=listX[<NUM_LIT:0>][<NUM_LIT:0>]<EOL><DEDENT>except:<EOL><INDENT>singleX = True<EOL><DEDENT>if len(listX) == <NUM_LIT:1>:  <EOL><INDENT>tmpX=listX[<NUM_LIT:0>]<EOL><DEDENT>elif singleX == True:<EOL><INDENT>tmpX=listX<EOL><DEDENT>elif indexx==None and len(listX)><NUM_LIT:1>: <EOL><INDENT>tmpX=listX[<NUM_LIT:0>]<EOL>for i in range(len(listX)):<EOL><INDENT>if len(tmpX)<len(listX[i]):<EOL><INDENT>tmpX=listX[i]<EOL><DEDENT><DEDENT><DEDENT>elif indexx<len(listX): <EOL><INDENT>tmpX=listX[indexx]<EOL><DEDENT>else:<EOL><INDENT>print('<STR_LIT>')<EOL>return None<EOL><DEDENT>try:<EOL><INDENT>j=listY[<NUM_LIT:0>][<NUM_LIT:0>]<EOL><DEDENT>except:<EOL><INDENT>singleY = True<EOL><DEDENT>if len(listY) == <NUM_LIT:1>: <EOL><INDENT>tmpY=listY[<NUM_LIT:0>]<EOL><DEDENT>elif singleY == True: <EOL><INDENT>tmpY=listY<EOL><DEDENT>elif indexy==None and len(listY)><NUM_LIT:1>:<EOL><INDENT>tmpY=listY[<NUM_LIT:0>]<EOL>for i in range(len(listY)):<EOL><INDENT>if len(tmpY)<len(listY[i]):<EOL><INDENT>tmpY=listY[i]<EOL><DEDENT><DEDENT><DEDENT>elif indexy<len(listY): <EOL><INDENT>tmpY=listY[indexy]<EOL><DEDENT>else:<EOL><INDENT>print('<STR_LIT>')<EOL>return None<EOL><DEDENT>'''<STR_LIT>'''<EOL>if len(tmpY)!=len(tmpX):<EOL><INDENT>found=False<EOL>print("<STR_LIT>")<EOL>print("<STR_LIT>")<EOL>for i in range(len(listY)):<EOL><INDENT>if not singleY and len(tmpX)==len(listY[i]):<EOL><INDENT>tmpY=listY[i]<EOL>found=True<EOL><DEDENT><DEDENT>if not found:<EOL><INDENT>print("<STR_LIT>")<EOL>for i in range(len(listX)):<EOL><INDENT>if not singleX and len(tmpY)==len(listX[i]):<EOL><INDENT>tmpX=listX[i]<EOL>found=True<EOL><DEDENT><DEDENT><DEDENT>if found:<EOL><INDENT>print("<STR_LIT>")<EOL><DEDENT>else:<EOL><INDENT>print("<STR_LIT>")<EOL>return None<EOL><DEDENT><DEDENT>if len(tmpY)!=len(tmpX) and single == True:<EOL><INDENT>print('<STR_LIT>')<EOL>return None<EOL><DEDENT>if plotType!='<STR_LIT>':<EOL><INDENT>tmpX,tmpY=self._sparse(tmpX,tmpY, sparse)<EOL><DEDENT>if logy or logx:<EOL><INDENT>tmpX,tmpY=self._logarithm(tmpX,tmpY,logx,logy,base)<EOL><DEDENT>tmX=[]<EOL>tmY=[]<EOL>for i in range(len(tmpX)):<EOL><INDENT>tmX.append(str(tmpX[i]))<EOL>tmY.append(str(tmpY[i]))<EOL><DEDENT>tmpX=[]<EOL>tmpY=[]<EOL>for i in range(len(tmX)):<EOL><INDENT>if '<STR_LIT:*>' in tmX[i] or '<STR_LIT:*>' in tmY[i]:<EOL><INDENT>print('<STR_LIT>')<EOL>print('<STR_LIT>')<EOL>break<EOL><DEDENT>tmpX.append(float(tmX[i]))<EOL>tmpY.append(float(tmY[i]))<EOL><DEDENT>listX=tmpX<EOL>listY=tmpY<EOL>if logx:<EOL><INDENT>labelx='<STR_LIT>'+labelx<EOL><DEDENT>if logy:<EOL><INDENT>labely='<STR_LIT>'+labely<EOL><DEDENT>if legend!=None:<EOL><INDENT>legend=legend<EOL><DEDENT>else:<EOL><INDENT>legend=labely+'<STR_LIT>'+labelx<EOL><DEDENT>pl.plot(listX,listY,shape,label=legend,markevery=markevery,linewidth=linewidth)<EOL>pl.legend()<EOL>pl.title(title)<EOL>pl.xlabel(labelx)<EOL>pl.ylabel(labely)<EOL>if show:<EOL><INDENT>pl.show()<EOL><DEDENT>if limits != None and len(limits)==<NUM_LIT:4>:<EOL><INDENT>pl.xlim(limits[<NUM_LIT:0>],limits[<NUM_LIT:1>])<EOL>pl.ylim(limits[<NUM_LIT:2>],limits[<NUM_LIT:3>])<EOL><DEDENT>
Simple function that plots atriy as a function of atrix

This method will automatically find and plot the requested data.

Parameters
----------
atrix : string
    The name of the attribute you want on the x axis.
atriy : string
    The name of the attribute you want on the Y axis.
fname : optional
    Be the filename, Ndump or time, or cycle, If fname is a
    list, this method will then save a png for each cycle in the
    list.  Warning, this must be a list of cycles and not a
    list of filenames. The default is None.
numtype : string, optional
    designates how this function acts and how it interprets
    fname. if numtype is 'file', this function will get the
    desird attribute from that file.  if numtype is 'NDump'
    function will look at the cycle with that nDump.  if numtype
    is 't' or 'time' function will find the _cycle with the
    closest time stamp. The default is 'ndump'.
legend : list or intager, optional
    A list of legends for each of your cycles, or one legend for
    all of the cycles. The default is None.
labelx : string, optional
    The label on the X axis. The default is None.
labely : string, optional
    The label on the Y axis. The default is None.
indexx : optional
    Depreciated: If the get method returns a list of lists,
    indexx would be the list at the index indexx in the list.
    The default is None.
indexy : optional
    Depreciated: If the get method returns a list of lists,
    indexy would be the list at the index indexx in the list.
    The default is None.
title : string, optional
    The Title of the Graph. The default is None.
shape : string, optional
    What shape and colour the user would like their plot in.
    Please see
    http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.plot
    for all possible choices. The default is '.'.
logx : boolean, optional
    A boolean of weather the user wants the x axi
    logarithmically. The default is False.
logy : boolean, optional
    A boolean of weather the user wants the Y axis
    logarithmically. The default is False.
path : string, optional
    Usef for PlotMulti, give the path where to save the Figures
base : integer, optional
    The base of the logarithm. The Default is 10.
sparse : integer, optional
    Argument that skips every so many data points. For example
    if this argument was 5, This method would plot the 0th, 5th,
    10th ... elements. The default is 1.
show : boolean, optional
    A boolean of if the plot should be displayed useful with the
    multiPlot method. The default is True.
pdf : boolean, optional
    PDF for PlotMulti? Default: False
limits : list, optional
    The length four list of the x and y limits. The order of the
    list is xmin, xmax, ymin, ymax. The defautl is .
markevery : integer or tupler, optional
    Set the markevery property to subsample the plot when
    using markers.  markevery can be None, very point will be
    plotted. It can be an integer N, Every N-th marker will be
    plotted starting with marker 0. It can be a tuple,
    markevery=(start, N) will start at point start and plot
    every N-th marker. The default is None.
linewidth : integer, optional
    Set linewidth. The default is 1.

Notes
-----
WARNING: Unstable if get returns a list with only one element (x=[0]).

parameters: indexx and indexy have been deprecated.