Dear Mirco On 28/01/13 17:17, Mirco Schmidt wrote:
I've got a plot for the whole year but can't find the ability to plot just a single week or month or maybe from date to date... Except I copy the data I want to a new CSV and plot this one… Is this possible with Veusz or do I've to stick with creating new CSV's and new plot's for each detail view?
Maybe you know this, but you can just change the minimum or maximum value for an axis to be a particular date (just enter 2011-01-02 or something), under the Min or Max setting for the axis. This will let you see part of the data. Otherwise, drag the upper black box on the end of the axis, when the axis widget is selected (click on it).
As Dave says, you can chop the dataset up with the slicing or filtering plugin. Unfortunately there's no trivial way to convert dates to the values used by Veusz to do the slicing.
You can, however, go to the "Custom definitions" dialog box. Add an "import" entry with name "veusz.utils" and definition "dateStringToDate".
You can then filter datasets (under data, operations, filter) using expressions like
date > dateStringToDate('2011-01-11') & date < dateStringToDate('2011-02-11')
You can edit the expression by right-clicking on the filtered dataset and choosing edit.
There's a risk of this sort of trick going away in a future release, but I have no intention of renaming that function.
I should add it to the official list of supported functions (or a shorter version of the name)
And there's a second challenge: I've attached the PDF export of the plot which show's that there a part of the plot that contains no data. I'ld like to disable this and add some space after the MAX of 200kW so the peak doesn't reach till the top of the plot…
This is probably because of the default Axis setting of "Auto range" set to "next-tick". This controls the automatic range of a plot. Change this to "exact" to just show the range of the data.
Hope this helps Jeremy _______________________________________________ Veusz-discuss mailing list [email protected] https://mail.gna.org/listinfo/veusz-discuss
