ValueError: Die Anzahl der Zeilen muss eine positive Ganzzahl sein, nicht Gridspec (2, 1, height_Ratios = [1, 3]) [1: 2,

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: ValueError: Die Anzahl der Zeilen muss eine positive Ganzzahl sein, nicht Gridspec (2, 1, height_Ratios = [1, 3]) [1: 2,

by Anonymous » 12 Apr 2025, 18:02

Versuchen Sie, eine 2 -Zeile -1 -COL -Unterhandlung mit GridSpec zu erstellen und den Fehler < /p>
zu erhaltenValueError: Number of rows must be a positive integer, not GridSpec(2, 1, height_ratios=[1, 3])[1:2, 0:1]
< /code>
Bei Verwendung von Code < /p>
fig, ax = plt.subplots(figsize = (8,6))
gs = gridspec.GridSpec(2,1,height_ratios = [1,3])
< /code>
Und ich kann das Leben von mir nicht herausfinden, warum. Ich möchte>

Top