LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

image as a background for XY graph

Is there a way to have an image imported as backgroud for an XY graph? I
want to plot the tragectory of something moving on that image and update it
in real time.

Thanks,
Ioan Tudosa
0 Kudos
Message 1 of 5
(3,336 Views)
jus some clue for you...

Regards,
ian.f.k
labview@ianfung.net
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 2 of 5
(3,336 Views)
Here's another example. Basically you need to make the graph area transparent and overlay it on the image media (intensity plot, picture control, etc.)
0 Kudos
Message 3 of 5
(3,336 Views)
> Is there a way to have an image imported as backgroud for an XY graph? I
> want to plot the tragectory of something moving on that image and update it
> in real time.
>

You can do this, but the most direct approach doesn't work due to
optimizations in the graph. The direct approach would be to take the
graph into the Customize mode and replace the normally black rectangle
with your image. The problem is that the graph cheats a bit and will
erase the plot using the background color of the plot area rectangle,
meaning that it will still erase over your picture with a rectangle.

The solution is to make the plot area transparent and place the image
behind the plot area. You might even want to place the picture behind
the graph and make the graph
frame transparent too. If this placement
is done inside the control editor, the image is automatically a part of
the graph control. If done on a regular panel, you might want to group
the graph and picture together.

Greg McKaskle
Message 4 of 5
(3,336 Views)
Thank you, it works.

Ioan Tudosa

"Greg McKaskle" wrote in message
news:3EB09E06.4020502@austin.rr.com...
> > Is there a way to have an image imported as backgroud for an XY graph? I
> > want to plot the tragectory of something moving on that image and update
it
> > in real time.
> >
>
> You can do this, but the most direct approach doesn't work due to
> optimizations in the graph. The direct approach would be to take the
> graph into the Customize mode and replace the normally black rectangle
> with your image. The problem is that the graph cheats a bit and will
> erase the plot using the background color of the plot area rectangle,
> meaning that it will still erase over your picture with a rectangle.
>
> The solution is to
make the plot area transparent and place the image
> behind the plot area. You might even want to place the picture behind
> the graph and make the graph frame transparent too. If this placement
> is done inside the control editor, the image is automatically a part of
> the graph control. If done on a regular panel, you might want to group
> the graph and picture together.
>
> Greg McKaskle
>
0 Kudos
Message 5 of 5
(3,336 Views)