XY graph zoom problem

Hello,
There is a issue when you zoom in using a XY graph. Say you have a two points one at 0,0 and another at 10000,10. If you zoom in to say point 5000,5 the centre point the line will be way off nowhere near where it should be crossing. I was wondering if anyone knows a fix for this problem?
Thanks

I agree that this does not look right, but is probably due to limitations in the math used. Once you zoom into the area of iterest, the position of the line actually changes as a function of zoom level. (for example, the 5000 crossing of the line is at 5.00, then at 5.015, then at 5.16). I am sure the accuracy it could be improved, but maybe at a cost of performance.
It should definitely be investigated.
LabVIEW Champion . Do more with less code and in less time .

Similar Messages

  • XY Graph Cursor Problem in Labview 7.1.1?

    Hallo,
    I am  using Labview 7.1.1 and I am facing one problem with XY graph cursor. If I am moving cursor in one graph, I am expecting same movement in another Graph. But when I move cursor in Graph1, cursor in second graph moves but not to exact X value of Graph1.
    Property of Cursor in both graphs must be "Lock to Plot"
    If any body knows about this please let me know ASAP. I am attaching example VI for your reference.
    Thanks,
    Sashi
    Attachments:
    XY Graph Cursor Problem.vi ‏101 KB

    It's a curious effect. Probably the floating point coordinate is sensitive to the exact pixel alignment (I mean that this would not happen if we had for example 1 pixel per point in the X direction).
    Anyway, if you use Cursor Index instead (which is an integer) the behaviour is as expected.
    Paolo
    Paolo
    LV 7.0, 7.1, 8.0.1, 2011

  • Zoom problem (help needed urgently)

    friends,
    i m working on a class in which there is one JPanel inside a JInternalFrame. i have functionalities like zoomin and zoomout. for that i m writing my code on mouse clicked of JPanel but my problem is that mouseClicked method is getting called several times even if i click once on JPanel and thus zooming the JPanel by a very large value.
    please help me if u have any solution for it.Its very urgent.

    it would be difficult to post complete code so i m posting the important part of my code related to this zoom problem.
    public class PaintPanel extends JPanel implements MouseListener
         public Rectangle normalShape;
         public int initialX =0;
         public int initialY = 0;
         public int finalX = 0;
         public int finalY = 0;
         protected void paintComponent(Graphics g)
    addMouseListener(this);
    super.paintComponent(g);
    scale = zoomvalue;
    // System.out.println("scale value is " + scale);
    Graphics2D g2d = (Graphics2D) g;
    AffineTransform at = g2d.getTransform();
    AffineTransform atnew = new AffineTransform();
    atnew.scale(scale,scale);
    at.concatenate(atnew);
    // g2d.setTransform(at);
    g2d.setTransform(at);
    public void mouseClicked(MouseEvent e)
    // get the position of mouse released
    setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
    finalX = e.getX();
    finalY = e.getY();
    temploc3 = finalX;
    temploc4 = finalY;
    if(WellPlot.zoomFlag)
    System.out.println("zoomvalue in mouseClicked " + zoomvalue);
    zoomvalue += 0.1 ;
    setZoom();
    return;
    }

  • Zoom problems with G30

    When I zoom out with the rocker switch on my G30, the zoom will return to a wide angle, especially if I lightly touch the telephoto end of the rocker. It will continue to return to wide angle by itself, even if I move the rocker switch to telephoto. This seems to occur when the weather is hot (we shoot outside much of the time) and the camera has been operating for an extended period. This zoom problem does not seem to happen if the touch screen and remote zoom are used and the camera is cool. I bought this camera 9/2013. Has anyone else experienced this issue? Could this be a defective zoom switch? Would updated firmware make any difference? Any help would be appreciated.

    Hi mimages!
    Thank you for posting.
    Based on your description, the camcorder will need to be examined by a technician at our Factory Service Center.  To start this process, you'll need to complete a Repair Request on our website.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • Is there any way to help aid this annoying wallpaper zoom problem?

    So with the addition of iOS 7 came a new feature; parallax, adding a 3D effect to the home and lock screens. This is all fine and dandy, but 1. I don't like the feature because it wastes battery to use the gyroscope to just make the wallpaper move a bit, 2. The parallax doesn't even look 3D, and 3. Which is my main problem, it messes with the scale and zoom of when I am trying to set a wallpaper.
    So pretty much what I am asking, is there any way to make more of a wallpaper show when I set it? Even with "Perspective Zoom" turned off, most of the edges of the picture are cut out  and the "Fix" introduced with 7.1 doesn't seem to fix anything relating to the annoying zoom problems, other than giving people the option to not have their wallpaper move, but still have animations-and oh that brings up something else-
    Turning off "Perspective Zoom" turns off the wallpaper moving, but not the app icons moving. If you look closely, the apps move too, in the opposite direction of the wallpaper, to help give more of a parallax effect. The movement is a lot more subtle, but still definitely there.

    I never had any problem installing wallpaper. Knowing the photo is going to enlarge start with a photo smaller then full screen. If the photo is too small when you try to install it you can enlarge it by putting two fingers on the screen and moving your fingers apart.

  • XY Graph Zoom Mouse Wheel

    I'm developping a very lightweight world map on XY graph. The attached VIs are LV8.0.
    It almost works but I dont understand why it's not stable as you can notice by running worldmap.vi with zoom.vi as subvi. Your mouse wheel should zoom in, zoom out the graph's limits... I dont understand why it doesnt change X and Y ranges simultaneously... And the position of the mouse should stay on the same position of the world map, after zooming.
    I realize that my comment is not really clear, you can try it and suggest what I should change, I'm using LV8.6, you dont have to spend time to save for LV8.0
    Post question I should reply quickly.
    Regards,
    Jimmy
    Attachments:
    worldmap.zip ‏364 KB

    The problem isn't with the notifier mechanism (although that code can be simplified). The problem is with the way you're calculating the new ranges and increments. When the calculations are done the proportions of the graph are not kept consistent, thereby causing a stretching of the "figure". Also, you are not putting a limit on the XScale.Increment and YScale.Increment such as when you hit the max/min scale ranges. This means that you can continue to "zoom out", with no chance in the scale, but the increment values keep increasing. This throws off the calculations when you try to "zoom back in".
    My suggestion for using the picture indicator was not to try to draw 70,000 points. This would be way too slow. Rather, read in an image of the world to get drawn onto a picture indicator and then draw the axes over it. I don't know what your eventual goal is, so I don't know if this is a more suitable method. 

  • Multi Y-scale zoom problem

    I created two Y-scales on my XY Graph and attached one plot to each scale. The problem is that when i am trying to zoom the graph it changes both scales. I tried to set Active Scale before zooming but that didn' help.
    Is it possible to zoom scales independently using Tools from Graph Palette?

    Hi Jonni,
    I have attached an example in LabVIEW 8, you can change your Y-Axis range to zoom in on individual plots.
    Regards
    JamesC
    NIUK and Ireland
    Attachments:
    Use Axis range as zoom.vi ‏15 KB

  • Graph range problem with tab control

    Hello.
    I am using LabVIEW 8.2.1
    I have five XY-graphs in a tab control, with five tabs. One graph in each tab. When running, theese graphs is constantly written to, but the user is only allowed to watch one at a time.
    The program also contain a maximum&minimum chart, containg the maximum and minimum value for every plot in the viewable part of the graphs. The user can zoom in on a graph, and then watch the max&min values in this picture. The values are calculated by taking the range to each graph, and use theese ranges to cut out the viewable part from the input data to the graphs.
    The problem is, that the program only see the last viewed range. If I view a graph in a tab, the max&min values for this graph is correct, but the four other graphs dont get the correct values. The graphs data is written correctly. It seems like the ranges from the "hidden" graphs dont get updated when not viewed. Does anybody know how to fix this problem?
    I have uploaded an example to this problem. See how the range just freezes on the not viewed graph, even the two graphs is exactly the same.
    Thanks
    Fredrik, Norway
    Message Edited by Kalman on 06-19-2008 01:58 AM
    Attachments:
    graph_range_problem2.vi ‏24 KB

    Frederik,
    the reason for your issue is autoscaling. If the graph is not drawn, autoscaling will not take place, so you will not get any correct values, you will get the last autoscale-values.
    The behaviour therefore is "works as intended" since it reduces CPU usage.
    So the best way to work around is something like seen in the attached VI: you should compute the scaling for each graph on your own and use this to update the scales as well as the indicators (which i left out in my VI).
    hope this helps,
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.
    Attachments:
    Scaling.vi ‏25 KB

  • Bar graph legend problem

    Hi I am using JDeveloper Studio Edition Version 11.1.1.3.0.
    My problem is that I have made a bar graph inside an af:showDetailItem but the legends isn´t shown correct. I can´t see the legends at all when I place the legends in the bottom and if I place them in the right I can see half of the text. The source code is below. If someone can see something wrong in this code don´t hesitate to point it out or if someone know how to get this to work please let me know. To me it looks like a bug but I could be wrong.
    <af:showDetailItem text="Søgulig gongd" id="sdi8"
    stretchChildren="first">
    <dvt:barGraph id="barGraph1"
    value="#{bindings.TrxBrw360JLHistoryGraphRO1.graphModel}"
    subType="BAR_VERT_STACK"
    partialTriggers="::pc1:t1"
    dynamicResize="DYNAMIC_SIZE">
    <dvt:background>
    <dvt:specialEffects/>
    </dvt:background>
    <dvt:graphPlotArea/>
    <dvt:seriesSet>
    <dvt:series/>
    </dvt:seriesSet>
    <dvt:o1Axis/>
    <dvt:y1Axis/>
    <dvt:legendArea automaticPlacement="AP_NEVER"
    position="LAP_BOTTOM"/>
    <dvt:o1Title id="o1Title1" text="Tíðarskeið"/>
    <dvt:y1Title id="y1Title1" text="Upphædd"/>
    </dvt:barGraph>
    </af:showDetailItem>

    Hi,
    I stumpled accross this thread and fear I will hit the same problem with a new customer request.
    Has a bug been filled for this?
    Could not find anything relevant in metalink.
    regards
    Peter

  • Graph Legend problem

    Hi all.
    I am using Studio Edition Version 11.1.1.0.1 and got some problems with graph legend. I have a Pie chart and a bar graph which are made from the same read only view object and I can´t understand why the legend on them don´t show the same things when they are made from the same view object. The pie has a status attribute choosen as slices and the bar graph has the same status attribute choosen as bars and it is these things I thought decide what names are shown in the legend. The values for the status are shown in the legend names but the pie shows the legend names in the same order as the query in the view object while the the bar graph show them in the opposite order. How can I make them show the legend names in the same order?
    Atlantic Viking

    Hi,
    I stumpled accross this thread and fear I will hit the same problem with a new customer request.
    Has a bug been filled for this?
    Could not find anything relevant in metalink.
    regards
    Peter

  • Gallery zoom problem N8 since PR1.1

    I wondered if anyone else has had this....
    since 'upgrading' to PR1.1 intermittently, but often the gallery does not zoom correctly.
    when i zoom previoulsy it would zoom in the current image in low quality then a couple of seconds later it would paint in the detail....
    this painting the detail stage often does not happen and i have to reboot, which often doesn't fix it and i have to reboot again.
    sometimes after a reboot, when i open the gallery it will say 'refreshing your media' - anyone else have this - or an idea for a better workaround... how about deleteing all the _PAlbTN directories? where is the gallery database?
    There's no dignity in begging for kudos. Do it for the karma.

    there could well be a third element to this...
    it could be updating to pr1.1 after you have installed bubbles. nokia battery monitor has been giving me hassle too.
    but my googling lead me to a bug report on beta labs, it had no other supporters, but uninstalling bubbles removed the problem immediately. not even a reboot required.
    bubbles installs all kind of beta versions of all sorts of libraries that are used by all sorts of phone apps. it's a bit cheeky really whilst i understand that a beta is exactly that. this app does appear to have the potential to mess up everything rather than just itself. check this out for a 'known issue' - Installing Bubbles will also install a beta version of Qt 4.7.1 which may cause the Ovi Store client or other Qt-based applications to fail.
    There's no dignity in begging for kudos. Do it for the karma.

  • Zoom problem

    Hi guys,
    I'm a new user here, but I've been using Photoshop for many years.  I'm currently using Photoshop CS5 version 12.0.4.
    I recently updated my video driver, and now I'm having a problem with my zoom tool.  I'm going to try as best I can to describe it accurately here, and hopefully someone can tell me if there's a way to fix it.
    Basically, I used to be able to select the zoom tool, then click and drag to draw a "box" around whatever I want to zoom in on.  This is the behaviour I want.
    Right now, however, if I select the zoom tool, the behaviour is that instead of getting the "box," it just zooms as I'm dragging.  That is, I click, hold down my button, and when I drag to draw the box, I instead end up zooming in (or out, if I drag the other way) of my image, until I let go of holding down the button.
    Has anyone seen this before?  Does anyone know why this is happening?  Or, more importantly, how I can fix it?  It's driving me nuts!
    Thanks in advance,
    Kevin.

    Aha!  I think I may have found it.  There's a checkbox called "scrubby zoom" that seems to control this behaviour.  I have no idea why this ever would have become checked, but un-checking it seems to restore the zoom tool behaviour to what I was expecting.
    Hope this question helps someone else,
    Kevin.

  • HTML Map tag zoom problem.

    Hi,
    We have discovered a problem with our webpage that only occurs on safari. We have an image with an image where we use an <map><area> tags to indicate click-able hot spots on the image. When you change the zoom level in the browser, increasing or decreasing the size of the image the relative location of the hot spot changes within the image.
    This problem happens in both windows and mac versions of safari. IE, Chrome and FireFox handle this correctly.
    Does anybody know how to fix this?

    Hi
    a webkit nightly from http://webkit.org will likely fix it on an individual machine - but afaik, apple didn't include the fix in the recent safari updates.

  • Display mysteriously changed... not a zoom problem.

    I opened up my computer and the font and display had changed.  Now things like webpages don't fit in the screen.  Even the desktop picture has changed.   It isn't zoom and I've checked the display resolutions.   Anyone know how to correct this problem?

    Did you try holding down CNTL while you scroll down with the mouse or trackpad.
    This can zoom the screen even when the System Preferences > Universal Access shows zoom off.
    Regards,
    Captfred

  • Graph search problem

    och, were to start. I have implemented an Adjaceny set Graph using list of nodes and edges, the problem that I'm having is with the find path kind of breadth first search but with problems.
    What I'm doing is having two queues one for visited nodes and one for nodes that have not bee visited. so my find path method takes in two nodes the source and destination and performs an initial check to see if the nodes are not already connected, if they are then all is well if not things go a bit pear-shaped.
    what happens so I have one Q opeanQ with the first node that has been visited and then I search for all the edges that leave this node and add them to the closed Q for them to be search then I enter a while loop that checks to see if the closed Q is not empty and also checks to see if the openQ of visited nodes does not contain a node that we are about to determine if it connects to the destination or not, but what happens is that when it checks the openQ to see if a node in the closedQ exists there it does but it shouldn't cause the openQ only has one node in it the source node so far.
    What I think is happening is a pass by reference problembut not too sure how to get around it, cuase the graph is made up of linked list of nodes and I think that when it is in the open Q it is still reffereing to the linked list of graph nodesand when I check to see if a node in the openQ exists or not it always returns true for all nodes because of the getNextNode call to cycle through all the nodes in the openQ but it should only contain one, but think that its getting more nodes due to it being attached a linked list of nodes an seems to be referencing it somewhere.
    any ideas
    I've got about 10 classes if you want them posted or have futher questions let me know

    Normally I would be happy to help you, but after several years of trying to help here, I've decided not to contribute anymore because of the piss-poor way in which this site is being administered.
    Others are still helping, but more may leave if things don't improve. May I recommend devshed or javaranch?
    http://www.devshed.com/
    http://www.javaranch.com/
    If you would like to complain to the admins of this forum, either click the "Report Abuse" link or the "Feedback" link.
    -- foofoo (shamelessly stolen the text from jverd).

Maybe you are looking for

  • ITunes store error -9808, can't purchase music or sign in

    For a while now, every time I've used the iTunes store, a message comes up saying an unknown error occurred (-9808). It won't let me sign in or download anything. I'm downloading a more recent version of iTunes right now, but I don't think that's the

  • How to segragate correct and incorrect records in a msg

    Hi All, I am working on a file-XI(BPM)-Oracle scenario. My input file has a field 'Applicant No', which is mandatory in the Oracle table. In my BPM, I have a transformation generating two message types, one for the corect msg and the other for the er

  • Quicktime Updater should ONLY be used to push updates

    From a user standpoint it enrages me that you use the quicktime update application to push the use of iTunes. It is not the role of an update mechanism to push the adoption of other software but purely to distribute updates to existing applications.

  • What are the payment methods for the Ipad 2 32GB?

    Do I have the option to pay for one monthly or do I have to buy one at full price?

  • Final Cup pro HD doesn't respond

    Hi everyone, I've been using FCP4.5 for a while now, and I've never had any problem. Today, it did refuse to open, which is quite a problem since I have a project to finish. I've used DiskWarrior, I've run a Hardwre test, but nothing works. Has any o