Hi Tim,

Am 29.04.2008 um 09:28 schrieb Tim Head:
> I had looked at the range style because it is mentioned in both
> histogram and errorbar but could not quite figure out how to use
> usenames, docs read like it should be a dictionary but if you look in
> the code you see def range(....., usenames=[], ...).

It's a dictionary here:

     [EMAIL PROTECTED]:~/python/pyx/pyx/graph$ egrep -n '__init__.*usename'  
style.py
     210:    def __init__(self, usenames={}, epsilon=1e-10):

(This is the current svn head ... I don't know whether it was a list  
before, but it would not make too much sense.)

> Maybe we can add an example to the docs of errorbar saying: "if you
> want errorbars in a histogram you need to provide your errorbar delta
> under a different name. The following code will take care of this:
> $your_code" (better english needed)

Maybe we could add it using a double bend sign in the graphstyles/ 
errorbar ...

> Out of academic interest, why does adding dy= to my data confuse the
> histogram style?


Because you then provide a range in one graph dimension and a value in  
the othogonal graph dimension. The histogram style can than plot  
histogramms without using the autohistogram feature (for equal spaced  
values). Just skip the errorbar and insert the graph.style.range()  
before the graph.style.histogram() in the graph styles list.


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