Hi Jeremy,
thanks for your very fast answers.

I have no problem in creating a dataset, but is it possible to include its
non-OO syntax in a OO-interfaced script or have I to rewrite the entire
script?!

In the second case

scatterXY.yData.val = '((1,2,3,4),(0.1,0.2,0.3,0.4))'

can be ok for me, I'm not change the data from the GUI for now...

brunetto




On 16 July 2013 16:41, Jeremy Sanders <[email protected]> wrote:

> Hi Brunetto
>
>
> On 07/16/2013 04:29 PM, brunetto wrote:
>
>  scatterXY.xData.val = np.arange(3)
>> scatterXY.yData.val = np.arange(3)**2
>>
>> where can I put errorbars values, for example erry =
>> np.sqrt(np.arange(3))?
>>
>
> This isn't the normal way of setting data for widgets. Normally you'd
> create a dataset (which can include error bars) and point the widget to the
> dataset:
>
> SetData('my_y', np.arange(3)**2, symerr=np.sqrt(np.arange(3)))
> ...
> scatterXY.yData.val = 'my_y'
>
> (although this is less OOP than the rest of the interface - perhaps it
> might be a good idea to have an iterface to wrap the datasets as objects).
>
> It is possible to use dataset expressions to set error bars directly, but
> I wouldn't recommend this as it would be slower and hard to edit with the
> UI:
>
> scatterXY.yData.val = '((1,2,3,4),(0.1,0.2,0.3,0.4))**'
>
> Jeremy
>
>
_______________________________________________
Veusz-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/veusz-discuss

Répondre à