Python Pyx: Balkendiagramm Y-Achse-HöhePython

Python-Programme
Anonymous
 Python Pyx: Balkendiagramm Y-Achse-Höhe

Post by Anonymous »

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.>

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post