Hi Joseph

This is a long-standing bug (probably from the 1st release). Each import filter is responsible for remembering what the name of imported dataset is. When the user renames the dataset, the import filter doesn't know about the change, and so it doesn't get recorded in the saved file.

It's a bit hard to fix. The standard import filter has the name encoded in a text descriptor entered by the user (which is hard to change), or in a file (very hard to change). Likewise, CSV files have the dataset names within them. There is no way for an import plugin to get to know about a name change.

The only sensible solution I can think of is to add some record in Veusz that a dataset has been renamed. This is to saved in a saved file, after the import statement. This shouldn't be that hard to implement, except for the case where the user modifies the original imported file and so the imported dataset name changes without Veusz knowing about it. The rename command would then be invalid. I suppose it could ignore missing datasets.

Jeremy

On 07/02/13 16:56, Joseph Xu wrote:
Hi Jeremy:

Thanks for the quick reply. I have another question, or maybe a bug
report. I noticed that whenever I change the name of an imported
dataset, while the change is temporarily effective, it does not get
saved to the vsz file. When I reload the file, the dataset still has
the original name it was imported with. On the other hand, name
changes for datasets I create in Veusz are saved correctly. Is this a
bug, or am I misunderstanding something?

Thanks.

Joseph

On Thu, Feb 7, 2013 at 3:20 AM, Jeremy Sanders <[email protected]> wrote:
On 02/07/2013 01:24 AM, Joseph Xu wrote:

I'm a little confused about how to enter data manually. If I open the
Create new dataset dialog, select "Value or range", and try to enter a
comma separated list of values in the "Value" text box, Veusz just
keeps telling me that I've entered an invalid number. I'm obviously
misunderstanding something. I just want to create a 1D dataset of some
specific values, without creating a csv file and importing it. What am
I doing wrong?


It's rather confusing. The create dialog box is for creating datasets based
on equations or just ranges of values. I probably should rename it to
something else.

What you actually want is the edit data dialog box. Go there. Click
"New->Numerical dataset". You can then rename it, then enter values.
Similarly you can enter text datasets here.


I also can't figure out what Veusz considers field separators in the
"Labels" property of a boxplot. It seems that no matter what I type
in, Veusz considers the contents a single label for my first box. I
want to specify the label for each box using something like a comma
delimited list, such as "Set A, Set B, Set C". How do I do this
without creating a separate data set?


I don't think it's possible currently. It would be a useful improvement.

You can fairly easily create a text dataset using the above procedure.

Hope this helps

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

Répondre à