Changeset 1425 for trunk/python
- Timestamp:
- 06/20/08 13:02:24 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asaplotbase.py
r1259 r1425 15 15 from matplotlib.ticker import OldScalarFormatter 16 16 from matplotlib.ticker import NullLocator 17 from matplotlib.transforms import blend_xy_sep_transform 17 18 # API change in mpl >= 0.98 19 try: 20 from matplotlib.transforms import blended_transform_factory 21 except ImportError: 22 from matplotlib.transforms import blend_xy_sep_transform as blended_transform_factory 18 23 19 24 if int(matplotlib.__version__.split(".")[1]) < 87: … … 781 786 valign = 'top' 782 787 ylbl = ymin-0.01 783 trans = blend _xy_sep_transform(ax.transData, ax.transAxes)788 trans = blended_transform_factory(ax.transData, ax.transAxes) 784 789 l = ax.axvline(x, ymin, ymax, color='black', **kwargs) 785 790 t = ax.text(x, ylbl ,label, verticalalignment=valign,
Note:
See TracChangeset
for help on using the changeset viewer.