So setzen Sie XLIM und YLIM für eine Nebenhandlung [Duplikat]

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: So setzen Sie XLIM und YLIM für eine Nebenhandlung [Duplikat]

by Anonymous » 11 Jul 2025, 17:14

Ich möchte die x- und y -Achse in Matplotlib für eine bestimmte Nebenhandlung begrenzen. Ich möchte zum Beispiel nur die Grenzen für das zweite Diagramm ändern: < /p>

Code: Select all

import matplotlib.pyplot as plt
fig=plt.subplot(131)
plt.scatter([1,2],[3,4])
fig=plt.subplot(132)
plt.scatter([10,20],[30,40])
fig=plt.subplot(133)
plt.scatter([15,23],[35,43])
plt.show()

Top