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

Skip to content

Commit f34d0b9

Browse files
committed
Display grid in floating axes example.
This is the only full featured example with floating axes, so displaying grids makes it easier to check that grids are indeed working.
1 parent 4455dc9 commit f34d0b9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/axisartist/demo_floating_axes.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ def setup_axes1(fig, rect):
4141

4242
ax1 = fig.add_subplot(
4343
rect, axes_class=floating_axes.FloatingAxes, grid_helper=grid_helper)
44+
ax1.grid()
4445

4546
aux_ax = ax1.get_aux_axes(tr)
4647

@@ -72,6 +73,7 @@ def setup_axes2(fig, rect):
7273

7374
ax1 = fig.add_subplot(
7475
rect, axes_class=floating_axes.FloatingAxes, grid_helper=grid_helper)
76+
ax1.grid()
7577

7678
# create a parasite axes whose transData in RA, cz
7779
aux_ax = ax1.get_aux_axes(tr)
@@ -129,6 +131,7 @@ def setup_axes3(fig, rect):
129131

130132
ax1.axis["left"].label.set_text(r"cz [km$^{-1}$]")
131133
ax1.axis["top"].label.set_text(r"$\alpha_{1950}$")
134+
ax1.grid()
132135

133136
# create a parasite axes whose transData in RA, cz
134137
aux_ax = ax1.get_aux_axes(tr)

0 commit comments

Comments
 (0)