PlotXY manual X Axis Scaling doesn't rescale Y-Axis auto-scaling

I'm using PlotXY(..) to display data on a graph.
I use SetAxisScalingMode(...) to set set VAL_LEFT_YAXIS to VAL_AUTOSCALE.  
I use SetAxisScalingMode(...) to set set VAL_TOP_XAXIS scaling to VAL_MANUAL.
I make various calls to SetAxisScalingMode(...) which change the min & max values for the X-Axis.
Everything thing seems to display correctly except that changing min & max values using manual scaling on the x-axis does not seem to change the range of data used to auto-scale the y-axis.
For example say you have a peak in your data that you want to exclude so the auto-scaling on the y-axis will zoom in.
So you change the max, min manual x-axis scaling to leave out the peak but scaling but the y-axis scaling doesn't change.
Is this the way it should work?
Ideas for a work around?
Thanks,
Kirk

Hi Kirk,
As you've noticed, the autoscaling of an axis in the graph is based on the entire data of each plot, not just on the portion of the plot that is within the range of the other axis.
If you use only integer limits for the min and max of the x axis, if you plot only 1D arrays, and if you don't mind re-plotting every time that you want to manually change the x-axis, there's a possible workaround, consisting of replacing PlotY with PlotWaveform, so that you can offset the data to plot.
I've adapted the code that you attached earlier to illustrate this:
int xmin = 40;
int xmax = 90;
SetAxisScalingMode(handle, PANEL_GRAPH, VAL_BOTTOM_XAXIS, VAL_MANUAL, (double)xmin, (double)xmax);
PlotWaveform (handle, PANEL_GRAPH, datapoints + xmin, xmax - xmin, VAL_DOUBLE, 1.0, 0.0, xmin, 1.0,
              style, VAL_EMPTY_SQUARE, VAL_SOLID, 1, color);

