Re: [Veusz-discuss] Suggestions about Datetime datasets and the Picker

2011-09-28 Par sujet mimisa...@gmail.com

An idea could be to add, beside the picker icon, two drop-down lists:
1. the target drop-down listing available datasets where one can 
decide from which dataset the picker picks points. The drop-down list 
could also have a nearest point reproduce the original picker behavior.

2. the action dropdown defining the picker output type.
Possible values for actionare:
Log to statusbar only prints the picked point to the status 
bar (original picker behaviour)
Log to new textwindow prints the picked points to a 
textwindow where one can copy and paste

them into other applications
Log to consoleprint the picked points veusz internal 
python console
Label points on graph draws a symbol over at the point 
position and a text label near the picked point

on the graph showing point coordinates
Log to new datasetcreates a new dataset to store the 
coordinates of the picked points

Ciao,
Valerio.

On 16/09/2011 17:46, Benjamin K. Stuhl wrote:

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



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


Re: [Veusz-discuss] Suggestions about Datetime datasets and the Picker

2011-09-16 Par sujet Benjamin K. Stuhl

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