LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how do you change the annotation color

Goodmorning,
I have tried everything I know and still cannot change the annotation color.  My current color is yellow on a white background and I cannot read it.  I thought the annotatoin color used to be black, but I cannot recall. Thanks in advance.
 
Chris Co
0 Kudos
Message 1 of 12
(6,587 Views)

If you are talking about a graph annotation in 8.20 all you have to do is right click on the annotation and select attributes and then color.

if you are talking about something else please be more specific.




Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 2 of 12
(6,572 Views)

Chris,

By "annotation" do you mean "Free Text Labels"?

If so, then...

  • The text (font) colour etc is changed by selecting the text and using the "text settings" control on the diagram window's toolbar.
  • The label's background and border are coloured using the paint brush tool/colour selector from the bottom of the tools palette.

The current default is black text on a pale yellow backround with a black border, some LV versions ago the background was white.

Mark.

0 Kudos
Message 3 of 12
(6,566 Views)

Sorry, I should have been more specific.  I'm talking about creating an annotation in an XY graph during runtime in LV 8.20.  The properties page only lets you select cursor and plot colors- no annotation colors.  The options for labVIEW environment is no help either. 

Joe,

You are describing cursors.  I could use them, but they do not have the nifty arrow.

 

Chris Co

0 Kudos
Message 4 of 12
(6,560 Views)
No I am talking about annotations and if you look at the LV help it clearly explains how to do this even during runtime.
 
Excerp from the LV help.
 

Adding Annotations to Graphs

Use an annotation on a graph to highlight data points on the plot area. Complete the following steps to add an annotation to a graph.

  1. Right-click the graph and select Data Operations»Create Annotation from the shortcut menu to display the Create Annotation dialog box. Use the Create Annotation dialog box to specify the annotation name and how the annotation snaps to plots in the plot area.
  2. Right-click the annotation and use the following options from the shortcut menu to customize the annotation:
    • Lock Style—Sets the way in which the annotation snaps to plots and can be moved in the plot area. Lock Style includes the following options:
      • Snap to All PlotsAllows you to move the annotation to the nearest data point along any plot in the plot area.
      • Snap to One PlotAllows you to move the annotation only along the specified plot.
      • FreeAllows you to move the annotation anywhere in the plot area. LabVIEW does not snap the annotation to any plots in the plot area.
    • Attributes—Customize the appearance and behavior of each annotation. Attributes includes the following options:
      • Color—Displays the color picker so you can select the color of the annotation, including its point, arrow, and name.
      • Annotation Style—Provides various styles for the annotation. LabVIEW draws the selected style, in combination with the Point Style option, at the focal point of the annotation.
      • Point Style—Provides various point styles for the annotation. LabVIEW draws the selected style, in combination with the Cursor Style option, at the focal point of the annotation.
      • Line Style—Provides various solid and dotted line styles for the annotation.
      • Line Width—Provides various line widths for the annotation.
      • Show Name—Displays the annotation name in the plot area.
      • Allow Drag—Allows you to drag the annotation.
      • Lock Name—Positions the annotation name absolutely so that when you move the annotation or scroll the plot area, the annotation name does not move in the plot area.
      • Show Arrow—Displays the arrow that points from the annotation name to the annotated data point.
    • X Scale—Allows you to choose the x-scale that maps a pixel location to a data value for the annotation. This option applies only to free annotations.
    • Y Scale—Allows you to choose the y-scale that maps a pixel location to a data value for the annotation. This option applies only to free annotations.
    • Delete Annotation—Deletes the annotation from the graph.
Note  Right-click the graph and select Data Operations»Delete All Annotations from the shortcut menu to delete all annotations in the plot area.
  1. Click and drag the crosshairs of the annotation to move the annotation to a different data point in the plot area. Click and drag the annotation name to move it to a different location in the plot area.

Use the Annotation List property to get an array of information about all annotations in the plot area programmatically.

<SCRIPT type=text/javascript> if(typeof(Print_Link)=="function") { javascript&colon;Print_Link(); } </SCRIPT>



Joe.
"NOTHING IS EVER EASY"
Message 5 of 12
(6,552 Views)
If you look at the annotation list, each annotation has a color!


Ton

Message Edited by TonP on 01-05-2007 04:41 PM

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 6 of 12
(6,548 Views)

Joe,

What LabVIEW version are you using, because that attributes menu never comes up when right clicking an annotation.  The described menu does come up when right clicking a cursor.  In fact when right clicking the annotation, the graph menu appears- as though the annotation is transparent or nonexistent in terms of modifying by menus.  There is no way to modify it after creation (except the name with a property node)

 

Chris Co

0 Kudos
Message 7 of 12
(6,535 Views)

TonP,

Thanks for the reply.  It works. If I have to modify the annotation in this one and only manner, I think I will remove the create annotation option from the shortcut menu.  Why would it be any different than modifying a cursor. Pain in the $%#!!

Thanks for the answer TonP!!

Chris Co

0 Kudos
Message 8 of 12
(6,526 Views)
it is very picky as to where you right click. I have found that you can right click and have it show up when you move the cursor until it makes the symbol for the annotation ie the  point style and then right click and it will show the list as stated.

Message Edited by Jhoskins on 01-05-2007 11:09 AM




Joe.
"NOTHING IS EVER EASY"
Message 9 of 12
(6,524 Views)

Nice work Joe- u da man!!!

Thanks a million for the answer to this simple, yet frustrating problem.

Stars for everyone

Chris Co

 

0 Kudos
Message 10 of 12
(6,514 Views)