Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7a4c8bd

Browse files
committed
FIX
1 parentad9f256 commit7a4c8bd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎lib/matplotlib/axes/_axes.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,10 @@ def _make_twin_axes(self, *args, **kwargs):
371371
# Typically, SubplotBase._make_twin_axes is called instead of this.
372372
if'sharex'inkwargsand'sharey'inkwargs:
373373
raiseValueError("Twinned Axes may share only one axis")
374-
ax2=Axes(self.figure, [0,0,1,1],*args,**kwargs)
375-
self.add_child_axes(ax2)
374+
ax2=self.figure.add_axes(
375+
self.get_position(True),*args,**kwargs,
376+
axes_locator=_TransformedBoundsLocator(
377+
[0,0,1,1],self.transAxes))
376378
axes_locator=_TransformedBoundsLocator([0,0,1,1],self.transAxes)
377379
ax2.set_axes_locator(axes_locator)
378380
self.set_adjustable('datalim')

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp