Python Pyx: Balkendiagramm Y-Achse-Höhe
Posted: 07 Apr 2025, 23:17
Ich möchte ein Balkendiagrammdiagramm in Pyx (siehe hier) mit dem Code < /p>
erstellen
Ich erhalte das Diagramm
Frage: Wie das Y-Axis-Maximal, anstatt 1.0, zu zwingen.>
erstellen
Code: Select all
from pyx import *
g = graph.graphxy(width=8, x=graph.axis.bar())
g.plot(graph.data.file("minimal.dat", xname=0, y=2), [graph.style.bar()])
g.writePDFfile("minimal")
< /code>
und die Daten < /p>
1 0.4
2 0.5
3 0.2
4 0.1
5 0.0
Frage: Wie das Y-Axis-Maximal, anstatt 1.0, zu zwingen.>