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)
| 1301 | |
| 1302 | |
| 1303 | def 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 | |
| 1316 | def subplots_adjust(left=None, bottom=None, right=None, top=None, |