Skip to content

Commit 60ce564

Browse files
committed
axes_grid: doc update
svn path=/trunk/matplotlib/; revision=7241
1 parent fa3dc1f commit 60ce564

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

doc/mpl_toolkits/axes_grid/users/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@
1111

1212
overview.rst
1313
axes_divider.rst
14+
axislines.rst

doc/mpl_toolkits/axes_grid/users/overview.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,3 +388,13 @@ represented by the inset axes.
388388
.. plot:: mpl_toolkits/axes_grid/figures/inset_locator_demo2.py
389389
:include-source:
390390

391+
392+
Curvelinear Grid
393+
================
394+
395+
You can draw a cuvelinear grid and ticks. Also a floating axis can be
396+
created. See :ref:`axislines-manual` for more details.
397+
398+
.. plot:: mpl_toolkits/axes_grid/figures/demo_floating_axis.py
399+
400+

examples/axes_grid/demo_floating_axis.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@ def curvelinear_test2(fig):
4040

4141
ax1 = SubplotHost(fig, 1, 1, 1, grid_helper=grid_helper)
4242

43-
# make ticklabels of right and top axis visible.
44-
for axis in ax1.axis.values():
45-
axis.toggle(all=False)
4643

4744
fig.add_subplot(ax1)
4845

lib/mpl_toolkits/axes_grid/grid_helper_curvelinear.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,10 +315,13 @@ def new_fixed_axis(self, loc,
315315
def new_floating_axis(self, nth_coord,
316316
value,
317317
tick_direction="in",
318-
label_direction="top",
318+
label_direction=None,
319319
axes=None,
320320
):
321321

322+
if label_direction is None:
323+
label_direction = "top"
324+
322325
_helper = FloatingAxisArtistHelper(self, nth_coord,
323326
value,
324327
label_direction=label_direction,

0 commit comments

Comments
 (0)