LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Autoscaling a graph with an image

I am using a BMP image as a background for my graph (Plot Images: Middle Property).  I want the user to be able to select any BMP file to use as the background and have the graph automatically resize to the size of the image.  Is this possible?  Currently I can select any BMP as the background, but I have to manually fit the graph to the image.  I am using LabVIEW 8.0.
 
Thanks!
 
LMEE
0 Kudos
Message 1 of 4
(2,898 Views)
You can write the bitmap's size to the graph's PlotAreaSize property node.
See the attached .bmp which displays an XY graph with the example source code embedded into it.
0 Kudos
Message 2 of 4
(2,880 Views)
ahlers01,
 
Thanks for the suggestion.  It looks like it should do what I need.  I'm sure it's really easy, however, I can't for the life of me figure out how to make that "Rectangle.Left...Top" Property Node.  Could you please instruct me on how to do that.
 
Thanks!
 
LMEE
0 Kudos
Message 3 of 4
(2,856 Views)
That's because it's not a property node Smiley Wink

He's just unbundling the cluster output from the BMP vi.  The rectangle.left comes from the fact that there is a cluster within that cluster called rectangle, which has the items left, right, etc.

The same way many text-based languages 'dereference' things with a period.
0 Kudos
Message 4 of 4
(2,847 Views)