Am Mittwoch, 20. April 2011, 16:35:04 schrieb Brendon Higgins:
> Hi Wolfgang,
> Wolfgang Engelmann wrote (April 20, 2011):
> > I am quite ignorant of PyX, but wonder whether it would be possible to
> > create with it a figure like the attached one. I tried pst-spectra in
> > PSTricks, but have difficulties with the main part of the image (I can
> > manage the axes).
> I had a similar problem a while ago. My solution was to generate a bitmap
> (see the pyx.bitmap module documentation) from the normalised data, and
> then draw a graph on the same canvas on top of that, to get the labelled
> axes. (I also generated a key aside it using the same method.) These are
> the steps I took: 1. Read the data using graph.data.file or your preferred
> 2. Normalise and map the data into a bitmap string. Then convert that
> string to an image with bitmap.image
> 3. Create the graph object g, and do g.dolayout()
> 4. Create a bitmap.bitmap from the image with extents given by g.vpos(0, 0)
> and g.vpos(1, 1)
> 5. Insert the bitmap, then the graph, onto a canvas, and write to file.
> It wasn't as elegant or as automated as perhaps it could have been, but it
> worked for me.
Thanks, Brendon, for your suggestion. I am still looking for a way to do the
whole image as a vector graphic, since the original is from a book (The timing
of biological clocks, A. Winfree) and I can't copy it for copyright reasons.
Will see whether PSTricks does the trick by looking at the latest edition of