Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c9a5463

Browse filesBrowse files
authored
Merge pull request #23468 from anntzer/dfag
Display grid in floating axes example.
2 parents 1e69493 + f34d0b9 commit c9a5463
Copy full SHA for c9a5463

File tree

Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed

‎examples/axisartist/demo_floating_axes.py

Copy file name to clipboardExpand all lines: examples/axisartist/demo_floating_axes.py
+3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.