On 9/12/2011 12:38 PM, Jeremy Sanders wrote:
On 12/09/11 18:20, mimisa...@gmail.com wrote:
In my opinion it would be great if....
1. The point picker could recognize DateTime datasets and show the point
coordinates in ISO data format.
2. One could use ISO data format to set the values of axes min and max.
3. One could decide from which dataset the picker picks the points.

I've just put together a patch for the first part. It seems to work ok.

BKS - have you got a better way to get this into your picker code?

Hmm... what you've got would certainly work, but I'm not so fond of putting presentation into the Dataset. (I think it's much better to keep presentation in the presentation layers...)

However, while it'd be a more invasive change, it might make sense to add a 'usage' field to DatasetBase, to go alongside DatasetBase.datatype. DatasetBase.usage would be e.g. 'abstime', 'reltime', 'numeric' and could be used to guide point 2 as well
as the picker presentation. Alternatively, DatasetDateTime.datatype
could be changed, but that would probably have other fallout.

The second point would definitely be good. The axis should also
autodetect when dates are plotted rather than have to be set like that.
It should then display min and max as dates.

I wonder what would be the correct user interface for the 3rd idea.
Seems quite tricky... Maybe some sort of drop down menu from the pick
button to enable/disable datasets. At the moment you should just be able
to hide the datasets you don't want to pick from.

Maybe a decent interface for it is to add a 'Pick within currently selected widgets' tool?

Regards,
-- BKS

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

Répondre à