LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to insert a picture into a XY Graph

Solved!
Go to solution
Hi all, I'm trying to insert a picture into a certain position within a XY Graph. When I use the plot image properties it always set the position at the top left of the XY Graph indicator, but I can't solve to put it in the centre of the XY graph. I attached an example tried (you can use any little picture you have). Thanks in advance.
Message 1 of 14
(11,476 Views)
Sorry, I don´t know I can´t attach the .vi but the idea is tu use these explanations focused on center the picture into a XY graph: http://zone.ni.com/reference/en-XX/help/371361G-01/lvhowto/mapping_plot_area_images/ Any idea about this? thanks
0 Kudos
Message 2 of 14
(11,470 Views)

Hello londonew

 

I sorry but all images you attach into a graph always appear in the top left corner. The only way to plot the image in a different point is to create an image with a transparent frame or similar. Be careful because depending on what plot option you select it has a different behavior (check the attached example)

0 Kudos
Message 3 of 14
(11,451 Views)
Hello sendia, the solution doesn't satisfy me too much. I don't understand why doesn't exist in LabVIEW any simple solution for this, but thanks you for your reply. I appreciate your help.
0 Kudos
Message 4 of 14
(11,427 Views)

What type of picture are you trying to add?  A bitmap image (jpg,png..), or something created with the drawing VIs?  There can be some relatively simple workarounds depending on the picture type.

0 Kudos
Message 5 of 14
(11,424 Views)
Hello, I am using a simple *.jpg file but not necessarily have to be in this format. Please, let me know if there is another appropriate format.
0 Kudos
Message 6 of 14
(11,418 Views)

This should work:

 

CenterPictInGraph.PNG

 

CenterPictinXYGraph.png

Message 7 of 14
(11,413 Views)
Hello Darin.K, it seems just I'm looking for. But, which are the VIs you have between Read JPEG File and Drawn Flattened bitmap. I've never seen before, I think I haven't this structure in LV8.2, ¿may I have this example? thanks
0 Kudos
Message 8 of 14
(11,393 Views)

The structure (InPlace Element) does not exist in LabVIEW 8.2.  It can be replaced by an unbundle followed by a bundle.  I have attached the equivalent LV 8.2 VI.

 

P.S.  Use of VIs in vi.lib which are not on the palette (two in this example) can lead to programs which get broken in later versions of LabVIEW when the VIs change.  Only VIs on the palettes are guaranteed to be forward compatible.

0 Kudos
Message 9 of 14
(11,380 Views)
Solution
Accepted by topic author londonew
Thank you very much, It works fine!
0 Kudos
Message 10 of 14
(11,377 Views)