Plot line that disappears with zoom

I'm having a problem with my CNiGraph intrigue disappears when the min and max are explicitly defined and they are significantly smaller than they would be if the graph were autoscaled.  I use studio measure 8.6.1.465 and NiDaqmx 9.0.2 on windows XP.  I'm controlling the axis scale by SetAutoScale() or SetMinMax().  My code is pretty big, so I'm including excerpts of what I do below.

I noticed a thread with a similar problem to: http://forums.ni.com/ni/board/message?board.id=232&message.id=3769&query.id=1275984#M3769

Help, please!  I tried window invalidation, turn immediate updates to update for the chart, by setting the visible/invisible axes, etc.

-a drew

Installation code:

CNiPlot field is m_pGraph-> GetPlots(). Add();
Cursor CNiCursor is m_pGraph-> GetCursors(). Add();
cursor. SetSnapMode (CNiCursor:napPointsOnPlot);
cursor. SetSnapMode (CNiCursor:napNearestPoint);
cursor. SetVisible (true);
cursor. SetPointStyle (CNiCursor:ointCross);
cursor. SetCrosshairStyle (CNiCursor::CrosshairNone);
cursor. SetColor (CNiColor (255,255,255));
cursor. SetPlot (plot);

CNiAxes axes m_pGraph =-> GetAxes();
CNiAxis xAxis, x-axis;
xAxis = axes. Item (1);
yAxis = axes. Item (2);

yAxis.FormatString = '. '. ##e » ;
xAxis.FormatString = "hh."
LineColor CNiColor (m_plotArray [i]-> m_lineColor);
parcel of land. LineColor = lineColor;

parcel of land. XAxis.GetTicks (). SetMajorGrid (true);
parcel of land. YAxis.GetTicks (). SetMajorGrid (true);

parcel of land. XAxis.GetTicks (). SetMajorGridColor (CNiColor (60,60,60));
parcel of land. YAxis.GetTicks (). SetMajorGridColor (CNiColor (60,60,60));

m_pGraph-> ChartLength = m_graphLength;
m_pGraph-> ChartStyle = CNiGraph::ChartStrip;
m_pGraph-> SetImmediateUpdates (true);

Graphical representation:

CNiReal64Matrix newData;

m_pGraph-> GetPlots(). Item(i+1). ChartXY (newData);
m_pGraph-> GetCursors(). Item(i+1). SetPosition (newData(0,maxCol),
newData(1,maxCol));

I managed to solve this problem, noting that panoramic caused the line chart redraw correctly.  I added a very small amount of 'jitter' in the Thexaxis every time after that ChartXY is called. Like autoscale mode refresh very well, I introduce only jitter if the min/max axis is set explicitly:

If (! m_pGraph-> Axes.Item("XAxis").) {GetAutoScale()})
public static double plusMinus = 1.0;
m_pGraph-> Axes.Item ("XAxis"). SetMinMax (m_pGraph-> Axes.Item("XAxis"). GetMinimum (+(plusMinus*0.000000001)),
m_pGraph-> Axes.Item ("XAxis"). GetMaximum (+(plusMinus*0.000000001)));
plusMinus * = - 1.0;

}

It seems that it is a bug in the chart control because there is no problem with the cursor drawing properly and I should not need to write code like this to prevent my intrigue to disappear?

-a drew

Tags: NI Software

