On Tue, 16 May 2006, Andy Buckley apparently wrote: 
>  From looking in the plot examples on the PyX web page it isn't clear 
> whether I can draw histograms where the "internal" bar edges aren't 
> shown, only the outline as in the first plot on this Web page: 
> http://www.slac.stanford.edu/grp/ek/hippodraw/datareps_root.html 

> Can this sort of plot be made (easily) with PyX? An example would be 
> nice if you have the time :) 


RTFM.  ;-)
http://pyx.sourceforge.net/manual/module-graph.style.html

    class histogram(  lineattrs=[], steps=0, fromvalue=0, 
    frompathattrs=[], fillable=0, autohistogramaxisindex=0, 
    autohistogrampointpos=0.5, epsilon=1e-10)
        This class is a style to plot histograms. lineattrs 
        is merged with defaultlineattrs which is 
        [deco.stroked].  When steps is set, the histrogram 
        is plotted as steps instead of the default 

hth,
Alan Isaac

PS Example:

d = graph.data.list([
                     (1,  0.3),
                     (2,  0.5),
                     (3,  0.3),
                     (4,  0.8),
                     (5,  0.5),
                     (6,  0.0),
                     (7,  0.9)
                     ], x=1, y=2)

g = graph.graphxy(width=8)
g.plot(d, [graph.style.histogram(steps=True,fromvalue=0.0)])
g.writeEPSfile("c:\\temp\\temp.eps")





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