MCPcopy Create free account
hub / github.com/ColdGrub1384/Pyto / twiny

Function twiny

site-packages/matplotlib/pyplot.py:1303–1313  ·  view source on GitHub ↗

Make a second axes that shares the *y*-axis. The new axis will overlay *ax* (or the current axes if *ax* is *None*). The ticks for *ax2* will be placed on the top, and the *ax2* instance is returned.

(ax=None)

Source from the content-addressed store, hash-verified

1301
1302
1303def twiny(ax=None):
1304 """
1305 Make a second axes that shares the *y*-axis. The new axis will
1306 overlay *ax* (or the current axes if *ax* is *None*). The ticks
1307 for *ax2* will be placed on the top, and the *ax2* instance is
1308 returned.
1309 """
1310 if ax is None:
1311 ax = gca()
1312 ax1 = ax.twiny()
1313 return ax1
1314
1315
1316def subplots_adjust(left=None, bottom=None, right=None, top=None,

Callers

nothing calls this directly

Calls 2

gcaFunction · 0.85
twinyMethod · 0.45

Tested by

no test coverage detected