Graph Annotation Fonts

I have several annotations that I am adding to a graph.  I would like to align their left side.  Annotation text is center justified.  Is there a way to set the justification?  If not, I can calculate the number of characters and pad the back end with spaces to bump the left side out.  But so far, I haven't gotten this to work either because the font is not a fixed width font.  What font setting do the annotations use?  In other words, I am willing to change the fonts of other things in order to also change the font of the graph annotation, but I kind of need to know which other font to change.
Thanks,
Bob Young
Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
DISTek Integration, Inc. - NI Alliance Member
mailto:[email protected]
Solved!
Go to Solution.

Here is the VI that I created to do padding.  It should make the separator be in the middle of the name (where the position is).
Message Edited by Bob Y. on 03-11-2009 10:45 AM
Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
DISTek Integration, Inc. - NI Alliance Member
mailto:[email protected]
Attachments:
Align Annotation Image.GIF ‏25 KB
Align Annotations.vi ‏13 KB

Similar Messages

  • Change Font and Size of Graph Annotations

    Just learned a cool little trick from Christina Rogers about how to change the font and size of a graph annotation after I left a comment on her blog (if you are unsure how to create a graph annotation, check LabVIEW Help).
    With the Cursor Legend selected, use the Font Dropdown on the toolbar to select the font you want for the annotation. Apparently, annotation and cursor text on the graph inherit the font of the Cursor Legend. If you do not like how the Cursor Legend looks after you have changed the font, you can make it invisible again (I have never shown the cursor legend in final UI products... and I have never used "Hobo Std" in final UI products...).
    a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"] {color: black;} a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"]:after {content: '';} .jrd-sig {height: 80px; overflow: visible;} .jrd-sig-deploy {float:left; opacity:0.2;} .jrd-sig-img {float:right; opacity:0.2;} .jrd-sig-img:hover {opacity:0.8;} .jrd-sig-deploy:hover {opacity:0.8;}

    Here are two Ideas you may be interested in if you're looking at this thread:
    http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Customized-Fonts-for-Graph-Annotation/idi-p/1073784#M4...
    http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Add-Line-Width-and-Line-Style-to-Cursor-List-Property/... 
    a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"] {color: black;} a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"]:after {content: '';} .jrd-sig {height: 80px; overflow: visible;} .jrd-sig-deploy {float:left; opacity:0.2;} .jrd-sig-img {float:right; opacity:0.2;} .jrd-sig-img:hover {opacity:0.8;} .jrd-sig-deploy:hover {opacity:0.8;}

  • How can I change annotation font and/or size?

    I would like to change the font of the graph annotations. I know how to change other parameters of the annotation list, such as color, type, visibility etc. But there seems to be no option to change the font or at least the font size.
    Thanks!
    Message Edited by Filipp on 01-29-2007 02:33 PM

    This is a very old thread, but in case you stumble across this thread wondering how to change annotation or cursor fonts, it is possible.
    a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"] {color: black;} a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"]:after {content: '';} .jrd-sig {height: 80px; overflow: visible;} .jrd-sig-deploy {float:left; opacity:0.2;} .jrd-sig-img {float:right; opacity:0.2;} .jrd-sig-img:hover {opacity:0.8;} .jrd-sig-deploy:hover {opacity:0.8;}

  • Changing Default Annotations Font in Preview

    Is there a way to change the default annotations font in the preview app for Mountain Lion?  I'm using the annotations feature to take notes on class assignments, however, I don't like the default "noteworthy" font.  I've tried to change it by selecting Tools > Show fonts.  However, when I highlight the annotations I've taken, then try to select a different font, it only closes my annotations note without changing the font. 
    Along the same lines, is it possible to have rich text formatting while using preview's annotations feature?
    Thanks in advance,
    AH

    Hello Experts,
    Pleasure to meet you all through this forum. This is my first reply to a question.
    Mr. Chuan Lee, try the following and let me know if it works to your issue.
    1. Choose the document that you would print and choose the PLD icon.
    2.Click the field on the Print Layout Design on the left and then check the Font and Size in the Format Tab of the Properties window on to your right below field Index window.
    3. If it is differing from what you are expecting, change and font and size and save the changes.
    4. Check the box " Block Overall Font Change" below the Font&Size property fields.
    5. Save your preferences.
    I think it should work.
    Experts correct me if i am wrong. Appreciate me if I am right.
    All the best Chuan lee.
    Phani kumar.Pilla

  • Graph Annotations - Major Bug !!!!!

    I am using annotations on a NiGraph control(2D, single plot chart). I update the X and Y coordinates of specific annotations using m_Graph.Annotations.Item(item).Caption.SetCoordinates(... , ...)
    this is done around 3 times per second. Each call to SetCordinates(...,...) causes a memory leak!!! Over a period of time my application uses up all system memory. I have validated this bug by running the National Instruments Annotations example and pressing the 'Generate Waveform' button whilst monitoring the memory usage using NT's Task Manager. Your example also leaks memory each time the annotations are repositioned !!!. Each time my graph is scaled X or Y (I use a slide control for this purpose) I reposition all annotations so they
    fit nicely in the view port of the graph. This operation generates many calls to the m_Graph.Annotations.Item(item).Caption....etc) and subsequently leaks memory at a vast rate. Graph annotation are the cornerstone of my application and I am very concearned that due to this bug my application is unusable.
    I would appreciate any help on this matter.
    Shaun

    I must disagree with your answer. I feel that the discussion forum the ideal place to warn engineers around the world of the problems with your software. This posting could save developers such as myself from developing a, at present, useless (and expensive) application. I did indeed request support and reported this bug to National Instruments (UK). Unfortunately they had no knowledge of it and could not help me any further but thanked me for pointing it out and advised me to “Watch the website for future Measurement Studio Updates”. As the Product Support Engineer for Measurement Studio and LabWindows/CVI I feel you answer was far from helpful, only pointing out this bug has been verified. Information such as possible work arounds, new
    version release dates or patches would have been useful. Perhaps even helpfully passing my details to one of your Technical Engineers so we might arrive at a solution. I would have rated the answer 0.5 stars but there was no icon to click.

  • Re-creatin​g graph annotation​s in diadem?

    Hi,
    I am currently going through the demo version of diadem, and am impressed with it's reporting capabilities.  I have an application where I am automatically placing graph annotations during my test, then when I save the .tdms, I store the annotation information (index, name etc) in groups named "annotation01", "annotation02" etc, to the tdms file.  Currently, I have a separate labview utility in which I load the tdms file, and place the annotations back in the graph, so I can post process the data and see the annotations.  It seems that if diadem can display text over graphs when viewing the data, I may be able to make a script to place these annotations using diadem.  Is diadem capable of this?
    Thanks
    David J.

    Hi David,
    Sorry, I got lost in all those "AnnotationArrayElement" Groups.  You're right, your first Group has two data channels, and I can also graph those in DIAdem.  But all your label information is stuck in Group properties, and this is the information I was referring to that should be written to Channels with the "TDMS Write.vi".  I've written a DIAdem VBScript to reorganize your TDMS file into the structure I think is ideal for your data and am attaching a representative TDM/TDX file as well as a picture of what the labeling could look like.
    One problem I ran into when doing this was that I didn't find the label texts.  Your first attached image above showed text event labels on the LabVIEW graph, but I don't see these texts anywhere in the TDMS file.  So what I did instead was to pretend that the "Index1" property was the text label to display.  Also, you have 2 separate XY coordinates in each "AnnotationArrayElement" Group, I just randomly picked the "Position" properties instead of the "Label_Offset" properties.  Why are there 2 sets of XY coordinates as well as the value index (triple redundancy?), and how should that information be translated into the desired XY coordinate to display the event marker or label?
    Finally, you have several Groups that just contain set up properties-- I'd strongly recommend you fold all those properties into the same data Group that has your measured data arrays-- that will make for much better DataFinder querying down the road.  I also found a "Sample_Rate_Hz" property in one of the Groups, so I used that to turn your "Battery Current" and "Phone Voltage" channels into waveform channels in DIAdem, and I added unit assignments of "mA" and "V" respectively.  But if they were waveform channels in LabVIEW you should have just wired the waveform up to the TDMS Write.vi and they would have loaded into DIAdem as waveforms automatically.  As a result, I scaled the "PostionX" property from X value to Time value.
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments
    Attachments:
    david_jenkinson New.zip ‏2676 KB
    Event Labels.pdf ‏69 KB

  • How can I change annotation font in Preview?

    Hi,
    To view PDF text files, I am using Preview, which seems to me far better than Adobe Pro.
    The only problem I have with Preview is the font size in "note" option in annotation function.
    It is just too small for me. Is there any way that I can change the font size in "note"?
    I know I can change font size in "text" option, but I almost gave up how to do in 'note' after searching the web for months.
    Help me plzzzzz...

    This is a very old thread, but in case you stumble across this thread wondering how to change annotation or cursor fonts, it is possible.
    a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"] {color: black;} a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"]:after {content: '';} .jrd-sig {height: 80px; overflow: visible;} .jrd-sig-deploy {float:left; opacity:0.2;} .jrd-sig-img {float:right; opacity:0.2;} .jrd-sig-img:hover {opacity:0.8;} .jrd-sig-deploy:hover {opacity:0.8;}

  • How do I change the annotation font in Preview?

    So I'm not fond of the default font used in the annotation sticky in the new Preview.app.  However, the Font menu seems to be disconnected from the sticky - in that if I select the Font inspector, it unselects the sticky so the changes do not apply to it.
    How can I change this?  And while I'm at it, any way to get the timestamping feature turned back on for the sticky note? It helps to see when I wrote the sticky...  Thanks.

    Delete the font, wont change size but the tpye.  https://discussions.apple.com/message/20064773#20064773

  • 3D Graph axis font property missing

    I just updated to LV6.1 and now I have a broken VI in my application. One of my displays uses the 3D graph and when formatting data for display, I set the font size of the graph axes. This worked in 6.0.2 but in 6.1 apparently the font refnum no longer has any properties. See attached file for an example of what I used to do. Thanks
    Attachments:
    FontProperty.vi ‏22 KB

    spacewire,
    Thank you for reporting this bug, but it is already known to our R&D department and the fix will be released with the next set of the ActiveX components (the error is not in LabVIEW, but in the ActiveX controls themselves which affects not only LabVIEW, but VB, LabWindows/CVI, and others as well). There is no set date for this product at this time.
    For a workaround, I would suggest removing thw cw*.ocx files from C:\Windows\system or C:\WinNT\System32. Then I would run the repair utility for LabVIEW 6.0.2 (in Add/Remove Programs) and tell it to only repair if the file is missing. This will add the controls that shipped with LabVIEW 6.0.2 back on to the system and solve this error.
    Randy Hoskin
    Applications Engineer
    National Instruments
    http://www.
    ni.com/ask

  • Graph annotation bug ??

    Hi,
    I have encounter the annotation error on graph again.  And this time, I have upgraded my LabVIEW to version 8.6.
    Some of the points is perfect, but some of the points, pointing to the correct x-coordinate but the label seem gone far away. 
    Here I attached the screenshot, and the VI.
    Thanks for your time. Any idea or comment please leave here. Thanks again. 
    Message Edited by engwei on 01-21-2009 02:42 AM
    Attachments:
    graphCrazy.vi ‏43 KB
    graphcrazy.JPG ‏83 KB

    Yes, expression evaluation can cause these behaviors and the script uses them extensively. Nothing wrong in that regard. The rest is unclear because you made your screenshots useless by clipping out the important info like the property names. Also full system info,exact graph editor options and all that will be required.
    Mylenium

  • Xy graph axis number font sizes.

    sorry see my earlier xy graph axis font post for the details but what I really want to do is change the size of the font.
    thanks.

    Property node properties-> X (or Y) Scale -> Marker -> Font -> FontSize

  • Chart (Graph) Font Name - Formatting Formula

    Hi,
    I am displaying chart in report, and I have requirement to select (format) font name with some condition (e.g.. As per database language, if database is english - Font Name: "Times New Roman", if database version is Spanish - Font Name: "Arial" etc.)
    Currently I am trying to add "Font Name" formula for x-axis in Graph by "Formula Fields -> Formatting Formulas -> Report Footer -> Report Footer A -> Graph2" and Right click "New Font Formula -> Font Name -> Use Editor", but nothing happens. I tired and noticed It works for "Background Color" .
    Please let me know, how can I add Font Name formula for Graph.
    Note: I am working with Crystal XI
    Edited by: loveuhameshah on May 31, 2011 8:18 PM

    Vamsee,
    Thanks for your reply.
    You are right, I also want to format x-axis field values but how can I reach (access) to "x-axis" field formatting formula for Graph. In Formula Workshop I can find hierarchy upto Graph level only, I cannot find any node such as X-axis, Y-axis under it.
    [Image|http://i837.photobucket.com/albums/zz297/essenceofarts/Graph-format-font.jpg]
    Looking forward to any suggestion or help.
    Thanks,

  • Display sample values on a graph

    Hallo!
    I`ve got a problem with a graph, the thing is I really need to have displayed Y values of the samples on a graph. There is a possibility to make a comments (as on a pic attached) but I need the vals instead. Any ideas? Thanks for the trouble,
    greetings!
    Solved!
    Go to Solution.
    Attachments:
    bild.jpg ‏37 KB

    Dear Aleph.ka,
    here is an example of what you might need. For further documentation please refer to the description of the applied property node (Annotation List):
    http://zone.ni.com/reference/en-XX/help/371361H-01/lvprop/waveformgraph_annot_list/
    I hope this helps.
    Regards,
    Adam Cseh
    Applications/Systems Engineer
    National Instruments
    Attachments:
    graph annotation.png ‏32 KB

  • Cursor and annotation default color

    Hi,
    I am looking for a way to change default color for graph annotations and cursors. The default color is a bright yellow. I am using white background graphs and they are almost invisible. Since I did dot find a way to change the default color, I looked for a way to detect that a cursor or annotation was placed on the graph but there is no such events. Right now, the only way I found to solve the problem is to read periodically the annotation and cursor lists, and change the colors of the found cursors to black. However, this solution consumes precious CPU tile on my 500 MHz Geode.
    If there was a way to simply  change the default color, that would be the best solution.
    Anybody has an idea about how to do it?
    Al Capote
    Al Capote
    Certified LabVIEW Architect
    Solved!
    Go to Solution.

    Hi Al,
    I do something similar in one of my
    applications, where a user can add cursors. I hijack the add cursor
    event and set the cursor parameters before I add the cursor to the
    cursor list.
    This isn't the same as
    setting the default colour and I'm not sure how much CPU time it would
    save but it may be worth a go.  Make the cursor definition cluster a
    typedef.
    I know the build array may be a problem, but this is just a quick fix 
     Dave
    Message Edited by DavidU on 10-06-2008 12:29 PM
    Attachments:
    CursorColour_BD.png ‏7 KB

  • Chart annotation

    After some research, I've found a lot of posts asking about annotating on a chart and the general response is "you can't, use a graph".
    So here's my situation that I would greatly appreciate some guidance on.  I have an accelerometer that outputs 6 channels.  Four are the x, y, z, and total axes.  The other two channels are values that correspond to motion.  LabView's chart display has proven to be the exact visual that we want.  See the attached image of the chart set up that is precisely the way we want to see the data as it comes off the accelerometer.  The four accels (x, y, z, and total) are grouped together in the top plot while the two motion channels each have their own plot (this was done using a cluster and property node).  All of the plots are attached to the same scroll bar at the bottom.  The ability to scroll all the plots simultaneously on the same scroll bar is key here.
    The problem is I need to be able to mark events on the chart.  The accelerometer will run for a long time and I would like to be able to mark on the chart when we started driving on a bumpy road and when it changed to a smooth paved road.  Stuff like that.  Ideally, these annotations would "stick" to a point on the chart.  So it would scroll with the rest of the data.
    I'm assuming that my approach thus far has been wrong.  I would greatly appreciate suggestions of how to approach this, since a chart does not seem to be the answer.  Although I would very much like to retain those qualities of a chart that I mentioned above.  If it matters to anyone, the data is coming in via a serial stream that I parse and turn into 6 individual values that are then fed into the chart.
    Thank you!
    Attachments:
    accel_chart.png ‏52 KB

    Dear Dan,
    It seems like you have two options -
    1. Continue using a chart and create a bar notification system with legend (able to maintain current chart formatting, but may be more difficult to read). - see Altenbach's post (thanks!)
    2. Modify a graph so that it appears like a chart and use the graph annotation function. - see this Dveloper Zone Article. It refers to modifying an XY Graph so that it appears to be an XY Chart, but could be modified for a graph that would have the same formatting as in your screen shot.
    dan.laks wrote:
    I'm assuming that my approach thus far has been wrong.  I would greatly appreciate suggestions of how to approach this, since a chart does not seem to be the answer.  Although I would very much like to retain those qualities of a chart that I mentioned above.  If it matters to anyone, the data is coming in via a serial stream that I parse and turn into 6 individual values that are then fed into the chart.
    Based on what you described, it sounds like option 2 might be worth pursuing, if you are willing to do the custom coding required to make it work.
    Joey S.
    Software Product Manager
    National Instruments

Maybe you are looking for