Python Pyx: Balkendiagramm Y-Achse-Höhe

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: Python Pyx: Balkendiagramm Y-Achse-Höhe

by Anonymous » 07 Apr 2025, 23:17

Ich möchte ein Balkendiagrammdiagramm in Pyx (siehe hier) mit dem Code < /p>
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
Ich erhalte das Diagramm

Frage: Wie das Y-Axis-Maximal, anstatt 1.0, zu zwingen.>

Top