Do you want something like the attached?

I created it with my package that no-one wants :-(

>>> import diagram_cl
>>> import diagram_cl.kernels.tk
>>> import numpy
>>> import Tkinter
>>> d1 = diagram_cl.Diagram()
>>> series = (numpy.random.random(100) > 0.5).astype(numpy.float)
>>> for idx in xrange(0, len(series)):
...     layer = diagram_cl.Layer2D(x = [0, series[idx]], y = [idx,
idx], color = 'blue')
...     d1.add_layer(layer)
...
>>> tk = Tkinter.Tk()
>>> k1 = diagram_cl.kernels.tk.Diagram(tk, d1)

Double-right click on the figure, "Save", 200x200, "Bits.png".

But of course, you can also do it with normal matplotlib (I'm not used
to the pyplot things though, I'm rather using purist's API):

Hmm, that's why it would be not the standard way to do it, so can
anyone else post pure matplotlib means?

Friedrich

<<attachment: Bits.png>>

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to