Logo Search packages:      
Sourcecode: matplotlib version File versions

units::bar_demo2 Namespace Reference

Detailed Description

plot using a variety of cm vs inches conversions.  The example shows
how default unit instrospection works (ax1), how various keywords can
be used to set the x and y units to override the defaults (ax2, ax3,
ax4) and how one can set the xlimits using scalars (ax3, current units
assumed) or units (conversions applied to get the numbers to current


tuple ax1 = fig.add_subplot(2,2,1)
tuple ax2 = fig.add_subplot(2,2,2)
tuple ax3 = fig.add_subplot(2,2,3)
tuple ax4 = fig.add_subplot(2,2,4)
int bottom = 0
tuple cms = cm*np.arange(0, 10, 2)
tuple fig = figure()
float width = 0.8

Generated by  Doxygen 1.6.0   Back to index