Similar Questions

  • pointer that disappears with the laptop touchscreen 8 windows

    I just got an ACER laptop touchscreen v5-571.  I have no mouse and mouse pad to move the pointer.  It worked great until today.  The pointer is no longer visible.  I have configured to use the ctl key to see where the pointer is.  He shows me where the pointer is a large circle.  I tried to change some settings of the mouse.  The pointer is still not visible.  Any suggestion?

    I solved the mystery of the disappearance of pointer.  A few days before the disappearance of pointers remembered, I intend to show a movie via hmdi port.  In the darkness, I played with function keys.  Apparently I pressed the button "hide the pointer" (fn F7), next to the 'two screens' (fn + F6) key.   After press "fn" + F7 again.  The returned pointer.  No wonder that all the other suggestions didn't work.  I don't know if this info will help you, just to share.

  • Line that disappears in illustrator

    Hiya,

    I have inserted a picture of psd file in my document illustrator I create and when I save it as a PDF, one of the lines does not appear correctly. The line is still there, but it is really low. Do you know why this is? I'm new to illustrator!

    Thank you.

    You maximize your file or it has to do with the dimensions and resolution, the resolution must be higher. There is no way around that.

  • elements that disappears with the new update

    I have updated to the latest version of muse and asked a customer to make a slight change to their site. I checked the new version at the address of catlayst business and was glad I did, as items have disappeared from the new version.

    Fortunately, the old version is still alive so that you can compare.

    Here is the site of the former- http://mixupmcr.com

    Here is the version of the new Muse- http://magichatmixup.BusinessCatalyst.com/

    You can see when you click on the links at the top of the page the screen scrolls horizontally. on the old version, this leads to a black content area. the new version, however, led to nothing. give a moment and links also stop sending instructions to scroll in total and the only way to move around the site (empty) is to scroll manually.

    the boxes have not moved in the site file. they are always exactly where they were, but the behavior has completely changed and they may not make it in the browser (I looked for them everywhere!).

    I tried to rebuild the entire site in a file fresh and found exactly the same problem.

    What happens if you please, and how can I solve this problem?

    Thank you andrew. He took me to always come back to this, but I am grateful for the comments that helped me solve the problem.

  • Is there a fix for bookmark icons that disappeared with the update 21 dec. Am on Mac OS 9.7.2

    Since the 21 Dec update bookmark icons have disappeared. Using the latest MAC OS. What is the solution

    See:

  • The digitized files disappear after that scanning with HP Solution Center update

    The digitized files disappear after that scanning with HP Solution Center update

    Have a HP Officejet Pro L7590 all-in-one.  Under Vista 64-bit.

    Updated my Center of solutions for version 14.  Now when I scan something, it scans OK then when I save to file it away.  Looked on the HP site and found Update critical for this problem, however, the critical update is to version 13 and when I try to run it it tells me I need not and will not continue.

    Also: (maybe something to do with the problem) when using the / opening of the solution Center, when I goes to the buttons "ScanPicture" or "Scan a Document" and then click on "Change settings" there is nothing in the drop-down list for the ' Scan To: ' section.

    Have tried uninstalling and reinstalling several times.  Does not work.

    See you soon!

    Hello

    Two questions actually related to each other.

    Please, try the following:

    Make sure that the HP Solution Center is closed.

    Enter C:\Program Files (x 86) \HP\Digital Imaging\bin and search for the file hpqxmlul.dll .

    Move this file to a temporary folder elsewhere as your office, just to backup porpuses.

    Download and save the following file to your desktop, remove it by double-clicking, a new hpqxmlul.dll file appears on your desktop.

    Move this file in C:\Program Files (x 86) \HP\Digital Imaging\bin.

    Today the launch of the HP Solution Center and test analysis, check any changes with the sweep for list as well.

    Please let me know of any changes.

  • Stroke that disappears / lines - Illustrator 2015 CC

    Endangered Traits / lines:


    Concluding that working with strokes below PT. 1 line/stroke, conical and melted ends (However, printing is fine).

    Draw a simple rectangle (.25 pt stroke of extra or no fill @ 200%) cone of corners to nothing.

    Everyone recognizes this problem and have an answer?  I searched in the preferences without result.

    Never encountered this with earlier versions of Illustrator.


    Thank you.


    Allen


    Allen,

    Check if you have the latest update, it should be 19.1.0, which should solve the problem

    If you switch between two GPU and CPU rendering (Cmd E on Mac, Ctrl-E on Win) you should see the lines appear.

  • When you open a new session and after a decline in all the video files in the content area (the sound and the video is very good). After you have chosen a selection of clip the first clip that I post on the time line is equipped with sound. then the next

    When you open a new session and after a decline in all the video files in the content area (the sound and the video is very good). After choosing a selection of clip, the first clip that I post on the time line is equipped with sound. then the next clip, I chose (not dose issue)
    will have no sound. (but in the contact box everything its fine) Why is this?

    Why is this?

    Because you forgot to patch source audio track.

  • OfficeJet 6600/problem with the vertical line that appears both scanned and copied items

    There is a vertical line that follows the entire length of a page when I scan or copy.  Have cleaned the glass, it is not the effect.  Help

    Hi gljatlaw,

    I see that you are having problems of quality of scan.  I'll take a look at the document below.

    Scan quality

    Let me know how it goes.

  • [ITA / ENG] Problemi con lo zoom | Problems with zoom

    Hello, a few months ago, my photoshop started giving a problem with zoom, when I Zoom in or Zoom out an image or some other black squares appear like in this photo. It is so bad because they stay at this zoom level, as if I zoom 50% and displays a square, then I zoom 45% and it disappears, but if I zoomed in, another time by 50%, it seems... Sometimes it is impossible to work and I need save and restart Photoshop, I tried uninstalling and reinstalling, but nothing, I tried with the parameters of Gpu but nothing... I have a


    i Mac 21.5 "meta 2011

    PROCESSOR: Intel Core i5 2.5 GHz

    GRAPHICS card: AMD Radeon HD 6750 M 512 MB

    RAM: 16 GB


    What can I do? Thanks Federico.

    PS: sorry for my English oh and camera raw somethimes crash

    -ITALIAN VERSION-

    Salve a tutti, fondamentalmente quando money uno zoom mi appaiono una o più macchie come quella in foto, ho tried a reinstallare photoshop o a smanettare con impostazioni grafiche my niente... Come potete leggere sopra, use United Nations:

    I haveMac 21.5 "meta 2011

    PROCESSOR: Intel Core i5 2.5 GHz

    SCHEDA GRAFICA: AMD Radeon HD 6750 M 512 MB

    RAM: 16 GB

    Soluzioni? Grazie in pre-empted Federico.

    Schermata 2015-09-27 alle 23.03.13.png

    AW, cute dog.

    Wow, you can still use the Camera Raw interface correctly? I would like to be Apple and AMD hunt until the end of the world.

    There is this thread of long months on the issue. (Which, apparently, still has not been resolved.) Really hope that this is cleared up soon for you guys.

  • Why my anchor will not stay where I put it? It keeps coming from upward or down the line that I want to connect.

    Can't seem to fix it. It is not a network problem, I tried. The anchor at the end of this line, I train with a box intersection refuses to line up evenly, despite the Illustrator tell my which anchor crosses the box. It seems me to zoom in and see that the anchor is always pushed more high or lower than the vertical line. No matter what I do the line refuses to cooperate. Even delete the file and try on a new file do not work.

    You line up on the pixel grid in the files in question? What version of Amnesty International and the operating system are you using? This new Document profile did you start from?

  • How to make a line that looks like a street?

    I'm trying to zoom by something that resembles streets using 3d and the camera layer. If I create a long rectangle, once I'm in 3d there is no way it will be long enough stretch the window. Finally, it will look like a small stick. so I need a way to make a line that is locked at both ends

    Simply use a 2D layer and distort with corners, transformation or anything that you fancy effects. Or use the beam effect...

    Mylenium

  • AVG says your messed up my Verizon Yahoo's email server. The line that bed, delete, move, not spam, but... does not load. I can see my email, I just can't open

    I spent over 5 hours in computer shares with AVG. They said your server messed up my email account. I can access my email account, but the line that reads "delete, move, not spam, more' loads ever... so I can't delete the email or anything else. My email account is to verizon yahoo. I need access to my email for various reasons, one of them being pay several bills online and my email account is where to get confirmation that the payment has gone through! My email works through IE, however. I don't want to use IE to see my email... I use Firefox for everything and it would be a pain in the end to have to switch to IE to access my mail. Not to mention, I hate IE - it's like using WEBTV! It's so slow... [address removed by email, please do not provide sensitive information in a public forum] is my email...

    So Safe Mode made no difference?

    To test how Firefox works no 'custom' on your system, could you experience in two minutes?

    Create a new Firefox profile

    A new profile will be your plugins installed by system (for example, Flash) and extensions (e.g., security suite toolbars), but no themes, other extensions or other customizations. It should also have databases of completely fresh settings and cool a cache folder.

    Out of Firefox and start in profile to help Manager start > run:

    firefox.exe -P
    

    Do not delete anything here.

    Any time want to switch profiles, exit Firefox and return to this dialog box.

    Click on the button to create a profile, assign a name like TEST and skip the option to choose a different folder location. Then launch Firefox in the new profile that you have created.

    Yahoo does not improve in the new profile?

    When you return to the Profile Manager, you might be tempted to use the button Delete a profile on TEST. It's a little too easy to accidentally delete your 'real' profile, so I recommend you to resist the temptation. If you don't want to clean up later, I suggest to make a backup of all your profiles first in case something go wrong.

  • After the update to el Capitan my iMac will not be asleep. I put it to sleep and turn off the mouse and keyboard that goes with it, and 5-10 minutes later, he wakes up on his own. Now, I have to stop it after use and each time only. Major pain

    After the update to el Capitan my iMac will not be asleep. I put it to sleep and turn off the mouse and keyboard that goes with it, and 5-10 minutes later, he wakes up on his own. Now, I have to stop it after use and each time only. The Major pain. Any help would be greatly appreciated.

    Please test after taking each of the steps that you have already tried:

    Step 1

    Take all of the measures suggested in this support article, including those under the title "If the previous steps do not work." It is the starting point for a new effort to solve the problem.

    Note that, as stated in the article, the computer will not sleep, if some sharing services are enabled. In the menu bar, select

     ▹ System Preferences... ▹ Sharing

    Disable all sharing services.

    Step 2

    If sharing music iTunes home sharing is enabled, disable it or quit iTunes. Do the same with third-party applications that have a similar feature.

    Step 3

    Select

     ▹ System Preferences... ▹ Accessibility ▹ Speakable Items: Off

    Step 4

    Select

     ▹ System Preferences... ▹ ▹ Advanced Bluetooth...

    and uncheck the two boxes marked

    Open Bluetooth Setup Assistant at startup if...

    Step 5

    Reset the printing system.

    Step 6

    Back up all data.

    Triple-click on the line below on this page to select, then copy the text to the Clipboard by pressing Control-C key combination:

    /var/vm

    In the Finder, select

    Go ▹ go to the folder...

    from the menu bar and paste it into the box that opens by pressing command + V. You won't see what you pasted a newline being included. Press return.

    A folder named 'vm' should open. Inside, there may be a file named 'drag '. Move this file and only this one in the trash, but do not yet empty. You will be asked for your password. Close the folder window.

    Restart the computer and empty the trash.

  • can assign you a sentence/line that you use most often to shortcut keys

    can assign you a sentence/line that you use most often to shortcut keys

    The game may 10, 2012 01:26:02 + 0000, MC Space says:

    can assign you a sentence/line that you use most often to shortcut keys

    You can do it with a third-party program. I use and highly recommend
    the free Autohotkey to http://www.autohotkey.com/. It works very well
    and it is easy to use.

    Ken Blake, Microsoft MVP

Maybe you are looking for