Re: [Veusz-discuss] using a variable as a scaling fr an axis and in a text field

2015-06-01 Par sujet Jeremy Sanders

Dear Yan

On 01/06/15 14:08, Yan Grange wrote:


So basically for my axis function I have a function in the form of (t/4e6)*100. 
Is there any way I can replace the 4e6 by something like sum(dataset_a)?


Unfortunately they code which evaluates the axis function doesn't do the 
dataset substitution, unlike other places which evaluate expressions. I 
assume making a new t_new, which is t/t.max() is no use?


I can't think of a workaround for this, as the evaluation code is pretty 
strict on what's accepted. Perhaps it's possible to do something 
horrible, like add add a python module to the custom dialog to import 
veusz, and extract the data out of window.document.data. It would be 
nice to remove this limitation.



The next question would be: can I actually also put a text box that essentially 
puts this value on the plot somewhere (so basically adding a parameter 
calculated based on the data to a text box)?


Again, this isn't possible. It would be a nice feature to allow 
expansion of Python expressions within text labels, though.


The only work around would be a Tools Plugin that you would have to 
manually run to modify the document to set both of these.


Cheers

Jeremy


___
Veusz-discuss mailing list
Veusz-discuss@gna.org
https://mail.gna.org/listinfo/veusz-discuss


[Veusz-discuss] Load a Veusz file, create a figure and store it from Python

2015-06-01 Par sujet Michael Clerx

Dear all,

I have a number of veusz plots I'd like to regenerate automatically 
every time I update some data. I'm sure I'm missing something obvious in 
the docs, but I can't find out how I can use Python to:


1. Load an existing Veusz file
2. Create an EPS plot
3. And store it somewhere

Your help would be much appreciated.

kind regards,
  Michael

___
Veusz-discuss mailing list
Veusz-discuss@gna.org
https://mail.gna.org/listinfo/veusz-discuss