Hi,

  It is an error in the documentation. If you check the C version of the
same function it does not returns x,y, it actually receives x,y as
parameters.

Best,
Scuri


2018-04-12 9:22 GMT-03:00 Johann Philippe via Iup-users <
iup-users@lists.sourceforge.net>:

> Dear all,
>
> I've been working yesterday with iupPlot / Lua : what i want to do is to
> add points with mouse (i could do this with plotbutton_cb) and, when i
> click on an existing sample, to move it on the graph with mouse. I'm able
> to find the point with the plot:FindSample(), and to select it isn't a
> problem - plot:SetSampleSelection(). Even having mouse values isn't a
> problem with plotmotion_cb.
> The problem is that i can't find a way to change the sample coordinates :
> even the plot:SetSample() function doesn't work for me (and i don't really
> understand why this function doesn't take x and y points as input
> arguments).Is this function designed for that purpose ?
> Or is there another way ? Maybe having direct access on the Dataset Table
> could be great, but i don't find neither a way to change coordinates in the
> dataset : the IupPlot page online only talks about DS_REMOVE, or DS_COUNT,
> but there is no DS_EDIT or something like that.
>
> Any help would be great
>
> Also, this Plot seems really powerfull, "bravo" for this beatiful work,
> and thanks a lot.
>
>
> Johann
>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to