From: Dani M. <dan...@up...> - 2005-09-01 09:36:31
|
Hi everyone, I'd like to thank first the developpers for this nice package. The figures one can generate with PyX are simply impressive, and I hope PyX will improve definitively the quality of published figures in the same way TeX once did with document typesetting. I have to represent different datasets in one single figure. Every dataset consists on a list of points, each with its corresponding error: dataset[0] = [ [x01, y01, dy01], [x02, y02, dy02] ...] dataset[1] = [ [x11, y11, dy11], [x12, y12, dy12] ...] ... I represent these as symbols with error bars. Ignoring any style customization the snippet to achieve this would be something like: fig.plot([graph.data.list(dataset[i], x=1, y=2, dy=3) for i in range(len(dataset_num)], [graph.style.symbol(), graph.style.errorbar()]) Here is my question: I want the datasets to be plotted in different colors. How can I plot the symbols and errorbars with the same color, within a dataset? (this is a sort of symbol+errorbar version of the change.py example given at http://pyx.sourceforge.net/examples/graphs/index.html). I've struggled a bit with the lists, the examples and the documentation but I haven't managed to get an answer. Thanks a lot, dani |