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

Python-Programme
Anonymous
 So setzen Sie XLIM und YLIM für eine Nebenhandlung [Duplikat]

Post by Anonymous »

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()

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post