Hi,

On 31.07.06, Sybren Stüvel wrote:
> Is it possible to create a horizontal bar graph with PyX? As in, 90
> degrees turned, with labels on the vertical axis and values on the
> horizontal axis.

The different graph dimension have no special meaning at all in PyX.
It all is triggered by the data and the axes you pass to a graph. You
can for example just exchange x and y in the minimal bargraph example
and you'll get horizontal bars:

    from pyx import *

    g = graph.graphxy(width=8, y=graph.axis.bar())
    g.plot(graph.data.file("minimal.dat", yname=0, x=2), [graph.style.bar()])
    g.writeEPSfile("minimal")
    g.writePDFfile("minimal")

HTH,


André

-- 
by  _ _      _    Dr. André Wobst
   / \ \    / )   [EMAIL PROTECTED], http://www.wobsta.de/
  / _ \ \/\/ /    PyX - High quality PostScript and PDF figures
 (_/ \_)_/\_/     with Python & TeX: visit http://pyx.sourceforge.net/

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to