Error is on me : didn't read the "only works if DS_MODE..."The plot thing i'm 
doing is going well, my last "plot question" is about drawing curved segments 
(like exponential, logarithmic etc...), i can't find in the documentation a way 
to do this.

 

    Le samedi 14 avril 2018 à 11:52:21 UTC+2, Johann Philippe via Iup-users 
<iup-users@lists.sourceforge.net> a écrit :  
 
 Another thing to report : it seems the FindSegment(cnvx,cnvy) isn't working 
(attempt to call nil value)It's weird because the segment highlighting works 
fine.

   Le vendredi 13 avril 2018 à 10:19:13 UTC+2, Johann Philippe via Iup-users 
<iup-users@lists.sourceforge.net> a écrit :  
 
 ------------------------------------------------------------------------------
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
   
Thanks Antonio ! 
    Le jeudi 12 avril 2018 à 15:31:35 UTC+2, Antonio Scuri 
<antonio.sc...@gmail.com> a écrit :  
 
   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
  
------------------------------------------------------------------------------
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