Graphic Reports

Add a Curve

This script adds a curve to the last created graphical report:

Copy
mic.graph.add(name, x, y, yyaxis=False, color=None, linestyle='-',
              marker='a', graphtype='both', interpolation='akima'):

Keyword arguments:

  name      --- the curve name
  x         --- list of x values; must be a list of floats
                (or convertible) and the same length as y
  y         --- list of y values; must be a list of floats
                (or convertible) and the same length as x
  yyaxis    --- place this curve on the yy-axis if True
                otherwise place on the y-axis (default = False)
  color     --- RGB color as an HTML hex string (e.g., '#4169e1')
                or a three-element list or tuple (e.g., [65,105,225]);
                if None, color is automatically selected (default = None)
  linestyle --- line style; (default = '-')
                   '-'        : solid
                   '--'       : dash
                   '.'        : dot
                   '-.'       : dash dot
                   '-..'      : dash dot dot
  marker    --- marker shape; (default = 'a')
                   '+'        : plus
                   'o' or '0' : circle
                   'x'        : cross
                   '^'        : up triangle
                   'v'        : down triangle
                   's'        : square
                   'd'        : diamond
                   '8'        : hourglass
                   '~'        : horizontal hourglass
                   '' or None : no marker
                   'a'        : automatically selected
  graphtype --- graph type; (default = 'both')
                   'curve'  or 'c' : curve
                   'points' or 'p' : points
                   'both'   or 'b' : curve-and-points
                   'hist'   or 'h' : histogram
  interpolation -- linear or akima spline interpolation (default='akima')
                   'akima' use akima spline
                   'linear' use linear interpolation

 

Add a Curve Using the Second Y-Axis

This script adds a curve to the last created graphical report using the second y-axis:

Copy
mic.graph.addyy(name, xx, yy):

Add a curve to the last created graphical report using the second
y-axis. The arguments to this call are the same as to mic.graph.add.

Create a New Graphical Report

Copy
mic.graph(title='User Graph', xlabel='X axis', ylabel='Y axis',
          yylabel='YY axis',
          xlinear=True, ylinear=True, yylinear=True,
          xinvert=False, yinvert=False, yyinvert=False,
          xrange=None, yrange=None, yyrange=None, xbars_id=''):

Keyword arguments:

  title    --- the graphical report title (default = 'User Graph')
  xlabel   --- x-axis label (default = 'X axis')
  ylabel   --- y-axis label (default = 'Y axis')
  yylabel  --- yy-axis label (default = 'YY axis')
  xlinear  --- x-axis linear scale; if false, use log scale
               (default = True)
  ylinear  --- y-axis linear scale; if false, use log scale
               (default = True)
  yylinear --- yy-axis linear scale; if false, use log scale
               (default = True)
  xinvert  --- Invert x-axis if true (default = False)
  yinvert  --- Invert y-axis if true (default = False)
  yyinvert --- Invert yy-axis if true (default = False)
  xrange   --- None, or two values giving the min and max
               range of the axis.
  yrange   --- None, or two values giving the min and max
               range of the axis.
  yyrange  --- None, or two values giving the min and max
               range of the axis.
  xbars_id --- None, or the id of an xbar control created
               via the mic.control() object