Skip to content

Commit 09e3119

Browse files
committed
Try selective not inheriting members for axisartist and axes_grid1
1 parent 68c6593 commit 09e3119

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

doc/_templates/autosummary.rst

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,27 @@
33

44
.. currentmodule:: {{ module }}
55

6-
76
{% if objtype in ['class'] %}
7+
{% if module in ['mpl_toolkits.axes_grid1.mpl_axes',
8+
'mpl_toolkits.axisartist.axislines',
9+
'mpl_toolkits.mplot3d.axis3d'] %}
10+
.. auto{{ objtype }}:: {{ objname }}
11+
:show-inheritance:
12+
:no-inherited-members:
13+
{% else %}
814
.. auto{{ objtype }}:: {{ objname }}
915
:show-inheritance:
16+
{% endif %}
1017

1118
{% else %}
1219
.. auto{{ objtype }}:: {{ objname }}
1320
1421
{% endif %}
15-
1622
{% if objtype in ['class', 'method', 'function'] %}
1723
{% if objname in ['AxesGrid', 'Scalable', 'HostAxes', 'FloatingAxes',
1824
'ParasiteAxesAuxTrans', 'ParasiteAxes'] %}
1925
.. Filter out the above aliases to other classes, as sphinx gallery
2026
creates no example file for those (sphinx-gallery/sphinx-gallery#365)
21-
2227
{% else %}
2328
.. include:: {{module}}.{{objname}}.examples
2429

0 commit comments

Comments
 (0)