11-23-2012 06:40 AM
Hey,
I'd like add a custom image to a cursor in a polar plot. I can't find any information of how to do that. Maybe it's not possible?
Any ideas of a workaround? Can I control another object and place it on top of the plot?
Best regards
Fred
11-23-2012 07:37 AM
Hello,
What did you mean for a cursor ?
As I know, there is no possibilities for item 2. But for item 1, you have the posibility to change the cursor with a VI scripting property, but only LV cursor (and a few others) like in Tools palette.
Maybe you must add superpose an other image (custom cursor) to your polar plot.
I hope it helps a bit..
Fred
11-23-2012 07:42 AM
Ah, sorry!
Cursor X-Y in a graph is what I mean. I already know that the cursor of the mouse can be changed, that's why I wonder if it can be done for the graph cursors as well.
Thanks for the post
11-25-2012 05:53 PM
I think your best bet would be to place your image in a simple BD object (e.g. customise a flat square button). Then you can detect cursor events from your XY graph and use them to update the position property of your customised button.
Personally I would consider placing the button *behind* the XY graph (graph transparent), since otherwise it might obscure your ability to interact with the graph in other ways...
11-26-2012 06:17 AM
Thanks fabric,
I will try that!
01-27-2013 06:43 AM
You could also use the plot images to achieve this.
1. Find out the cursor position relative to the Plot bounds
2. Read the image that you want to plot at the cursor position
3. Change the rectangle of the image so that the Left and Top are the position of the cursor and Right and Bottom are offset to retain the image size. Based on the image size, you can add an extra offset if you want to center align the image with the cursor, or otherwise want to offset the image in any direction.
4. Use the Draw Flattened Pixmap.vi to set the Plot Images.Front (or Back, Middle) to this image.