Graphic Report

This script is an example of the mic module producing a graph with two curves:

import mic
import numpy as np

mic.graph( 'My Graph', 'x', 'f(x)' )

myx = np.array( [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0 ] )
mic.graph.add( 'x^2', myx, myx*myx, marker='o' )
mic.graph.add( 'sin(x)', myx, np.sin(myx), marker='^' )

The results are:

 
   Micromeritics Learning Center    Contact Us

Copyright © 2018. Micromeritics Instrument Corporation. All rights reserved.