File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111separate matplotlib.ticker formatters and locators as desired since
1212the two axes are independent.
1313
14- This is acheived in the following example by calling pylab's twinx()
15- function , which performs this work. See the source of twinx() in
16- pylab .py for an example of how to do it for different x scales. (Hint:
14+ This is achieved in the following example by calling the Axes. twinx()
15+ method , which performs this work. See the source of twinx() in
16+ axes .py for an example of how to do it for different x scales. (Hint:
1717use the xaxis instance and call tick_bottom and tick_top in place of
1818tick_left and tick_right.)
1919
20+ The twinx and twiny methods are also exposed as pyplot functions.
21+
2022"""
2123
2224import numpy as np
Original file line number Diff line number Diff line change 117117 'text_rotation.py' ,
118118 'text_themes.py' ,
119119# 'tex_demo.py',
120- 'two_scales.py' ,
120+ # 'two_scales.py',
121121 'unicode_demo.py' ,
122122 'vline_demo.py' ,
123123 'xcorr_demo.py' ,
132132 'color_cycle.py' ,
133133 'donut_demo.py' ,
134134 'path_patch_demo.py' ,
135- 'quad_bezier.py'
135+ 'quad_bezier.py' ,
136+ 'two_scales.py'
136137]
137138
138139units_dir = os .path .join ('..' , 'units' )
You can’t perform that action at this time.
0 commit comments