LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I show text sentence on XY graph

Hello,,,, anyone knows??? How can I show text sentence on XY graph?

I just know that the only numeric data type can be the input data but my case I have both the number and message to show on the same graph.

Thanks in advance
Mannie

0 Kudos
Message 1 of 10
(4,477 Views)
Can you show us a picture of what you want?
  • If you want some (or each) point labeled, you can use annotations.
  • If you want free text, you can use the "plot images" property. This allows you to use any image command (lines, text, polygons, etc.) on your graph area.
0 Kudos
Message 2 of 10
(4,449 Views)
Hi altenbach,

It should be not good question but I've been trying to attach or put the picture in here. I don't know how to do it.
Please tell me, sorry that I don't know even how to do that.

Best regards and Thank you so much
Mannie


0 Kudos
Message 3 of 10
(4,405 Views)


Mannie wrote:
It should be not good question but I've been trying to attach or put the picture in here. I don't know how to do it.

Below the composition box is the attachment tool. First compose your message, then just click the "browse" button and select the image.
 
Now submit the post.



Message Edited by altenbach on 12-21-2007 12:59 AM
Message 4 of 10
(4,402 Views)
Hi, I've been looking at tool bar. Im a really stupid man, sorry sorry.

First of all, my job is taking the data, Time, Speed, and Messages, on the table(using table control, 2D string array) and when I run these two VIs, Table control and Graph, at the same time. I can input three input value at the same time and then three values are shown on the graph VI. Get me???

Best regards and thanks a lot
Mannie



0 Kudos
Message 5 of 10
(4,395 Views)
You can attach pictures, too.  No need to put it in a PowerPoint presentation.


Man, I wish I had your monitor.




Message Edited by Matthew Kelton on 12-21-2007 03:54 AM
0 Kudos
Message 6 of 10
(4,393 Views)

Hi again, I can now put some messages on the XY graph by using plot image but when I pan and zoom in or out, the graph the messages on the graph cannot move with graph coordinates. Do u know how to stick messages with graph coordinates

Download All
0 Kudos
Message 7 of 10
(4,349 Views)

For this purpose, "annotations" are better than "plot images", so please open your example finder and search for keyword "annotation".

(If you want to stay with plot images, you need to recalculate the positions whenver the scaling changes. this is also not a real problem if you use an event structure).

0 Kudos
Message 8 of 10
(4,326 Views)

Hi altenbach,

Im trying to use annotation as recommend but I don't know why I get stuck with replace array. The output of replace array still has 0 value.

Is there anything Im done wrong???

 

Thanks a lot for ur help

0 Kudos
Message 9 of 10
(4,300 Views)

You start out with an array of zero size. Since replace array subset does not change the size of an array, you stay with zero annotations. If nothing is there, you cannot replace it. 😄

Possible solutions:

(A) Instead of reading the current annotation list (which is zero!), you could initialize the shift register with a diagram constant (right-click...create constant), expand it to the desired number of elements and make them all e.g. with a blank text.

(B) Alternatively, you can manually create the desired number of annotation by right-clicking on the graph and select "data operations...create annotations". Now you start of with an array of the correct size if you read the annotation list with a property node and you can replace them programmatically with new annotations as desired.

(C) You can also initialize the shift register with an empty array, then use built array to add annotations.

 

0 Kudos
Message 10 of 10
(4,281 Views)