02-03-2010 11:24 PM
Hi,
I wonder if there is anyway to put a background to an xygraph that is independant of the plotted data. The goal of my application is to draw a map (background) on which I can plot some POI that I can remove whitout reloading the map/picture.
Thanks,
Olivier
Solved! Go to Solution.
02-03-2010 11:36 PM
yes its possible. Use custom control for doing this.
Procedure
1) create new custom control by File->new->Custom control
2)Place a xy graph on the the conrol
3) click on "Window->Show parts window" to see all the components of the xy graph (a pop up called Control parts is visible now)
4)select the "Plot area" from the "control parts"
5) right click on the selected plot area in the xy graph and select the option "import from file" to select the back ground thhat you wish to see.
6) if the background is not visible (after step 5) then make the graph lines "Transperent" using the color pallete
7) again click on Window->Show parts window
Your custom xy grph is now ready
02-03-2010 11:42 PM
Or. Look into the PlotImages.Back property. You can read a picture using the Read from BMP/JPG/PNG VIs, used Draw Flattened Pixmap.vi to create the picture and wire that to the Property Node.
07-02-2010 05:58 PM
Is there a property node to set the background color of the XY Graphs control.
I want to set the back ground color out side the plot area and use a Pixmap for the inside of the plot area using the PlotImages.Back property node.
But how to programatically set the back ground color inside the XY Graph but not inside the plat area.
Any ideas?
07-02-2010 10:47 PM
kmcdevitt a écrit :
I want to set the back ground color out side the plot area and use a Pixmap for the inside of the plot area using the PlotImages.Back property node.
But how to programatically set the back ground color inside the XY Graph but not inside the plat area.
Any ideas?
Have a look here