Best way to draw (not plot) on a graph?

Hi -
I need to alter the appearance of a graph somewhat. The user doesn't want any full grid lines, but he does want a small crosshair (like a plus sign) drawn in each of the four quadrants. The CanvasDrawLine() function would be good for this, if it worked on graph objects, but it doesn't. I guess I could use bit files, but...is there an easier/better way?
EDIT: after reading a little more on bit maps, it's not clear to me that these will work, either. So...any other ideas at all?
Thanks.
Solved!
Go to Solution.

Going on the line of wolfgang suggestion, you could also have two graphs one on top of the other. The lower one can have all fixed elements (scales, axes, crosses and so on), while on the upper one, with transparent background, you can draw / erase your data plots. As long as you keep axes for both graphs with the same scale the system works like a charm, and you don't need to struggle with pixel conversion between the graph and the picture.
Proud to use LW/CVI from 3.1 on.
My contributions to the Developer Zone Community
If I have helped you, why not giving me a kudos?

Similar Messages

  • Best way to draw thousands of graphic objects on the screen

    Hello everybody, I'm wanting to develop a game where at times thousands of graphic objects are displayed on-screen. What better way to do this in terms of performance and speed?
    I have some options below. Do not know if the best way is included in these options.
    1 - Each graphical object is displayed on a MovieClip or Sprite.
    2 - There is a Bitmap that represents the game screen. All graphical objects that are displayed on screen have your images stored in BitmapData. Then the Bitmap that represents the game screen copies for themselves the BitmapData of graphical objects to be screened, using for this bitmapData.copyPixels (...) or BitmapData.draw  (...). The Bitmap that represents the screen is added to the stage via addChild (...).
    3 - The graphical objects that are displayed on screen will have their images drawn directly on stage or in a MovieClip/Sprite added to this stage by addChild (...). These objects are drawn using the methods of the Graphics class, as beginBitmapFill and beginFill.
    Recalling that the best way probably is not one of these 3 above.
    I really need this information to proceed with the creation of my game.
    Please do not be bothered with my English because I'm using Google translator.
    Thank you in advance any help.

    Thanks for the information kglad. =)
    Yes, my game will have many objects similar in appearance.
    Some other objects will use the same image stored, just in time to render these objects is that some effects (such as changing the colors) will be applied in different ways. But the picture for them all is the same.
    Using the second option, ie, BitmapDatas, which of these two methods would be more efficient? copyPixels or draw?
    Thank you in advance any help. =D

  • What's the best way to transfer (not forward) a call from one iPhone to another?

    What's the best way to transfer (not forward) a call from one iPhone to another? Is there an app available that does this? I'm asking about receiving a call, then transferring that caller to another iPhone on a separate number and then disconnecting while those two users are joined up in a conversation.

    Ask your carrier. This would be a feature provided by them.

  • Best Way to Draw A Simple Isoceles Triangle, and Fill it.

    Hi,
    What I assume is a relativly simple problem, ive got the coordinates of the bottom two points of an isoceles triangle, and the height, and need to draw it in Java2D. It's base will always be parrellel to the bottom of the screen.
    I also need to be able to fill or not fill it very simple, what would be the best way to do this?
    Thanks for your time,
    atreides7887

    Create your triangle as an instance of [java.awt.Polygon|http://java.sun.com/javase/6/docs/api/java/awt/Polygon.html] and call [java.awt.Graphics2D.fill(Shape s)|http://java.sun.com/javase/6/docs/api/java/awt/Graphics2D.html#fill(java.awt.Shape)] to paint the triangle to a BufferedImage or in a paintComponent override.
    Read the other methods of Graphics2D for the rest of your answer.
    db

  • Matrix: best way to shift notes around?

    What is the best way by... Key Command .... to slide a note forward or backward in time in the Matrix? I have been experimenting with the various 'nudge' commands.
    Is there any way of speeding up "nudge by tick value + and -" ? This is the only command which seems to "scrub" as opposed to move the midi event by leaps and bounds of a format.

    What do you mean by record lectures? Do you teach them or listen to them?
    With taking notes, you can find several free and $0.99 apps on the Mac App Store. Some apps let you enter a key command (Command+N, for example) and just start typing. All your notes are saved.
    If you have Snow Leopard or higher, you already have a voice recorder included with QuickTime. If you don't like that, Mac App Store!

  • Best way of including timing in a waveform graph?

    Hello all,
    I've been toying with a number of different ways to do this, but so far I haven't had all that much luck. I've posted a picture so you can see what's going on. All I have is 4 plots that need to be plotted with accurate timing information on the x-axis. I guess I'm just wondering what the best way to go about this is. This method seems to be the most cluttered and messy that I've done, but is the only one I've gotten to have the actual correct timing info on the graph. I would put a wait in the loop, but I need to acquire this data as fast as possible. Thanks for any help!
    Geoff
    Attachments:
    Graphing Test.jpg ‏74 KB

    The display options you have chosen are OK on their own.
    If you're looking to get more speed out of the code, try only graphing the data every 10 iterations or so. You can save the processed data (your waveforms) in a shift register where they can then be appended every 10 iterations.
    This will obviously not clean up your code. The best way to clean up your code might be to simply throw the conversions you're performing into a sub-vi. Or create a time input for your "meters" VI and have thr processing done there with correctly-scaled values being outputted.
    Hope this helps
    Shane.
    Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)

  • Best way to draw a triangle for the web

    I want to draw a triangle using Java for the web and was wondering what would be the best and simplest way to do this. Any guidance and links would be much appreciated.

    The drawLine method of the Graphics class.Or the drawPolygon() method.

  • Best way to draw an asset if I want to change the colour of it?

    If I draw something manually, can I still change the colour by actionscript?
    I want to draw a cat, and the cat colour depends on the the user choice in the previous 'screen'.  How should I go about this?
    Thanks.

    Yes, there are a couple ways. You can use the ColorTransform class. Or you can use one of the Tweening engines - it's really easy to tint objects using TweenLite. You can even test in the demo at http://blog.greensock.com/tweenlite/
    Scroll down a bit to the demo... pick a color in the tint box and hit Tween.

  • Best way to share notes?

    My wife and I both have Iphones and are looking for a program so we can share a shopping list. If either of us add or remove an item from the list, it would be updated accordingly. Can someone suggest such a program?
    Thanks!

    This app will do what you want: http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=287932487&mt=8

  • Best way to store data from a plot on hard drive

    I have a DAQ set-up that will be on 24/7 for several days, and the whole time it's streaming data to an XY-Graph with a limited buffer.  My question is, what's the best way to store my plot data in such a way that I can empty out my plot every few hours but if I want to pull up data from a few hours ago I would just have an option on my initial VI to view any old saved plot data.
    Basically, I'm trying to not overload my RAM with all my plot data so I'd like to save it to the hard drive while my VI is running, and only display, for example the last 8 hours worth of data... I've been looking at TDMS, but I'm not sure if that's the right solution.  
    much thanks!

    Hi,
    You could save your data using TDMS as well as ASCII to simply load it in another application later.
    Attached VI shows you how to save your data to a File after a certain amount of iterations, you can combine this then with your code and a timestamp.
    Christian
    Attachments:
    Save to new file every N samples.vi ‏20 KB

  • What is the best way to transfer files from Windows XP to a new MacBook Pro?

    I am about to make the switch from PC to Mac, but I am not completely sure how I should transfer all of my old files (Word docs, PowerPoints, Excel Sheets, pictures, etc.) over to the new Mac. I read this article, http://support.apple.com/kb/HT4796, and it said to download Windows Migration Assistant. It says that a new user account will be created on the Mac containing all of the transferred material. I assume that I can just pull stuff from the newly created account and put it on the main or administrative account? Also, I assume that I can delete the created account after I get everything that I want off of it, but I am new to the whole Mac thing and assuming never gets anyone anywhere. One more thing, I do not want to transfer over my email accounts from Outlook because there is some kind of problem with the way they are set up. I want to just start them completely over in Mail. The article says that the program will automatically transfer over email accounts. Is there a way to avoid that or just transfer stuff manually? If anyone has transferred files this way before, I would really appreciate any insight you can give me. Thanks!

    Best way would be NOT to use any sort of migration program, just copy the files over and place them in the same Music, Pictures, Documents folders on the Mac like it is on Windows.
    All you need a external USB drive you can pick up at any office or computer store, I would advise powered and either the same size or larger (not too big) than your boot drive on the Mac. So later you can make a clone of OS X, as there is NO system restore on a Mac.
    Most drives are formatted MBR with a FAT32 (named "MSDOS" in Apple's Disk Utility) and can be read on a Mac just as easily.
    If for some reason your external drive has been already formatted by Windows into NTFS format, then a Mac can't read it without paying for more software and having to hassle with updates, it not working etc. So format the external drive FAT (FAT32) or even exFAT on the PC first (exFAT needs a free download from Microsoft on XP machines)
    When you connect the drive, simply drag and drop your files right into the same folders, this way you can control what comes over and what stays.
    If you want a free program that can open your Office files without having to pay for OfficeMac, then the free LibreOffice is available and works great.
    https://discussions.apple.com/message/16276201#16276201

  • Best way to create menus [was: Queston]

    What technique or is a template used to create the menu for this Adobe page? I have been studying web development (reading and tutorials) and the sections are always short on creating menus.  Mostly, covers creating buttons with behaviors in Fireworks and inserting them into Navigation Bars and Tables?  What are the best ways to create menus?
    [Subject line edited by moderator]

    Howdy,
    The best way is definately not the Fireworks way. Never has been.
    Take RJweb's advise and check out the PVII Menu Magic. I use that all the time and its very easy to customize with its well laid out CSS files. I havn't found anything easier to use and customize yet.
    Brad Lawryk
    Community Expert: Dreamweaver
    Usergroup Manager: Northern British Columbia Adobe Usersgroup

  • Best way to share Itunes on network - WD My Cloud?

    Hello,
    I bought a WD My Cloud (NAS) hoping to use it to centralize my music and photos on my home network. I read a bunch of threads and decided to put my Itunes media folder on  the NAS. Getting all the files there was painfully slow. I am not sure if they got all copied at all. Accessing them was just as slow if it worked at all. Anyways, I gave up the idea, this was back in January. I now have more time and resetting my NAS to try this again. But before I embark on this adventure again, I wanted to know if this the best way. If not, what would be.
    thanks,

    I have no idea about speed.  The problem posts I have seen did not mention speed.  The main library file (iTunes Library.itl) itself is a relatively small file so speed will likely more be a factor of other traffic.
    I can't say a specific factor is an issue with NAS, but I think it may have to do with communication and the fact that iTunes is not talking directly to the drive but instead to NAS software which then passes on the message with varying degrees of success.  I have no idea how Apple programs iTunes but probably they don't sit down and test it with every model NAS out there.  For all I know they may not even test it with any NAS since I don't think Apple sells NAS.  I wouldn't really expect them to test it against anything except what they sell and meeting general specifications.  Anyway, the fewer steps involved the better which is why you don't see the same problem reports I see with NAS from people who use simple external hard drives formatted to Mac.  That's not saying you can't get it to work with NAS but you're moving farther away from shore and into uncharted waters.

  • Tab Container Issue - Graph not plotting.

    Hi All,
    I am currently working on cost model which is split into two tab containers.  the first tab contains the graph (Model) while the other tab contains the adjustable variables (Assumptions).  The graph is dependent on the adjustable variables in the assumption tab.
    The model was working correctly until 8 additional spinners and check boxes were added to the assumptions tab.  Now  the elements of the graph (lines are bars) do not plot.   The graph is based on the variables in the Assumption Tab.
    Have anyone encountered this before? I've checked all my forumals, links for both the graph and the spinners.  All are mapped correctly.
    Many Thanks,
    Mike

    Hello,
    Actually I do know already several working solutions, to avoid this problem. You mentioned some of these.
    But here I am purely interested about this behaviour. Is this a bug, or this is a normal behaviour? Like LabView saves system resources, so If we do not see a graph on the front panel, it does not update its values? (i mean the cursor values).
    So I would like to see and understand whats going on when someone runs this particular example. (so I do not use this in a real project, this is only to show and examine this behaviour).
    Also a bit dirty workaround: I could set the first TAB page via property node, when I run the code, so we always get the required result...
    Anyone who could explain how a graph works in this example?
    Thanks very much!

  • How can I draw two matrixes in one graph???

    I have to draw two matrixes in one graph.
    Matrix size is 10 X 100, 10 X 100.
    Help me!
    Have a good day!

    You can do this by adding multiple plots to the graph's plots collection and then plotting each matrix on its own plot. The easiest way to add additinal plots to a graph's plots collection is to right-click on the graph in the dialog editor, click on Properties, click on the Plots tab, and then click the Add button to add additional plots.
    Now if you have a member variable for the graph in your dialog class (let's call it m_graph for this example), you could do this:
    // Plot the first matrix
    m_graph.Plots.Item(1).PlotXY(/* Your first 10x100 matrix data */);
    // Plot the second matrix on a different plot, but same graph
    m_graph.Plots.Item(2).PlotXY(/* Your second 10x100 matrix data */);
    - Elton

Maybe you are looking for

  • Define selection screen for ldb_process

    Hi I'm using the call function ldb_process for KDF(lfa1, lfb1, bsik), the trouble is that the information its different than if i do it on a normal report defining the logical database kdf and selection screen 903. I find that the difference is becau

  • How to delete/deactivate a background job.

    Hi Gurus! Is there any way to delete a background job? I have a send job which sends email notifications to internet mails. I want to deactivate or completely delete the job. Please guide on what to do. I'll give points for answers. Regards, Vhong

  • Usage of OWC-Webinterface with firefox deletes BPS-data

    Dear Experts, We know that excel OWC in bps-webinterfaces do not work with firefox. But as we cannot control the local settings at a user workstation it sometimes happens that a user opens a webinterface with firefox instead of MS IE. In this case wi

  • Compiled PDF (from 8MP images) lagging/flashing whites/refreshes while scrolling through the pages.

    Hi guys, I would like to find out how exactly to optimize the pdf file so that I don't experience the problem mentioned in the subject line. what i did was take pictures of a few documents (80% text, 20% images) using a Canon G12 (had similar results

  • Asking for Advice

    We are planning on a buying the new 27-inch iMac for the family. I am going through difficulties in choosing between the 2.93GHz Core i7 or the 3.6 GHz Corei5 configuration for the 27-inch iMac. I have read through different posts explaining how CPUs