Custom Icon / Marker / Point-style on Graph

Is there a way I can use a custom icon (or point-style) on a graph or chart?  I want to place a series of points on an XY-Graph but I don't want to use any of the built-in point styles, I want to use a .gif file I have.  I have toyed with the idea of converting an XY position to a screen position (in pixels) and hiding / showing an icon already on the front panel, and moving it.  This seemed like a bit of a hack to me, I'm hoping there's a better way.
Thanks

ptilghma -
I know you can modify programmaticaly:
Graph palette
Plot legend (waveform chart, waveform graph, xy graph, and digital waveform graph only)
Scrollbar (charts only)
Blinking plot
Label scroll position
Active X/Y Scale
Using property nodes  but I don't think that it modifies the icon.
I think mapping out the screen and applying some sort of logic to replace the points is your only way out.
Here is a link describing the use of property nodes in graphs
http://digital.ni.com/public.nsf/websearch/A0525AF9D64408F186256BFB005970EB?OpenDocument
Best Regards
Bruno Noronha
Bruno Noronha
Certified LabVIEW Associate Developer
Using LabVIEW 8.6

Similar Messages

  • How to mark points on a graph

    Hi All,
    I want to write a program which plots data on a surface graph then
    allows the user to click on the graph and "mark" points on the plot. The
    program should change the color of the "marked" points on the graph.
    Based on the sample code provided by "Ben" here
    (http://forums.ni.com/ni/board/message?board.id=170&view=by_date_ascending&message.id=144155#M144155)...
    I wrote the attached code which uses "event structure" and cursors to do
    the job. I used cursor to read the X,Y,Z position of the clicked point on
    the plot and store them in arrays. These arrays then were feed into a
    new plot added to the graph using CWPlots3D.Add() method. However, my
    code does not draw the second plot (which would show marked points in
    green) nor it does not get the marked points coordination correctly. I
    appreciate your help to correct the code.
    Thank you,
    Attachments:
    change read xyz.vi ‏27 KB

    Hi Trin,
    I have altered your VI a little bit to get the marked points in an array. You will realize that the mouse up event is requested in a parallel loop, that's because this event doesn't get triggered ifyou drag a cursor.
    All you have to do now is to make a graph from the array and create new cursors. But leave Cursor 1 always as the last one and save the past values to new cursors. But maybe you don't need to set a cursor on each marked point.
    Kind regards,
    Kleisi
    Attachments:
    3D_Example.vi ‏39 KB

  • Custom Icon/Marke​r on XY Plot

    Hello,
         I have an XY plot in which shows the intended path and current position of a aircraft.  I have drawn up a picture of what it somewhat looks like and I attached it to this post.  I would like to have a custom icon that will point in the direction the aircraft is flying.  I have the heading, so that data is not a problem, though, I am sure there are other problems that I will run in to.  I've only looked into this a small bit and have come up with quite a few dead ends.  I am now considering going down the ActiveX path, but wanted to get some insight before I dove into that (especially I have not done at ActiveX).  That being said, take a look at my picture, which will better explain what I am looking for.  I show only 4 time quantities, but there will be many more in the final product since it is a real-time application. 
    I have seen this page, http://forums.ni.com/ni/board/message?board.id=170​&message.id=379432&query.id=4622127#M379432, but considering it is over a year old, I wanted to check and see if anything has changed. 
    Thank you and let me know what you guys think.
    Michael
    Message Edited by MegaWatts on 04-12-2010 11:41 AM
    -You can never have too much power...
    Attachments:
    custom_marker.jpg ‏43 KB

    Use a picture control.
    LV has a shipping example of a XY XChart that is based on the Picture.
    THis thread has links to threads with picture related examples.
    I used the picture control to render the vectors showing air speed and direction inside a mine gallery. It worked good for me.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Mark points on 3D graph

    Hi, 
    I need to mark points (by changing the color of the point)on a 3D graph
    which the user would select using mouse clicks. How should I implement
    this? Should I use both cursor and mouse event handler in my VI?
    IS there any similar example code available?
    Any helps would be greatly appreciated
    Cheers,
    Trin

    Start reading at reply #7 in this thread.
    I would use a seperate plot to handle the highlighted points. Just add the new point and redraw that plot as they go.
    The code for that example is all there.
    Have fun,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Custom Cursor point style on XY graph

    Is there is a way you can change the point style of a cursor on an xy graph to somthing custom, possibly an image or somthing else. Basicly Id like to have very many point styles, but more then just whats in LV, Id want some that actually look different.
    Thanks,
    -Mark

    Hi Mark,
    You can use an event structure to detect when the mouse enters or leaves the XY graph. When the mouse enters you can set the cursor using the "Set Cursor" VI and when it leaves you can unset the cursor using the "Unset Busy" VI. You can create a reference to a custom cursor beforehand using the "Create Cursor from file" VI. Unfortunately none of the VIs that I mention here are available with the base package.
    I've attached an example program written in LV7 on Windows. (note: you need a .ani or .cur file for the cursor you wish to use)
    Hope this helps,
    Neil
    Attachments:
    XY_Cursor.vi ‏83 KB

  • Custom cursor point style

    Is there is a way you can change the point style of a cursor on an xy graph to somthing custom, possibly an image or somthing else. Basicly Id like to have very many point styles, but more then just whats in LV, Id want some that actually look different.
    Thanks,
    -Mark

    me too i want this option.can i make the cursor as a small car or small dog......?
    can any body help me?

  • LabVIEW XY graph point style bug

    I have a XY graph showing two or more signals
    I have seleced a circular point for the data poins of the first signal.
    When I try and select te same point for the second second, it shows up as at diamond with an open space in the middle.
    Bug?
    LV 2011 
    Solved!
    Go to Solution.

    This is the problem:
    When access the plot legend and I choose THE SAME point style (First row, third column) for both graphs, why do they then appear differently in both the legends and in the graphs afterwords, just as shown in the picture ???
    Simple as that.
    I put the graph with data as an attachment so anyone can see if they get the same.    LabVIEW 11.
    Attachments:
    XY bug.vi ‏11 KB

  • Custom icons 'unclickable' in icon view & not shown in coverflow

    Hi,
    I just got off the line with Apple support, who couldn't solve my problem and then just told me that Leopard didn't support what I was doeing and thus that it was not there problem. Very un-apple if you ask me...
    Here's the problem:
    I create custom icons for my movies by pasting images (Jpeg's or what have you) onto the icon in the 'Get info' window of a file. This works fine, however when I view the files in icon view I can't select the file by clicking on the icon, only by clicking on the text below. Strangly enough this problem dissapears when I edit the icon size in the 'View options' to a size equal too or smaller then 116x116. At this point I can select the file without any problem.
    The same sort of happens in coverflow. Here I can't see the icon in coverflow if the icons are fairly large. Once I reduce the size of the coverflow bar too the point where the icons are very small the custom icons reappear.
    The make the matter even more strange this problem only occurs with files where I created a custom icon for since I had Leopard installed. All custon icons created under 10.4 work fine.
    This indicates too me that Leopard has problem with handeling the resolution of icons.
    Note also that Leopard stores icon images in different sizes. Try copying an icon image from the 'Get info' window, then launch Preview, then select 'File' and 'New from Clipboard'. You will see that there are multiple images here.
    Anybody know how to solve this?

    Getting the same stupid behavior here!
    I had a lot of customized Tiger folder icons but now i've got no good tools for customizing these new huge Leopard ones.
    I began using *Icon Composer* from the developer tools after doing the graphics in Photoshop, then using IconDroplet to get them into a form where i can copy and paste them between *Get Info* windows. What a pain.
    Now i discover this bit where they're not clickable once i replace them! I didn't know about the behaviors when making them big in *Cover Flow* and small in Icon view until i read this.
    I've been snooping around but i haven't found what needs to be tweaked where to allow them to behave properly.
    !http://img228.imageshack.us/img228/5186/scottdartve1.png!

  • Automatically create folders then attach custom icon to each folder.

    This is my current working script, does anyone know how I can now add customer icons to the folders in Applescript
    Many thanks
    Matt
    set theWeekNumber to ""
    repeat
    display dialog "Please enter the week number:" default answer theWeekNumber
    set theWeekNumber to text returned of result
    try
    if theWeekNumber = "" then error
    set theWeekNumber to theWeekNumber as number
    exit repeat
    on error
    set thePrefix to "INVALID ENTRY! "
    end try
    end repeat
    set theAFolder to "AFolder_WK" & theWeekNumber
    set theBFolder to "BFolder_WK" & theWeekNumber
    set theEnd to "_PSD"
    set theEnd2 to "todo"
    tell application "Finder"
    make folder at folder "Studio:Users:matthewchild:Desktop" with properties {name:theAFolder & theEnd}
    make folder at folder "Studio:Users:matthewchild:Desktop" with properties {name:theBFolder & theEnd}
    make folder at folder "Studio:Users:matthewchild:Desktop" with properties {name:theAFolder & theEnd2}
    make folder at folder "Studio:Users:matthewchild:Desktop" with properties {name:theBFolder & theEnd2}
    end tell

    The following script uses a handler that will set a custom icon to a file item. In this example, you are prompted for the icon file and the file item to set to the icon, but you can just pass the desired image and folder paths directly to the handler.
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    font-weight: normal;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px; height: 340px;
    color: #000000;
    background-color: #FFD891;
    overflow: auto;"
    title="this text can be pasted into the AppleScript Editor">
    -- assign an icon to a folder or file (requires Developer Tools)
    -- any image file can be used for the icon
    property startingDirectory : (path to home folder) -- a place for the file choice dialogs to start from
    on run -- example
    try -- check for tools
    get "/Developer/Tools/" as POSIX file as alias
    on error
    error "Developer Tools not installed"
    end try
    set iconFile to (choose file with prompt "Choose an image file for the icon:" default location startingDirectory)
    if (do shell script "/usr/bin/file " & quoted form of POSIX path of iconFile) does not contain "image" then -- check image file
    error "The icon file is not an image"
    end if
    tell application "Automator Runner" to tell open panel -- using this panel allows the choice of a file or folder
    set floating to true
    set can choose directories to true
    set can choose files to true
    set allows multiple selection to false
    call method "setShowsHiddenFiles:" of it with parameters {false}
    set title to "Select an item to set to the custom icon:"
    set prompt to "Set Icon" -- this is actually the button text
    activate
    if (display it in directory startingDirectory) is 0 then -- cancel button
    error number -128
    else
    my (setCustomIcon from iconFile to (it's path names as text)) -- just one item
    end if
    end tell
    end run
    to setCustomIcon from imageFile to destination
    Set the icon of a destination file item to the image contained in imageFile
    parameters - imageFile [various]: an imagefile for the icon (Finder alias or POSIX text)
    destination [various]: a destination item to set to the icon (Finder alias or POSIX text)
    returns [boolean]: true if icon is set, false otherwise
    set imageFile to imageFile as text
    if imageFile starts with "/" then -- check for POSIX file
    set imageFile to imageFile as POSIX file as alias
    else
    set imageFile to imageFile as alias
    end if
    set destination to destination as text
    if destination does not start with "/" then -- check for POSIX file
    set destination to POSIX path of destination
    end if
    try
    tell application "Finder" -- copy the icon image to a temporary file
    (duplicate imageFile to (path to temporary items) with replacing) as alias
    set tempImage to quoted form of POSIX path of the result
    end tell
    set tempResource to quoted form of (POSIX path of (((path to temporary items) as text) & "TempResource"))
    do shell script "/usr/bin/sips -i " & tempImage -- add a Finder icon to the image
    do shell script "/Developer/Tools/DeRez -only icns " & tempImage & " > " & tempResource -- get the icon resource
    do shell script "/usr/bin/file " & quoted form of destination -- determine the destination file type
    if the result contains "directory" then -- folder
    set theTarget to quoted form of (destination & "/Icon" & return) -- create Icon\r file
    set Command to "rm " & theTarget & "; " -- remove any existing custom icon
    set Command to Command & "/Developer/Tools/Rez -a " & tempResource & " -o " & theTarget & "; " -- add resource file to a folder
    set Command to Command & "/Developer/Tools/SetFile -a V " & theTarget & "; " -- make it invisible
    else -- file
    set Command to "/Developer/Tools/Rez -a " & tempResource & " -o " & quoted form of destination & "; " -- add resource to a file
    end if
    set Command to Command & "/Developer/Tools/SetFile -a C " & quoted form of destination -- set custom icon attribute
    do shell script Command -- do it
    on error errmess number errnum -- oops
    log errmess
    -- display alert "Error " & errnum message errmess buttons {"OK"}
    return false
    end try
    try -- remove temporary files
    do shell script "rm " & tempImage & space & tempResource
    end try
    tell application "Finder" to update (destination as POSIX file)
    return true
    end setCustomIcon
    </pre>

  • Represent NULL point in Line Graph.

    Hi;
          I am using Simple series to supply data to Graph type Line. I have a requirement to represent null data point in Line graph, where marker point for the NULL data point shouldn't be present, instead a straight line should come in between the valid points. Currently if the Data value is null, marker point is coming to 0.
    How can i solve this problem using Simple Series?
    I am using NW7.0; SP 9
    vinod.

    Please refer:
    http://www.sapdesignguild.org/resources/diagram_guidelines/index.html
    Reference Point:
         Chart Type Line Graph
             Do not Use it if the X axis has non-numeric values..
    vinod.

  • Custom Icon Images for Folders in KM

    Hello Everyody,
                   I have to display folders such as Pesonal Documents, Public documents, Recently used, Favourites etc which are there in the entry point repository in KM. Right now all these folders are being displayed with the default icon image specified. I want to replace these default images with custom images but couldnt see any property where i can change the image path for these folders. I checked the details of all these folders and even went through the properties but there it shows only the default image name speciefied for that folder and no active settings where i can change the image path for custom icon. Kindly suggest how to implement custom image for KM folder icons.
    Thanking you all in advance,
    Regards,
    Sarabjeet.

    Hi,
    If I understood, you have a KM navigation iview, where some folders apperar. You want to change the icon for each of them differently.
    For this do the following:
    First have a look into the KM.navigation iview and get the layout set property. Go to System config->KM->Content management->User interface->Settings->LayoutSet and find the layout set you are using. Go to appropriate resource renderer and check the "<b>Icon setting</b>". Change it to: <b>iconreplace</b>.
    Now get the KM details for your folders and change the <b>IconSource</b> property to your image Example:
    /etc/public/mimes/images/add.gif
    Voila...the icons for these folders are changed!
    Hope this is your case.
    Romano

  • Custom icons on aliases

    On my desktop (and the Dock), I have an alias named Current Project that points to whatever folder my current project files live in. I gave it it's own icon using the Get Info method. Now I just finished up one project and so I changed the alias to point to a new folder. In doing so, the icon for that alias changed back to a regular folder. Can I change this behavior or do I just have to live with it?
    Intel iMac 17'   Mac OS X (10.4.8)  

    Well, I just tried it and two promptly reverted and two didn't. As near as I can tell if the original folder had a custom icon and you then switch the alias to point a different original it will keep the custom icon from the first one. But if the alias starts with a generic folder icon and you paste a custom icon then when you change where it points it loses the custom icon. That's probably not very clear, is it? Try this:
    1. Create a new folder, call it CurrentProject and give it the custom icon
    2. Make an alias of this folder--it will have the custom icon
    3. Now point it to the new project folder, it should keep the icon
    Anyway, that's as close as I could get to understanding what I saw.
    Francine
    Francine
    Schwieder

  • Custom Icons Disappear in Cover Flow Above Certain Size

    I've been trying to create custom icons for certain folders and I've been having no luck when viewing them in cover flow.
    I've downloaded a PNG file, 512x512 pixels. Open it in Preview, copy to the clipboard, do a 'get info' on the folder I wish to change the icon of, click the little icon, hit paste, and it appears correctly in the preview and in the finder Icons view, as well as on my desktop or whatever. However, if I turn on cover flow and drag the size of cover flow to larger than a certain point, the custom image disappears and all I get is a blank spot. It's as if the 256 pixel icon is being created but the 512 pixel image is being left blank.
    I do not know if this happened in 10.5.1, as I hadn't tried until after installing the 10.5.2 combo update.
    In the following picture, you can see 1: bottom right, a preview of the png file itself as it appears, correctly, in cover flow, 2: top right, the icon working correctly on the desktop and in the get info window, and 3: left: the cover flow view of the computer showing a bit gaping void where the custom icon should reside.
    !http://www.ece.ualberta.ca/~tomlinso/argh.jpg!
    Any ideas? Thanks in advance!

    This does NOT happen if I use an existing, working icon (say, put the Applications folder's icon onto my hard drive.) It seems to be an issue with custom icons only, not just changing the icon for something.

  • How can I plot two sets of data points in 3d graph?

    I am trying to plot two sets of data points in 3d graph. I also need to make a set of data with one color and the other set with a different color. For example, I need to plot 10 (x,y,z) data points in 3d. Maybe 6 points need to be blue, and the other 4 red. Could you tell me how?

    What is your LabVIEW version? (things are a bit different in 8.6).
    Basically, you create multiple instances of the VI that gets placed automatically when you drop the 3D graph and then wire a different number to the plot ID at the bottom.
    You define all the plots (color, style) via the properties dialog.
    Have a look at my example posted here. One plot is "blue dots" and one is a "shaded surface". See how far you get.
    Message Edited by altenbach on 04-23-2009 01:11 PM
    LabVIEW Champion . Do more with less code and in less time .

  • How to show health app data points as a graph

    Some data points form a graph and others do not.

    0FI_AP_0 - go to the master data infoobject of this datasource. Check mark charercteristics is an export datasource in the master data tab
    Go to the infoprovider tab in RSA1, Insert this charecteristics as data target.
    Use export data mart of this infoobject in your cube creation. You can use this in update rules for update of cube

Maybe you are looking for

  • S-Video Adapter?

    Hello, I recently became curious about ways to watch and record TV onto my older (2007) imac. I also am interested in maybe connecting my xbox 360 and playing games on my mac's screen. I ddi some research and found numerous ways to watch and record t

  • Upgrading iM from 8.1.6 to 8.1.7

    I migrated one of our 8.1.6 databases to 8.1.7. Based on the migration documentation, InterMedia Text needs to be manually upgraded. Following Doc ID 120611.1, I ran s0801070 as SYS, then as CTXSYS, I ran the following: u081070.sql dr0typec.pkh dr0pk

  • Budget spread out to months

    Hi everyone, While doing Budget Spread out over 12 months, I have to give few options to users - 1) I have a GL expense accounts the total value (arrived at by multiplying the $ value with quantity) of which I want to spread out to 12 months in futur

  • Comparision of Hyperion Financial Reporting(HFR) and OracleBI(OBIEE11g)

    Hi all, Anybody can list down the Advantages of Hyperion Financial Reporting(HFR) VsOracleBI(OBIEE11g) adn Vice versa let me know what might be issues or challenges and what kind of additional tasks/effort required when develop the reports in obiee 1

  • Workflow help need urgently in Material Master creation

    hi All I am trying to create a Workflow for creating Material Master views in ECC6 system . Initially Basic data 1 and basic data 2 is created by user and then my workflow is trigerred for subseuqent views .For e.g i need to route the workitem to a u