From 8385e05f65be4b552776a40e792cb09da81dac28 Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Mon, 19 Jan 2015 18:40:53 -0500 Subject: [PATCH] DOC : add caveat to mpl_toolkits ImageGrid The `axes_class` kwarg must be a sub-class of the Axes subclass which has the axis artist replaced as done in `mpl_toolkits.axes_grid1.mpl_axes.Axes`. --- lib/mpl_toolkits/axes_grid1/axes_grid.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/mpl_toolkits/axes_grid1/axes_grid.py b/lib/mpl_toolkits/axes_grid1/axes_grid.py index 1b996acca04f..778e8fd2204b 100644 --- a/lib/mpl_toolkits/axes_grid1/axes_grid.py +++ b/lib/mpl_toolkits/axes_grid1/axes_grid.py @@ -26,6 +26,7 @@ def _extend_axes_pad(value): ret = (value, value) return ret + def _tick_only(ax, bottom_on, left_on): bottom_off = not bottom_on left_off = not left_on @@ -516,7 +517,8 @@ def __init__(self, fig, cbar_size "5%" cbar_set_cax True [ True | False ] axes_class None a type object which must be a subclass - of :class:`~matplotlib.axes.Axes` + of axes_grid's subclass of + :class:`~matplotlib.axes.Axes` ================ ======== ========================================= *cbar_set_cax* : if True, each axes in the grid has a cax