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

Répondre à