09-03-2007 04:57 PM
09-04-2007 11:16 AM - edited 01-09-2012 05:42 PM
You should make sure that you have the correct coordinates. Here's a quick example to draw a line.
Modyfy as needed. There are a few thing that could be improved. 🙂
EDIT: there was a bug in the original VI (see below) and I have corrected the error in a new attachment (LabVIEW 8.2)
09-05-2007 04:21 AM
Hi,
Thank you altenbach! This is exactly what I was looking for.
Could you explain to me why you add [-8,8] to the [top, left] graph coordinates?
Thanks again,
Danielle
07-22-2009 09:40 AM
Could someone upload this VI for 8.0 ?
Thanks in advance!
07-23-2009 01:49 PM - last edited on 01-09-2012 06:00 PM by altenbach
Hi Christophe,
Here you go. Let me know if this works for you in 8.0.
Regards,
Stephen S.
01-09-2012 05:26 PM - edited 01-09-2012 05:30 PM
dsavir wrote:Could you explain to me why you add [-8,8] to the [top, left] graph coordinates?
.... because my program has a bug. 😉
You need to reverse the two elements in the cluster when reading the plot bounds: "left" first, "top" below it.
Here's how it should look like:
10-23-2023 05:33 PM
I try to use the code as a part of a program.
The drawing must only be active after a button is ON. But, the program freezes as soon as the cursor is over a graph when the button is OFF.
I am attaching the code. I don't know what causes the problem. Do you?
10-24-2023 12:32 AM
The problem is with the Unresolved Event of Mouse Move. I do not know how to bypass the issue.
Therefore, I decided to create a new program without an Event Structure. I have attached the file.
04-16-2024 08:19 AM
Hi,
Thank you for these solutions.
I was wondering if it was also possible to draw a line, a rectangle or a circle on a graph but with transparency, so that the background graph is still visible ?
I know it may not be straightforward, but have no idea how to do it...
Thank you in advance !
Sam
04-16-2024 08:59 AM
Hi Sam,
@Samdub19 wrote:
I was wondering if it was also possible to draw a line, a rectangle or a circle on a graph but with transparency, so that the background graph is still visible ?
Which kind of graph are you talking about?
What is a "background graph"?
In general waveform graphs support to use "plot images" (back, middle, front) so you can draw any kind of 2DPicture and "embed" it into your graph…
(Intensity graph supports just a "front" plot image.)