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

Peace,
Brendon

------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to