Similar Messages

  • 3D manual z-axis scaling

    Is there a way to (programmatically) force the scaling of the z-axis in a surface/contour 3D display?
    Until now, I've used the logarithmic scaling option, because it makes the value 1 (the minimum value) stand out more, but this uses up many of the shades available in the color legend. I'm using a starting value of e.g. 0.1 which makes all values below 1 'disappear into the floor', which is my intention.
    However, I would like to individually set the colors and the ticks of the color legend. Is this possible (and if yes, programmatically)?
    Thanks in advance for any help, and have a nice weekend!
    Leo Zschokke
    Test Engineer C-EPS
    ThyssenKrupp Presta AG

    Hi Stefan,
    My DIAdem version is 11.3f4653, Advanced (I think).
    Sample data is below, containing my matrix data (x, y and z channels) in a zipped .tdms file.
    Since "0" is my floor in the matrix, and "1" is a quite important value, since it means the rig ran through that path at least once, I would like to use a manual color scale to accentuate the difference between 0 and 1. So, 0 would be blue (0x0000FF) and 1 would be a lighter shade (0x0099FF or 0x00CCFF). The rest I would like to scale up the chromatic scale to red (0xFF0000).
    Ideally, a channel akin to a tick channel would be nice, but I haven't found anything in the help file or on the net that does that (which may well mean that I did not look hard enough or just didn't see it).
    Thank you for your help!
    Leo Zschokke
    Test Engineer C-EPS
    ThyssenKrupp Presta AG
    Attachments:
    LD_Ausw.zip ‏209 KB

  • Manual X axis scaling

    Hello,
    I would like to scale x axis manually. For example, the x axis data will be like this:
    70
    71
    72
    73
    74
    75
    110
    111
    112
    113
    160
    161
    162
    As a result, there will be a gap between 75 and 110 (also between 113 and 60). In order to diminish the gap, I have to config the x scaling like 70...75, 110...113, 160...162. Is it possible to solve this problem?
    Thanks
    kind regards,
    zhiyao

    Hi zhiyao,
    There is no configuration setting in DIAdem to do this with one axis system.  What you could do if you wanted to solve this without programming would be to place two axis systems side by side (one on the left, the other just to the right of it), then configure their x axes accordingly:
    [ 70, 71, 72, 73, 74, 75 ]  [ 110, 111, 112, 113 ]
    In the example you listed, you would need 3 axis systems.
    If you're willing to program the solution, then you can change only the x axis numbering with a user command that is placed in the format string of the x axis text, but this does not affect the way the values are graphed.  In that case you would need to plot the data vs. array index, so that the real x axis always ran [1, 2, 3, 4, ...], but you could change the display of the x axis to match the real x values, stored in the x channel [ 70, 71, 72, 73, 74, 75, 110, 111, 112, 113, 160, 161, 162 ].  Type "CFV" into the search field of the DIAdem Help to see more on the subject of changing the x axis display using the CFV variable in the x axis format string.
    Ask if you have further questions,
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • How can I create manual Y-axis labels in a multiple system report?

    A similar question was asked by Lutz1410 on 3/30/07, but it doesn't seem that this was finally resolved.  I'll try to ask the question in a different way.
    I created a graph in View with 3 axis systems in the "multiple systems" mode, then transferred this to Report.  I would like to apply manual scaling and text to each of the 3 axis systems, however if I change either of these parameters they are applied to all 3 Y-axes.  In other words, I end up with 3 axes having exactly the same text labels and scaling.
    1. For the axis text, is there a delimiter that can be used in the axis text field to tell Report that the first text value is for the first Y-axis, the 2nd value is for the next axis, etc?
    2. For the scaling, is it possible to have separate scales for each Y-axis?
    Of course, a workaround is to create 3 independent graphs in Report, but this is less convenient.
    Thank you,
    Craig

    Hi Craig,
    If you want to apply different manual scaling parameters to each of the stacked Y axes, then you need to use 3 separate Y axes.  If you want to display a curve-specific text to each of the stacked graphs, this you can do with a DIAdem expression:
    @ChnName(CCN)@@         channel name of each curve
    @ChnDim(CCN)@@            channel unit of each curve
    @ChnComment(CCN)@@   channel description of each curve
    The corresponding value for each curve will automatically display at the correct vertical spot next to its curve.
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • Different manual y-axis in multiple systems

    Hallo,
    i "ve some problmes to generate a report in Diadem. I have measured values, 600.000 datapoints in 2 channels, current and pressure. The measured values are in a wide range, but i have to lock for the small signal behaviour, so i have to zoom in small x/y areas. The founded points of interest must documented, so i use the function "transfer to report". While i look the data in n-systems i get a report with lines in multiple systems. The problem is the Y-scaling, the scaling is automatically to the whole range of the data, but i want the Y-scalling of the small y area. If i want to rescale manually i found only 1 y-axis, but i see two different y-axis. After rescale manually the scaling is for both axis the same. If i go back to automatically scalling the scaling is different but the same porblem like before, scaling to whole datarange.
    How is it possible to have two different manual y-scallings in a multiple systems diagramm with two data-tracks.
    best regards
    Lutz

    Hi Lutz,
    I sort of understand what you're talking about, and this sounds like something we should be able to configure correctly in REPORT.  I won't fully know what you mean until you send me a data set and the TDR layout file that you're struggling with.
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • Manual tile with bleeds doesn't print all crop marks

    When I try to print out a manually-tiled print with bleeds, the top of the page doesn't print a bleed and not all the crops print. How do I resolve this?
    Michael

    Were the crop marks printing on all four corners BEFORE you added "Include Slug Area"? In addition to adding the slug area in the print dialog, did you change the Slug Area values in the Document Set Up? Now that it works, is the printing scaled to a smaller size than before?
    Trying to understand why that worked.
    Thanks,
    Al

  • Manually-entered date information doesn't stay with photos outside iPhoto

    Hello--
    I'm having problems trying to share the date information I've manually added in iPhoto to all my scanned photos.
    I understand because they are scanned photos they are really new files where the image creation date is the day they were scanned. However, why is it that I can export the title, keywords, and location information of any of these scanned photos but not the date information that iPhoto is storing and using to sort the photos by date?
    I've tried exporting the photos to iDisk, sharing via e-mail with the title, keyword, and location information, and downloading specialized EXIF viewers (now understanding that a scanned photo isn't really going to have any EXIF data like a digital camera photo would). The only place external from iPhoto that I seem to be able to view the date information I've added to the scanned photos is in my MobileMe Web Gallery (but not when uploaded to a family member's Web Gallery), but only when selecting the "Show Detailed Info..." menu item after opening a photo...this date info does not come along when I download the photo from my own Web Gallery.
    I've also tried changing the date on these scanned photos using the Batch Change... menu item with no resulting change over setting the date in the information area for the photo (I still only see the date I've set in iPhoto or in my Web Gallery).
    My ultimate goal is to send many scanned photos with titles, keywords, and date information to a family member also using a Mac to build a slideshow with photos from several of us all sorted properly by date. Right now we're unable to figure out how to do that. Entering the date information into the description field allows that textual data to come along when I share via e-mail, but it doesn't solve the problem of allowing other people to sort automatically by date with a larger set of photos without them having to transcribe that textual date info into the date field in the information area of the photo.
    Thank you very much in advance for any specific instructions on making this work! This is getting quite frustrating at how something so seemingly simple and valuable is turning out to be so difficult to figure out.
    --Bill

    Terence Devlin wrote:
    audio capture/auto ID3 tagging
    What do you mean by this?
    On the Windows machine I have an app called 'Spin it Again'
    I use it for Vinyl and analogue tape capture for stuff that I could not fford to go out and buy new ( if even now available).
    All I have to do is put in artist name and title and it finds from online database (Gracenote plus others) , it analysis the audio and automatically splits the single capture in to individual tracks, saving the track names to each track, it uses recorded track length and database info to to comfirm/database naming. It also has basic audio filtering/crackle/hiss removal, audio cleanup options all in one package.
    I have yet to find anything that does the same job on the Mac,
    iTunes will auto tag tracks from an online database.
    The iTunes store database is very limited and does not have much of the older stuff. Plus I have always used FLAC format as my 'archive store' for all my audio, so ripping with iTunes is out For CD's I use EAC with Accurate rip to rip them and that also uses an online database with much greater range than iStore.
    Have you searched on MacUpdate?
    To an extent, and Garmin are now producing some better software for mac for their GPS units. But still nothing much in the Freeware world yet. I have tried a few apps for GPS over the last year (yes I have had a Mac for almost a year now) but still found nothing that has all the functions that I am used to on the Windows machine, and as I still have the Xp machine set up next to the mac , all on the same screens, then there is no difficulty in swapping machines. It is not of that great an importance that I am going to spend too much time on searching for Mac apps..something will turn up in time...as Name Mangler has done. I spend too much time on these bloody machines as it is...it is now 1210...and I have been on here since 0800...I had planned to go down the farm and do some work down there this morning...another morning gone and nothing real to show for it.

  • ScatterGraph does not allow manually editing axis range at runtime

    I'm using both ScatterGraph and WaveFormGraph controls in a Winforms VS2010 application.  I have the axis interaction mode set to EditRange.  The WaveFormGraph control allows editing the axis range by clicking on the end labels for the axis and changing them.  The ScatterGraph control does not even though the documentation that I have read indicates it should.  The axis mode does not seem to be the issue as I have changed between Fixed and AutoScaleLoose (which is not the selection to have while displaying changing data if you want your manually-entered range to be maintained).  I tried a new project with a ScatterGraph control with default settings and verified that it does not allow you to edit the axis range.  Is there a way to change settings to allow you to manually edit a ScatterGraph range in this way at runtime?
    Thank you!

    Hi Lybro,
    Have you enabled the "EditRange" InteractionMode of the scatter graph object? There are two places that the interaction mode is set, one for the axis and one for the scatter graph, both need to be enabled for the editing to work. I just tested this with Measurement Studio 2013 and it is working. Let me know if this helps.
    Regards,
    Kevin

  • Axis auto scaling

    when I use auto scaling for an axis I find two times repeated each number label , e.g. 0 0 1 1 2 2 ,...

    I am seeing the same thing in LabWindows. Tech support has not been much help. Have you found an answer?

  • Manually managing my music doesn't work

    since i installed the last version of itunes, if i set it to manually manage my music, it doesn't work. i try dragging the files over to the ipod, and itunes says it's updating the ipod. the progress bar goes to the end, but the files never get copied. if i disable it, then files in the library copy over fine.
    what gives?
      Windows XP Pro  

    Hello, stashmore94. 
    Thank you for visiting Apple Support Communities.
    Usually the reason for interrupted, stalled or canceled syncing alerts is a result of either security software interference or TCP/IP modifications.  Also, non Apple cables and low powered USB hubs can cause this issue.  Here are a couple resources that I would recommend going through as they may help resolve the issue.
    iTunes: Troubleshooting security software issues
    http://support.apple.com/kb/ts3125
    Apple software on Windows: May see performance issues and blank iTunes Store
    http://support.apple.com/kb/ts4123
    Cheers,
    Jason H.

  • Manually Adding Track Numbers Doesn't Work!

    I would like to make a "custom album" for an artist, a greatest hits designed by me, if you will. The songs are all by a single artist, but come from various sources. Some were purchased from iTunes Music Store, some were imported directly from CDs, some were MP3 files from my old PC, etc. (you get the idea).
    Anyway, I select all of the tracks, press Command+I to open up the "Get Info" window. For all the tracks at once, I give the album a name ("Best Of Whomever") and manually enter the tracks (1 of 32, 2 of 32, 3 of 32, etc.) I check everything else to make sure there are no inconsistencies between the tracks, as I want all things to be equal. When I'm done, however, there is inevitably a stubborn track (or two or three) that insists on ignoring its assigned track number and placing itself somewhere else in the list. This happens most often with IMS tracks. It's very frustrating and annoying.
    The way around it, of course, is to make a playlist. But without folder support for the iPod, playlists quickly become unmanageable.
    So my point is, if I manually assign a track a track number, it should go where it belongs and not wherever it chooses to. (And remember, before I assigned track numbers, I gave all of the tracks the same album name and info as a group, so there are no inconsistencies from track to track, like wierd spaces or misspellings.) I've tried everything and can't seem to solve this problem.
    iMac G4   Mac OS X (10.4.8)  

    My suggestion would be to ask in the iWork for iOS forum. Many more iOS users there.
    Jerry

  • Must check mail manually on 3G phone - doesn't come through automatically

    I only receive e-mails if I touch the mail icon and the iPhone checks for mail. No alerts come through on its own, as it did on my original iPhone.
    Any suggestions?

    Again, thanks for the replies.
    What's strange is that I 'handed down' my original iPhone to my son, and I had installed 2.0 on that phone - which obviously has the same settings options (his is set on manual) - and he still gets e-mails immediately. I think I'm missing something.
    Also - is MobileMe the only solution? In order to have near immediate e-mails you must pay for that service?
    Thanks for the help. I guess I knew less about the upgrade than I thought.

  • Update never completes - always "connecting to update server" I can do manual update but why doesn't auto-update work?

    I have this same problem with three machines (all linux - different versions of linux & firefox). Yes, I could do a manual update. But, I would like to get the issue with auto-update sorted out. I have a common network setup: private IP (192.168.15.xxx) on a router connected to COMCAST. There is a firewall but no proxy.

    Thanks cor-el! Your question about how it was installed was spot on. It was installed as root (I always do that for an app like Firefox so that it is available to all users. That is also the default when installing apps with yum or other package managers). The solution is to run firefox as root (''kdesu firefox'') so that it has access to the installation folder for writing. I selected Help -> about firefox and it updated right away.
    The error for the mozilla people is in not detecting and either handling (asking for root privileges) or reporting the problem instead of hanging up in an infinite loop.
    Thank you.

  • Y axis auto scale not working in DIAdem 11

    Hi
    A few years ago I created a user dialog box for selecting and displaying channels in DIAdem view.
    It worked fine for all DIAdem 10.X releases, but for DIAdem 11.X there is a problem with the y-axis scaling.
    The channels are displayd as [n  Systems (Linear)]
    In DIAdem 10.X the y-axis for each separate graph would be scaled automatically accoring to the min. and max. values of the displayed channel.
    In DIAdem 11.X the y-axis for each graph is scaled from 55.0397 to 133.7655.... for all channels, no matter what the values are for the displayed channel.
    When I click the "Zoom Off" button the scaling becomes correct.
    What do I need to put in to my script to make the y-axis scale correctly?
    Below is the code that is used to set the scaling (no scaling for Y axis is set):
        R1 = SelectedStartTime 'this is a variable defined earlier in the code
        R2 = SelectedEndTime 'this is a variable defined earlier in the code
        View.ActiveSheet.Cursor.X1 = R1
        View.ActiveSheet.Cursor.X2 = R2
        View.ActiveSheet.Areas(1).DisplayObj.XScaling = "RangeZoom"
    I've tried adding this code, to no effect:
        View.ActiveSheet.Areas(1).DisplayObj.YScaling = "n systems [phys.]"
        View.ActiveSheet.Areas(1).DisplayObj.YScalingMode = "automatic"
    Solved!
    Go to Solution.

    I tried with Macro recording and Ctrl+A and the result was
    Option Explicit 'Forces the explicit declaration of all the variables in a script.
    R1 = 30
    R2 = 52
    Call View.NewLayout()
    View.Sheets("Sheet 1").Areas("Area : 1").DisplayObjType = "CurveChart2D"
    Dim oMyDisplayObj
    Set oMyDisplayObj = View.Sheets("Sheet 1").Areas("Area : 1").DisplayObj
    oMyDisplayObj.Curves.Add "[1]/Time", "[1]/Speed"
    oMyDisplayObj.YScalingMode ="automatic"
    oMyDisplayObj.Abscissa ="X-Cursor"
    oMyDisplayObj.Ordinate ="Y-Cursor"
    View.ActiveSheet.Cursor.X1 = R1
    View.ActiveSheet.Cursor.X2 = R2
    View.Sheets("Sheet 1").Areas("Area : 1").DisplayObj.XScalingMode = "RangeZoom"
    WndShow "VIEW", ""
    which seems to work fine. So there is only one difference to your code which is
    .XScalingMode
    instead of XScaling. Does changing this work with your code?

  • Do I need to manually back up my iphone photos if I have auto downloads already set up in iphoto?

    I'm a relatively new iPhone user. I don't take a ton of photos, but the ones I take are important to me. I've been trying to make sure that photos I take with my phone are backed up and in iPhoto. I have a few questions regarding how it all works.
    1) If I take a picture with my iPhone it goes to both my camera roll and my photostream (yes, photostream is on)... is this correct?
    2) My photostream is limited to 1000 photos. These photos exist on the cloud aren't necessarily saved to my computer... is this correct?
    3) I have automatic downloading set up via iPhoto on my MacBook Pro. When I do this ALL photos I take are downloaded by my computer as long as I've connected it to the internet at some point recently... is this corret? If they are downloaded, are they downloaded from my photostream, or are they downloaded as they come in?
    4) If I go over 1000 photos in a month in my photostream, does it save ALL of them to iPhoto or just the 1000 most current? In other words, in iPhoto I see a section labeled, for example, "May 2013 Photostream". If I took 1500 photos during that May timeframe, would they ALL be there or would only the 1000 that constituted my photostream at the time of download be in there?
    5) If a photo is show in iPhoto it is permenantly downloaded to my computer's harddrive... is this correct?
    6) This is the biggest one. If I have auto downloads set up between my iPhone and iPhoto, is there any reason to download photos manually? Everytime I download photos manually it says I have a bunch of duplicates. They all seem to be duplicated in my photo stream, BUT others are not duplicated and seem to download at the time of the manual operation, which makes me think that they autodownloads aren't downloading everything.
    7) Do photos I edit in Snapseed or Instagram get downloaded automatically or do I have to put them somewhere for that to happen?
    Sorry for the barrage of questions. This stuff is super confusing if you've never used it before. I just want to be sure I haven't lost anything and don't delete anything.

    Good questions!
    SInce you are having Photo Stream, you may want to backup your iPhone to iCLoud. to be on the safe side,  see:  iCloud: Backup and restore overview
    1) If I take a picture with my iPhone it goes to both my camera roll and my photostream (yes, photostream is on)... is this correct?
    Yes, photos you take with the iPhone will be stored in the camera roll, and the camera roll will be automatically added to iCLoud and synced to your devices.
    2) My photostream is limited to 1000 photos. These photos exist on the cloud aren't necessarily saved to my computer... is this correct?
    My photo stream is limited to max 1000 photos and only the last month of photos.
    If you enable automatic import on your mac, these photos will be stored on your mac automatically in monthly events in iPhoto. Or you can import manually, what you are seeing in the My Photo Stream album.
    See:  iCloud: Photo Stream FAQ
    3) I have automatic downloading set up via iPhoto on my MacBook Pro. When I do this ALL photos I take are downloaded by my computer as long as I've connected it to the internet at some point recently... is this corret? If they are downloaded, are they downloaded from my photostream, or are they downloaded as they come in?
    All photos currently in iCloud will be visible in the Photo Stream, when it is enabled on your mac, and with automatic import they will be added to the monthly events, as soon as the mac syncs with iCloud.
    4) If I go over 1000 photos in a month in my photostream, does it save ALL of them to iPhoto or just the 1000 most current?
    When you reach 1000 photos in My Photo Stream, the oldest photos will automatically deleted, so you should sync your phone before that happens.
    iCloud: Photo Stream limits
    In other words, in iPhoto I see a section labeled, for example, "May 2013 Photostream". If I took 1500 photos during that May timeframe, would they ALL be there or would only the 1000 that constituted my photostream at the time of download be in there?
    You can sync more than a 1000 photos per month, only make sure, you sync often.
    5) If a photo is show in iPhoto it is permenantly downloaded to my computer's harddrive... is this correct?
    It is downloaded permanently, as soon as you are seeing it in an event in iPhoto, not if it is only showing in the "My Photo Stream" album.
    6) This is the biggest one. If I have auto downloads set up between my iPhone and iPhoto, is there any reason to download photos manually? Everytime I download photos manually it says I have a bunch of duplicates. They all seem to be duplicated in my photo stream, BUT others are not duplicated and seem to download at the time of the manual operation, which makes me think that they autodownloads aren't downloading everything.
    One good reason to download manually would be the download speed. It is just quicker, and you are not risking transmission errors. Also, you may have more photos in your camera roll than in the photo stream, because you could have deleted photos from the photo stream. The duplicates should be no problem, if you exclude them from importing.
    7) Do photos I edit in Snapseed or Instagram get downloaded automatically or do I have to put them somewhere for that to happen?
    I do not use these apps, so I cannot be sure, but usually you will have to save edited photos back to the camera roll, to be able to sync them, either with Photo Stream or by manual sync.
    Regards
    Léonie

