Hi all,

The plotting software xmgrace allows to create a simple plot instantly by 
launching the program from a terminal window.
For instance, by executing
      xmgrace data.dat
where data.dat is a data file with two columns providing values for x and y, we 
get immediately a plot of the data. With “xmgrace -nxy data.dat", the plot will 
contain several curves if there are more than 2 columns in the data file (there 
are other optional arguments if we need to plot error bars).

As far as I could see, making a simple plot in Veusz involves:
1) import the data file
2) label each column with a variable=dataset name.
    Dataset names from the previous plot are proposed automatically but they 
can be irrelevant for the new plot so they may need to be deleted.
3) add a “xy” curve in the plot
4) assign the variable associated to the x axis
5) assign the variable associated to the y axis
These steps are quite time consuming when we have to creating new plots on a 
daily basis.

Is it possible to create “instantly” a plot of a datafile in Veusz similarly to 
xmgrace?

A GUI solution to skip steps 2 to 5 would be to have a new button “Instant 
plot” in the toolbar. Like the zoom button, it could propose a menu for 
creating plots like “xy”, “x y +-”, etc.
A GUI solution to skip steps 3 to 5 would be to have a new button “Import and 
Plot” in the “Import Data" window.
If Veusz is launched with a datafile (either from the terminal or graphically 
with “open with …”), it would be nice if it would plot the data in the file 
instead of showing an error.

I’ve seen the command
     ImportFile('filename', 'descriptor', linked=False, prefix='', suffix='', 
encoding='utf_8', renames={})
in the manual but this does not look very convenient.

Has anyone succeeded in creating a script that could be invoked from the 
Terminal to create instantly a plot of a datafile with Veusz?

Thanks for helping,
Vincent


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

Répondre à