def realimag_data(xdata, ydata, eydata=None, exdata=None, xscale='<STR_LIT>', rscale='<STR_LIT>', iscale='<STR_LIT>', rlabel='<STR_LIT>', ilabel='<STR_LIT>', figure='<STR_LIT>', clear=<NUM_LIT:1>, draw=True, **kwargs):
_pylab.ioff()<EOL>xdata, ydata = _match_data_sets(xdata, ydata)<EOL>exdata = _match_error_to_data_set(xdata, exdata)<EOL>eydata = _match_error_to_data_set(ydata, eydata)<EOL>rdata = []<EOL>idata = []<EOL>erdata = []<EOL>eidata = []    <EOL>for l in range(len(ydata)):<EOL><INDENT>rdata.append(_n.real(ydata[l]))<EOL>idata.append(_n.imag(ydata[l]))<EOL>if eydata[l] is None:<EOL><INDENT>erdata.append(None)<EOL>eidata.append(None)<EOL><DEDENT>else:<EOL><INDENT>erdata.append(_n.real(eydata[l]))<EOL>eidata.append(_n.imag(eydata[l]))<EOL><DEDENT><DEDENT>if figure == '<STR_LIT>': f = _pylab.gcf()<EOL>if clear: f.clear()<EOL>axes1 = _pylab.subplot(<NUM_LIT>)<EOL>axes2 = _pylab.subplot(<NUM_LIT>,sharex=axes1)<EOL>if '<STR_LIT>' in kwargs  : xlabel=kwargs.pop('<STR_LIT>')<EOL>else:                          xlabel='<STR_LIT>'<EOL>if '<STR_LIT>' in kwargs  : kwargs.pop('<STR_LIT>')<EOL>if '<STR_LIT>' not in kwargs:         kwargs['<STR_LIT>'] = False<EOL>if '<STR_LIT>' not in kwargs:   kwargs['<STR_LIT>'] = True<EOL>autoformat = kwargs['<STR_LIT>']<EOL>kwargs['<STR_LIT>'] = False<EOL>kwargs['<STR_LIT>'] = '<STR_LIT>'<EOL>xy_data(xdata, rdata, eydata=erdata, exdata=exdata, ylabel=rlabel, axes=axes1, clear=<NUM_LIT:0>, xscale=xscale, yscale=rscale, draw=False, **kwargs)<EOL>kwargs['<STR_LIT>'] = autoformat<EOL>kwargs['<STR_LIT>'] = xlabel<EOL>xy_data(xdata, idata, eydata=eidata, exdata=exdata, ylabel=ilabel, axes=axes2, clear=<NUM_LIT:0>, xscale=xscale, yscale=iscale, draw=False, **kwargs)<EOL>axes2.set_title('<STR_LIT>')<EOL>if draw:<EOL><INDENT>_pylab.ion()<EOL>_pylab.draw()<EOL>_pylab.show()<EOL><DEDENT>
Plots the real and imaginary parts of complex ydata vs xdata.

Parameters
----------
xdata
    Real-valued x-axis data
ydata               
    Complex-valued y-axis data
eydata=None         
    Complex-valued y-error
exdata=None         
    Real-valued x-error
xscale='linear'     
    'log' or 'linear' scale of the x axis
rscale='linear'     
    'log' or 'linear' scale of the real axis
iscale='linear'     
    'log' or 'linear' scale of the imaginary axis
rlabel='Magnitude'  
    y-axis label for real value plot
ilabel='Phase'      
    y-axis label for imaginary value plot
figure='gcf'        
    Plot on the specified figure instance or 'gcf' for current figure.
clear=1             
    Clear the figure?
draw=True
    Draw the figure when completed?

See spinmob.plot.xy.data() for additional optional keyword arguments.