Maybe you are looking for

  • Account Determination Error:  How to properly cancel the invoice/ cr memo

    Hello SAP Guru's, What is the correct procedure in cancelling an invoice with Account Determination errors and subsequent credit memo?  The error is a result of the user entering line items that are not permitted for the order type thus we suspect ca

  • HOW to EDIT the Transtalated TEXT

    Hi All 1. I have created the one Texmodule in English. 2. its has got translated to GERMAN(DE) language  using SE63. 3. But my client want to EDIT the converted language(DE) , when he is login to SAP langusge(DE) .    HOW to DO THIS..????? thanks in

  • ValueChangeListener on Navigation Item (JD 11.1.1.3.0)

    Hello to all, I put on a page a Navigation Item binded to a VisualObjet named: TemplateView1 When the user select the item on navigation, I need to get the row selected and make some operation. So I wrote a method and I associated it to valueChangeLi

  • Condition amount to be posted separately

    hi,       i am doing a PO with few conditions, i have a condition of frieght charges and i want to post the freight charges to a separate GL account and at the same time the price should not be inventorized(particular freight charges should not be in

  • Apply formatting in a JEditorPane and export the content in HTML.

    Hi, I'm writing, a program to allow the user to enter a formated text and even add images in a JEditorPane. Here is a simple sample of the code: import javax.swing.*; import javax.swing.text.*; import java.awt.*;              //for layout managers an