On 04/10/2013 10:21 PM, Steven hunyady wrote:

My next puzzle is how to plot multiple columns of data. I see how it is done
in the command line interface with a second xy plotter, but that does not
appear to work in the embedded interface. I'll post the code if needed.

You need to give your columns different names (e.g. x1, x2, y1, y2). You also need to add more than one xy plotter and set the xData and yData settings to be these names (x and y are the defaults). See the saved document format for more details.

Using the new object-oriented interface (highly recommended if you're not using this), you can do

embed = veusz.Embedded('window title')
page = embed.Root.Add('page')
graph = page.Add('graph')
xy1 = graph.Add('xy', xData='x1', yData='y1')
xy2 = graph.Add('xy', xData='x2', yData='y2')

...

xy2.xData.val = 'x3'

Jeremy


_______________________________________________
Veusz-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/veusz-discuss

Répondre à