02-17-2009 09:36 AM
hi
i want to snap the grid in xy graph
i am plotting graph using mouse down event
now i want to snap grid on mouse down(means if i click any where the point will be entered on nearest grid)
regards
mazhar
Solved! Go to Solution.
02-17-2009 09:49 AM
02-17-2009 10:02 AM
thanx man
give me example vi.
02-17-2009 10:08 AM
Gee, and you ask so nicely, too.
Why don't you try it yourself first? Though I see you've asked this question before.
02-18-2009 03:50 AM - edited 02-18-2009 03:59 AM
thanx smercurio
may be i have not describe my problem clearly.
let me explain first the link of my post you reffered the main problems of that post are two constant because when i change size of my graph i loose alignment of the cursor and entered position. after some time and debuging i fix that and make it generic(mean if some one change graph size the alignment will not take effect) see the property which replace that constant.
02-18-2009 04:47 AM
now in this post i want to set my coordinate(mouse down value) to the narest grid on xy graph
xy graph has multiple plots in my case(data type of graph is array of clusters containing two arrays x array and y array)
it seems that your reply is correct but can you eloborate more and you also talked about some "math" plz tell me more because that was insufficient for me
thats why i have asked about example vi
thanx in advance
regards
mazhar
02-18-2009 06:01 AM - edited 02-18-2009 06:04 AM
really smart answere thanx semercurio_fc
similarly for Y point.
after short practice i got the "math" and fix my problem.
i think you are "Jin" .
regards
mazhar
02-18-2009 09:39 AM
02-18-2009 09:51 AM
02-18-2009 10:16 AM