Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 56314cd

Browse files
committed
fix axes_grid/demo_parasite_axes.py
svn path=/trunk/matplotlib/; revision=7197
1 parent 3ed0430 commit 56314cd

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

examples/axes_grid/demo_parasite_axes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@
2222

2323
par2.set_ylabel("Velocity")
2424
offset = (60, 0)
25-
new_axisline = par2._grid_helper.new_axisline
25+
new_axisline = par2._grid_helper.new_fixed_axis
2626
par2.axis["right2"] = new_axisline(loc="right",
27+
axes=par2,
2728
offset=offset)
2829

2930

examples/axes_grid/demo_parasite_axes2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from mpl_toolkits.axes_grid.parasite_axes import SubplotHost
2-
import matplotlib.transforms as mtransforms
32
import matplotlib.pyplot as plt
43

54
if 1:
@@ -20,6 +19,7 @@
2019
offset = 60, 0
2120
new_axisline = par2.get_grid_helper().new_fixed_axis
2221
par2.axis["right2"] = new_axisline(loc="right",
22+
axes=par2,
2323
offset=offset)
2424

2525
par2.axis["right2"].label.set_visible(True)

0 commit comments

Comments
 (0)