So I gave it a shot:
imported a file like this:
Date (time), Value
30.05.11 00:00, 10.200
30.05.11 00:01, 10.200
30.05.11 00:02, 10.200
30.05.11 00:03, 10.200
30.05.11 00:04, 10.200
30.05.11 00:05, 10.200
30.05.11 00:06, 10.200
30.05.11 00:07, 10.200
30.05.11 00:08, 10.200
30.05.11 00:09, 10.200
and got this:
Traceback (most recent call last):
File "veusz/utils/treemodel.pyc", line 100, in data
File "veusz/qtwidgets/datasetbrowser.pyc", line 130, in toolTip
File "veusz/document/datasets.pyc", line 722, in userPreview
File "veusz/document/datasets.pyc", line 670, in dsPreviewHelper
ZeroDivisionError: float division
hhhmmmmmm...
I select Date for X-data and Value for Y-data but no graph show's up!
The question which come's up in my mind is: What do you mean with "local time
format"?
Greetz
Mirco
P.S.: I even found a simple solution for the line numbers:
#!/bin/bash
WEEK=$(date +"%W")
DWEEK=$(echo $WEEK -1| bc)
for i in {1..6}
do
grep -Fq Value zaehler_"$i"_KW"$DWEEK".csv
if [ $? -eq 0 ]
then
echo "The file is already modified"
else
echo "file will now be modified"
# ssed '/./=' zaehler_"$i"_KW"$DWEEK".csv | sed '/./N; s/\n/, /' >
zaehler_"$i"_KW"$DWEEK"_mod.csv
# ssed -i '1 i \Serial, Date, Value' zaehler_"$i"_KW"$DWEEK"_mod.csv
ssed -i '1 i \Date (time), Value' zaehler_"$i"_KW"$DWEEK".csv
fi
# echo "file zaehler_"$i"_KW"$DWEEK"_mod.csv created"
echo "file zaehler_"$i"_KW"$DWEEK".csv modified"
done
Am 06.06.2011 um 18:19 schrieb Jeremy Sanders:
> Mirco Schmidt wrote:
>
>> Hi all,
>>
>> I've got a *.csv which look's like this:
>>
>> 05.06.11 22:46, 10.020
>> 05.06.11 22:47, 10.000
>> 05.06.11 22:48, 10.070
>> 05.06.11 22:49, 10.020
>> 05.06.11 22:50, 10.030
>> 05.06.11 22:51, 9.980
>> 05.06.11 22:52, 9.930
>> 05.06.11 22:53, 9.950
>> 05.06.11 22:54, 9.990
>> 05.06.11 22:55, 9.980
>> 05.06.11 22:56, 9.990
>>
>> I'm running on version 1.11 on Mac OS 10.6.7...
>>
>> I use Menu "Data / Import" to link my dataset to the project, but when
>> adding the xy plot to the graph I'm stuck. I even followed the howto from
>> the page, but my data seems to be so different that this doesn't work for
>> me!
>
> Hi - you should be able be able to import dates and times, either formatted
> in ISO format (like YYYY-MM-DDTHH:MM:SS.sss) or using the local time format.
> You need a title above each column like
>
> mytime (time), value
> 05.06.11 22:46, 10.020
> 05.06.11 22:47, 10.000
> 05.06.11 22:48, 10.070
> 05.06.11 22:49, 10.020
> 05.06.11 22:50, 10.030
> 05.06.11 22:51, 9.980
>
> This should import two datasets. You can then add an "xy" widget to the
> graph widget. Change the "X data" property to be "mytime" and the "Y data"
> property to be "value". This should give you a plot like you see in the
> preview for the dataset.
>
> Jeremy
>
>
>
>
>
> _______________________________________________
> Veusz-discuss mailing list
> [email protected]
> https://mail.gna.org/listinfo/veusz-discuss
_______________________________________________
Veusz-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/veusz-discuss