LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Transperant XY Graph with picure behind it?!?

Hi, Is it possible to make an XY graph with a picture fo background? I need
it because of an eyemovement thing. Patients must look at a picture and we
want to follow there eyemovements. So i need to see this picture trough my
XY graph. Does anyone knows how to do this?

Best regards,
Thijs
0 Kudos
Message 1 of 9
(3,353 Views)
Hi Thijs!

Yes it's possible, if you e.g. drag and drop a bitmap picture from the explorer to your VI front panel and places an XY graph on top of it (make sure that the XY graph is "move to front" Ctrl+Shift+K). Select the Set color tool from the tools palette and right click somewhere inside the grid and push "b" (Background) and select the transparent color (looks like a T), then right click somewhere on the XY graph outeside the grid and select the transparent color again. Done!
I hope this helps
Thomas
0 Kudos
Message 2 of 9
(3,353 Views)
Hi Thijs,

the answer is already given by Thomas Endevo;
but his example is not Easter - related like my
attached file...............

regards
wha
0 Kudos
Message 3 of 9
(3,353 Views)
Thijs;

You can customize the XY graph indicator. Select the indicator and go to Edit -> Edit control (or Customize control.)

Change to "Customize Mode", go to Edit and import a picture from a file, then right-click somewhere in gray area of the graph and select "Import Picture". Change the graph area color to transparent. Finally, change to Edit mode and made the graph area as large as the XY graph indicator. Unfortunatelly, you won't be able to see the axis markers. The good thing is that the image will resize if you resize the chart.

Look at the examples "XY With Abstract Picture.ctl" and "image test.vi" attached.

Another alternative is to use the picture control. You can create a Cartesian chart using the Draw Cartesian Axes.vi located in:


abVIEW dir> \vi.lib\picture\cartesn.llb

Check the Advance examples in the help file. This option, however, can be difficult.

Look at the example attached "picture test.vi".

Regards;
Enrique
www.vartortech.com
0 Kudos
Message 4 of 9
(3,353 Views)
> Hi, Is it possible to make an XY graph with a picture fo background? I need
> it because of an eyemovement thing. Patients must look at a picture and we
> want to follow there eyemovements. So i need to see this picture trough my
> XY graph. Does anyone knows how to do this?
>


This is really pretty easy. If you select the paint tool, you can
right-click on the black plotting area of the graph and color it
transparent. Then you can click on the gray frame that goes around the
scales and color it as well. You can now see through the entire graph,
but the scales and plots will be drawn and clipped as normal. Place the
graph over a picture and you are there.

To make things easier for editing, you may want to group the two items
together, or even bett
er, you can take the graph into the control editor
and import the image as either the frame image or as a extra. This part
is obviously optional.

Greg McKaskle
0 Kudos
Message 5 of 9
(3,353 Views)
Hi Thijs:

There are a group of controls called PICTURE CTL's which allow you to loop (layer) as many graphics as you want. You might want to look at the POLAR plot to see how this is done...first the grid is layered, and then the PICTURE is looped through another CTL to plot the actual data. It's a really cool function, once you get the hang of it. Just be sure to set all your BOUNDS to the same number, or you can get some really strange results....such as diagonal skewing, which looks like a TV set with a bad horizontal hold!

Good luck!

Eric
Eric P. Nichols
P.O. Box 56235
North Pole, AK 99705
0 Kudos
Message 6 of 9
(3,353 Views)
Can i ask as i'm confused, can you get the image to 'go behind' the graph, as i am trying and it'll only sit ontop it, so blocking the graph.
Does that mean i have to use the other method?
0 Kudos
Message 7 of 9
(2,822 Views)
...sorry should have read post 2 more clearly, just use ctrl+shift+k and that how to give upper priority
chears
0 Kudos
Message 8 of 9
(2,820 Views)
This original post is very old and has been reopened?  Lots have changed, you can now use the plotimages.back, front and middle to draw images (using picture functions) right in the plot area.  Much simplier than trying to keep a picture control aligned with your plot area.
 
Paul 
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 9 of 9
(2,809 Views)