Hi,

On 08.05.06, trevorw wrote:
> I'm trying to determine if PyX is functional for my needs.
> 
> One of the charts I need to create is a stacked bar graph for the 12
> months of the year. I want to label my x-axis with the first letter of
> the month for each month. However when I do this, the duplicate letters
> get removed. How do I get around this?
> 
> Second I need to create a horizontal bar graph with no axes so it would
> simply be a name, a bar, and a value as below.
> 
> text ||||||| 25%
> text |||||   18%
> text |||     10%

You can set the x-axis painter and linkpainter to none. And adjust the
y painters to keep only what you want. The only think I'm not yet sure
about is how to deal with the percent values. Write the values at the
bars is easy by the graph text style, but make them to align at the
same position. Well: stack an invisible bar would be a solution.

> I'm assuming that I'll load the list and sort it so I can get a sorted
> result.

Yes, the graph data facilities are quite limited with respect to
performing those operations. (Basically all you can do is to do some
math on the columns.) I'm sorry for that, but you can always build you
own data and pass it to graph.data.list(). However, at some point we
should add some useful features to the PyX data containers.

> I would also like to be able to try individually colouring the bars.

We had a discussion about this just a few months ago:
http://sourceforge.net/mailarchive/message.php?msg_id=14963640

Maybe you're also interested in my reply. Overall this solution is
fine but we should add an appropriate style to the PyX core. I'll take
it onto my todo list.

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/


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to