Jörg,

Am 29.04.2008 um 09:38 schrieb Joerg Lehmann:
> This brings me to a point which I wanted to bring up for quite
> some time now... At the moment, it's rather hard to figure out
> what "sharedata" the styles need and also what they create.

PyX itself needs to fetch this information too. Here is how:

     from pyx import *

     print graph.style.pos.providesdata
     print graph.style.range.providesdata
     print graph.style.histogram.needsdata

BTW: It seems that you do not need to specify the range style  
explicitely to use a non-automatic histogram. This is different from  
what I wrote in the answer to time a few minutes ago. I haven't  
checked, but the histogram tries to get a range by itself ...

> I think, it would be really useful to mention this either in the
> docstrings or the reference manual.


Well, there is some documentation in

     print graph.style._style.__doc__

Certainly all this could be improved, but at least it's not that we're  
trying to hide something from our users ...


André

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


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to