From: André W. <wo...@us...> - 2008-04-29 09:43:13
|
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 / \ \ / ) wo...@us..., http://www.wobsta.de/ / _ \ \/\/ / PyX - High quality PostScript and PDF figures (_/ \_)_/\_/ with Python & TeX: visit http://pyx.sourceforge.net/ |