File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55
66Test unit support with each of the Matplotlib primitive artist types.
77
8- The axis handles unit conversions and the artists keep a pointer to
9- their axis parent, so you must initialize the artists with the axis instance
10- if you want to use them with unit data, or else they will not
11- know how to convert the units to scalars.
8+ The axis handles unit conversions and the artists keep a pointer to their axis
9+ parent. You must initialize the artists with the axis instance if you want to
10+ use them with unit data, or else they will not know how to convert the units
11+ to scalars.
1212"""
1313import random
1414import matplotlib .lines as lines
Original file line number Diff line number Diff line change 33Bar demo with units
44===================
55
6- A plot using a variety of centimetre vs inches conversions. This example shows
7- how default unit introspection works (ax1), how various keywords can
8- be used to set the x and y units to override the defaults (ax2, ax3,
9- ax4) and how one can set the xlimits using scalars (ax3, current units
10- assumed) or units (conversions applied to get the numbers to current
11- units).
6+ A plot using a variety of centimetre and inch conversions. This example shows
7+ how default unit introspection works (ax1), how various keywords can be used to
8+ set the x and y units to override the defaults (ax2, ax3, ax4) and how one can
9+ set the xlimits using scalars (ax3, current units assumed) or units
10+ (conversions applied to get the numbers to current units).
1211
1312"""
1413import numpy as np
You can’t perform that action at this time.
0 commit comments