On 26/05/15 17:48, Joseph Lopez wrote:
I'm using a program that outputs a time-stamp in the format:
"HH:MM:SS;mil" where 'mil' is the 3-digit milisecond value.  Currently,
I am using Excel to Multiply the various time values by their conversion
factor, then summing to produce the proper millisecond value:
  HH*3600000+MM*3600+SS*1000+mil and THEN importing it into Veusz.  Is
there a way to write a plugin or formula to do this automatically within
Veusz to save me that step?

Could I automatically subtract the 1st value from all subsequent values
so that my time starts at 0?

Yes - an import plugin could do all of that. Basically its job is to read in the file and return to Veusz an object returning the list of values. If you're comfortable writing Python, there's an example import plugin on the wiki.

It could also be written as a dataset plugin which transformed a text dataset into a numeric one. This would require an extra step in importing, however. It wouldn't be useful unless you'd like to keep the text in the program.

At some point I should write a regular expression import which would allow this kind of data to be automatically transformed into a number.

Cheers

Jeremy


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

Répondre à