How to adjust the scale of a graph using reference points?

Hi,
I'm working on some code to display data from a spectrometer.  I've got to the point of producing an energy vs. intensity graph, but I'm having some problems calibrating the x axis (energy).
The customer wants to be able to insert filters with a cut-off at known energies, and use those points to work out what positions on the graph correspond to what energies.  In programming terms, I need to  let the user click on the graph at two points with known values, and use those points to recalculate the XScale multiplier and offset (I think).
I've tried a few different things, and attached  by best attempt so far.  It's a simplified example, but I hope it captures enough of the problem to be useful.  I can't help thinking there must be a simpler way to do this.  Any suggestions?
Solved!
Go to Solution.
Attachments:
Graph Scaling Example.vi ‏24 KB

What you have done is good. The only thing that I would have a problem whit is there is no visual response on the graph for the user. You can also do this with cursors. Let them slide cursors on to the two points. It is more visual and you can see where you have selected. I am not sure that it will be much easier than what you have done. You could also use a hybrid of the two methods and have the cursor move to the point that you have selected.
Tim
Johnson Controls
Holland Michigan

Similar Messages

  • How to adjust the scale of a chart between 2digits?

    hi,
    I made my charts for different processes that I wanted,I just need to adjust the scale of a chart between 2digits now,I need a method which is possible to be applied for both X,Y.
    thx,

    forexample:
    for my Y:
     I need it to be set from -1000 to 1000 (as it is my current)
    for my X:
     I want it to be set from 0 to 80
    and also I want my X,to be work as seconds(from second 0,till 80seconds after),so I need it to follow the period of 1seconds between it's scales,
    thx,

  • How to adjust the path of a tween using actionscript

    I'm a novice at Actionscript3 and would greatly appreciate an answer to what seems like a simple question:
    Here's my project:
    http://home.comcast.net/~samiri/director/mortals/amadoFlashPortrait/index.htm
    Click on the gray scale frame images. A larger version of that image tweens out along the z axis. However it comes from 'somewhere else' not from 'within the frame.' How do I get the each larger gray scale frame image to look like it comes directly from the place where the user clicks (not to one side or the other)?
    So I guess what I'm asking is how to adjust the path of the tween along the x and y axis using the actionscript code (below).
    My method:
    I'm using this line of code in my script:
    var myTween:Tween = new Tween(mdImg, "z", Strong.easeOut, 300, 0, 1, true);
    "mdImg" is the variable that holds the name of the hotspot clicked upon by the user.
    I have the larger (faded edge) image positioned directly on top of the frame image and just kept invisible until the User clicks on the hotspot over the frame image.
    Thanks much.

    Thanks moccamaximum,
    By "do your tweens manually" you mean to use the timeline to do frame-based tweening? That is an option but I'm wondering (as a newbie): Isn't it better to use actionscript to do animation since you have more control and it's time based rather than frame-rate based (and works better on low performance machines)? Just curious if I should be spending the time to learn actionscript or do it in the traditional way.
    Thanks

  • How to adjust the scale on second Y-Axis in cfchart

    Hi,
    I am using cfchart to show the bar graph and line graph in the same chart . Bar graph uses Y-Axis1 and line chart uses Y-Axis2 . Y-Axis1 represents the numeric value and  Y-Axis2 represents the percentage scale. the scale of Y-Axis1 depends upon the values of the data plotted but the scale of Y-Axis2 i.e for percentage that shoul  be fixed from 0 t0 100% . But as the Y-Axis1 scale adjusts the Y-Axis2 scale is being changed. But i dont want that to happen . The Y-Axis2 scale should be fixed from 0 t0 100 and the Y-Axis1 scale should be adjusted depending on the values . Please suggest a solution to this .
    Thanks,
    Sriram

    In my opinion it is impossible to have two different scales on one axis in cfchart.

  • Why can't I adjust the scale of my text by clicking and dragging the corner boxes?

    Why can't I adjust the scale of my text by clicking and dragging the corner boxes? Why I have the text selected, all it does it let me highlight it to change font, size, etc, OR all I can do is move it throughout the artboard. Why can I click and drag the corner box to adjust?
    M

    It's because you have a paragraph text box and it doesn't automatically resize text. This way you can change the margins of the text without resizing it which is how paragraph text functions by default.
    I'm not seeing the new text paragraph/area indicator on your text box, which is what you get in Illustrator CC, so the only way to convert this text so you can resize it by dragging on the corners is to copy the text, deselect the text box, use the text tool to click once in another part of your document, and then paste the text. The text will then come into your document as one long line if you don't have hard returns in it, but after reflowing the text manually you'll be able to drag the corners to resize the text.
    I would recommend not going this route as any text you remove from the area type means that the rest of the text has to be manually adjusted to maintain correct margins. Instead just resize the bounds of the paragraph text and adjust the size of the font in the Character panel.

  • How to adjust the width of a bar plot?

    Hi,
    I have to draw a bar plot and when I wire values to the chart for some reason they are almost 1 inch think for each number. I was wondering how to adjust the width such taht it is something more like 2 mm per entry?

    What you seem to be running into is the autoscale on the X-scale. Right click on the X scale and turn off autoscaling. You will then have to manually set the scale to get the width that you want.
    Hope this helps.
    Rob

  • How to adjust the green (starting) and the red (end) rectangles pixel by pixel (top, bottom, left and right) by changing the number of pixels in ken burns.

    How to adjust the green (starting) and the red (end) rectangles pixel by pixel (top, bottom, left and right) by changing the number of pixels in ken burns. Help please.

    If you look closely at the top of the canvas pane, as you move either of the boxes (green or red) there is an indication of pixel positions... "top, bottom, left, right," and "scale."
    Admittedly, it doesn't seem as if you can "enter" the dimensions with your keyboard, however, as you move the boxes, you have a real time indication of the boxs' locations.
    (I couldn't take a screen shot, as you have to actively move the box with a mouse or other input device... thus, I could not also take a screen shot with same device.)
    I hope this helps.

  • How to adjust the brightness of a second display connected to iMAC 2012  by Apple Mini DisplayPort to Dual-Link DVI Adapter?

    How to adjust the brightness of a second display (Dell 3007WFPHC 2560x1600 dpi) connected to 27 inch iMAC 2012 through thunderbolt port by an Apple Mini Display Port to Dual-Link DVI Adapter?

    Macs control computer by USB.  With a non-Apple display, you will have to use the brightness control on the display.

  • How to adjust the size of a region?

    Hello, would anyone know how to adjust the size of a region size?
    Thanks for your replies!

    Checkout an interesting article called " Oracle9iAS Portal Best Practices: Regions" to understand resizing region.
    http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/OTN_CONTENT/MAINPAGE/PUBLISH_CONTMGMT/TECHNOTE_REGIONS_0.HTML

  • How to adjust the font size of iPad in printing a web page.

    How to adjust the font size of iPad printout of web pages ?

    In HTML Header I put textDid you mean Page Header Text? It wouldn't have done much of anything at all in the HTML Header...
    However, the font doesn't do anything.Yet another universal selector problem: see +{message:id=4184109}+
    How do I overwrite the style sheet? I am wondering if I change the default style sheet, does that also affect the other pages, which is not what I want. In that case you can just include the CSS inline, which will also get round the universal selector issue. You are also recommended to use a semantic HTML element instead of deprecated presentational elements like <center> and <font>. Assuming this text is the primary heading on the page, use <h1>:
    <img src="#WORKSPACE_IMAGES#my_header_logo_white.jpg" alt="" title="Application" />
    <h1 style="font-size: large; font-weight: bold; text-align: center;">Web Management System</h1>

  • At the time of go-live, how to adjust the stock in the bins which match- -

    Hello,
    Materials are already distributed in to the bins physically where SAP WH mgt not implemented. When we implement the SAP/(at the time of go-live),we have following issues
    When we go live, then how to adjust the stock in the system as per actual physical bin stocks in WMS?
                 OR
    DO we have to tell user to adjust the stock in the bins physically as per the system stock?
    Thanks

    hi,
    your stock level get differed between storage level and warehouse level? if so go to LX23 AND EQUAL THE DIFFERENCE.
    if u want to change the bin level adjustment use lt01 and lt10 tran. as per your req(at the time of go live)  adjust according your inventory stock.
    regards
    muthuraman.d
    Edited by: muthuraman d on Dec 16, 2009 8:59 AM

  • How to adjust the size of the slide in keynote to 7.5 feet high x 3.1 feet wide?

    How to adjust the size of the slide in keynote to 7.5 feet high x 3.1 feet wide?

    Keynote is not designed to produce printed media, it is set up is for video. There are dozens of applications that are designed for printed output on the Mac, Pages, Word, In design, Quark, Open Office, Libra.
    Pages is the accompanying application in the iWork suite that is specifically designed to print to paper, you should look at that first as it May be on your Mac already.

  • How to  adjust the text in input field

    Hi Expert,
    New in VC development. Can someone guide how to adjust the text in input field? Because of  long text length it  is not displaying fully in visual composer iView so user are not able to see the entire text in input fields

    HI Kundan,
    I assume that you have already tried different options perent in Label Postion for the field.
    If none of these options meet your requirement then you can try the following workaround:
    In the display properties, select label position as no label.
    In the form view add a new UI Control for Plain Text or HTML text and change its Label to "Material Number".
    Now place this new UI Control in before your actual Input field such that it appears as the field label.
    Hope this helps.
    Regards,
    Rk

  • How to adjust the height of the tracks in timeline mode

    I am trying to find my way around PE 10, have had the program for years but not used it. (I am using Win 7 on a 15" laptop, screen resolution is 1920x1080, 16 GB Ram, 4GB video RAM.) I took some video on vacation, in some clips there is a lot of wind noise. I know how to adjust the volume using key frames, but the tracks are only about ¼" wide making adjustment just about impossible. Full volume to zero is just a small fraction of an inch. I can zoom in on the track, but this doesn't make the track wider. Is there any way to do this?
    Thanks,
    David

    Actually, I wanted to do this in a static table.
    Just now, I learnt that this feature is not available in 12.0 as well as in other previous versions.
    However, this will be implemented in Release 12.1.
    Thanks,
    Navin.

  • How to adjust the BIOS to enable the RAID function.

    My MB is 845PE Max2(MS-6704) and the BIOS version I used is AMIBIOS A6704IMS v3.1 022803
    I need to know how to adjust the BIOS to enable the RAID function.
    Also, please tell me how to utilize 845PE max2 with RAID function.
    I've enabled the Integrated peripheral device/IDE RAID in BIOS.
    But the system still failed to detect my HD that I installed on IDE3-4.
    Please tell me which part I missed.
    much appreciated!!.

    Got the same problem here.
    Furthermore, i can't get the raid controller to get working in winXP. (device won't start)
    MSI 845PE MAX2-FIr GB-L/2.0/1394 (MS-6704)
    P4 2,4 ghz 533 fsb
    2x 512Mb kingston PC 2700 , DDR333.
    MSI G4 Ti4200-VTD8X
    WinXp pro + SP1 installed
    The board has 4 ide connections
    Got all kinds off trouble with this board X(
    Did install Windows XP Promise Fasttrak TX controller (PDC20276) , the device will not start.....
    IEEE 1394 Host Controller installed, the device will not start....
    Multimedia-videocontroller , no drivers available....
    Nice going, this really drives me up the wall!
    Don't know what to do anymore, plz help! ;(

Maybe you are looking for

  • Problems installing Bridge and Media Encoder in CS6

    I recently installed Creative Suite CS6 Design & Web Premium. I had previously installed the CS5 version and had not un-installed it. Everything except Acrobat appeared to install correctly. When I opened Photoshop CS6 (64-bit) I noticed that it used

  • HP LaserJet 2035 and 10.6.1 Now Supported -- Sorta?

    Just upgraded to 10.6.1 and I the driver was automatically downloaded from Apple for the HP LaserJet 2035n. Printing works great, except for the double-sided printing is now disabled. The print driver had double-sided printing in 10.5? Anyone else se

  • How to update Bootcamp 3.1 and 3.2 wthin black screen Win 7

    Hello, I was installing Window 7 Ultimate on my iMac and still stuck at black screen with blinking cursor. Read tones of posts and still couldn't fix it. My Bootcamp was 3.0.1, do I need Bootcamp 3.1 then 3.2? I downloaded Bootcamp 3.1 & 3.2, but can

  • DBAdapter issue

    hi i am using DBAdapter with wizard(select operation),where i have to call a pl/sql function like this msi.organization_idcs_std.get_item_valdn_orgzn_id how can we implment the pl/sql func in the select query using DBAdapter wizard(select operation)

  • Problems trans files from Mac Mini to a new iMac

    I'm trying to help a friend of mine, who is a senior citizen.  He's had a Mac Mini for a couple of years now but recently purchased the 27" iMac due to being technically blind.  The iMac provides a way to use speech and other accessibility features t