Graphic Reports
Available Mic Python calls for graphic reports:
- Add a curve
- Add a curve using the second y-axis
- Create a new graphic report
Add a Curve
This script adds a curve to the last created graphical report:
mic.graph.add( name, x, y, yyaxis=False, color=None, linestyle='-', marker='a', graphtype='both' ) 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
Add a Curve Using the Second Y-Axis
This script adds a curve to the last created graphical report using the second y-axis:
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 with the argument
Create a New Graphical Report
mic.graph( title='User Graph', xlabel='X axis', ylabel='Y axis', yylabel='YY axis', xlinear=True, ylinear=True, yylinear=True ) 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)
Micromeritics Learning Center Contact Us
Copyright © 2014 - 2018. Micromeritics Instrument Corporation. All rights reserved.