Keeping plot area, legend and legend within same area

I have two xy graphs, arranged one below another. Both have legends and multiple yscales (depending on user selection using popup menu). Yscales are shown programmatically and so is legend text (which varies in length). Legend is on right of plots. What I need to do is resize the plotting part of the xy graph to accomodate the legend, when its text increases in size (and it moves left onto the graph). The lower graph's plotting part shoudl also acquire the same size.That is the total control area should not increase (lets say 1200 pixels in width) and plotting area should shrink or enlarge to accomodate the increasing yscales (on the right side) or legend size.
Please share a VI that does so.
Thanks

Well, this seems to do what you want. IMHO, it's not pretty, and I bet it could be made better (if it could, I'm sure we'll find out, BRING IT ON!). Autosize your legend if you want, I wanted to show how things would vary. You could then just wire the second graph to have the same size properties as the first.
Cameron
To err is human, but to really foul it up requires a computer.
The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
Profanity is the one language all programmers know best.
An expert is someone who has made all the possible mistakes.
To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):
LabVIEW Unit 1 - Getting Started
Learn to Use LabVIEW with MyDAQ

Similar Messages

  • Illustrator CS3 won't retain/keep type style settings when pasting within same or different document

    I'm working with Windows XP PentiumR 4 CPU 2.8 GHz, 2 GB RAM in Illustrator CS3. When pasting copy within same file (or pasting into new files) Illustrator won't consistently retain/keep the font's type style settings. Why?
    Thank you!

    Hi Sheri,
    Are you facing this problem with any particular type of font?
    I have tried copy paste with different font styles and it is retaining the style correctly.
    Are you using XP SP2 or SP3?
    Thanks
    Anish

  • How to add a scroll bar within a view window ?I want to display x and y axis outside the scoll window and keep those axis static and move the graph within scroll area

    how to add a scroll bar within a view window ?I want to display x and y axis outside the scoll window and keep those axis static and move the graph within scroll area
    ananya

    Hey Ananya,
    I believe what you want to do is possible, but it will not be
    easy.  If you want to add a scroll bar that will scroll the graph
    back and forth but keep the axis set, you would want to add a
    horizontal or vertical scrollbar.  Then you would create an event
    handler for the scroll event.  You would have to manually plot
    different data within this scroll event.  Unfortunately, there is
    not really a built in way to do this with the Measurement Studio plot
    control.
    Thanks,
    Pat P.
    Software Engineer
    National Instruments

  • TS1741 Streaming from my iPad to my tv is not working, it keeps saying the iTunes accounts are different but I've checked it a ton of times and its the same, anyone had the same problem?

    Streaming from my iPad to my tv is not working, it keeps saying the iTunes accounts are different but I've checked it a ton of times and its the same, anyone had the same problem?

    Hi JenJen73,
    If you are having issues with AirPlay streaming from your iPad to your Apple TV, you may want to take a look at the troubleshooting steps in the following article:
    Apple Support: Troubleshooting AirPlay and AirPlay Mirroring
    http://support.apple.com/kb/ts4215
    Cheers,
    - Brenden

  • I have problem with my wifi in 4 S, i cant connect to any wifi itried resetting network setting and reset all setting but the result was the same, its only keeps searching for wifi and cant find any, itried to use OTHER but also didnt work.please help me

    i have problem with my wifi in 4 S, i cant connect to any wifi itried resetting network setting and reset all setting but the result was the same, its only keeps searching for wifi and cant find any, itried to use OTHER but also didnt work.please help me???

    If Join was on then your home wi-fi must be set to Non-Broadcast.  If you did not set this up (maybe your provider did) then you will need to find the Network Name they used, and any password they used.  The SSID is Security Set ID and to see more try http://en.wikipedia.org/wiki/SSID .  Basically it is the name used to identify your router/network.  A lot of times the installer will leave it set as LinkSys, or Broadcom or whatever the manufacturer set it as for default.  Your best bet is to get whoever installed it to walk you through how they set it up, giving you id's and passwords so you can get in.  HOWEVER, if you are not comfortable with this (if you set security wrong, etc.) you would be well ahead of the game to hire a local computer tech (networking) to get this working for you.  You can also contact the vendor of your router and get help (if it is still in warranty), or at least get copies of the manuals as pdf files.  Sorry I can't give you more help, I hope this gives you an idea where to go from here to find more.

  • I need to sync my iPhone to new user id on the same mac.  How do I keep my iPhone contacts and music library?  I tried to sync and iTunes wanted to erase both.

    I need to sync my iPhone to new user id on the same mac.  How do I keep my iPhone contacts and music library?  I tried to sync and iTunes wanted to erase both.

    When you say a new user ID, are you referring to your Apple ID that you use to make purchases in the iTunes Store, etc? Or are you talking about a new user account on the same Mac?
    iTunes alternatives
    http://www.wideanglesoftware.com/touchcopy/index.php
    http://www.ecamm.com/mac/phoneview/
    http://www.copytrans.net/

  • How to keep all text and formats the same on multiple computers?

    I'm creating a file in InDesign CS6 on my Windows computer. I keep everything on my flash drive. When I go to school, I bring my flash drive with me and open it up on the Mac computer, but then there are are compatibility issues. There seems to be missing fonts and formats but the school uses the same version of InDesign I do. Now I was told a lot of things of how to keep the fonts and formats the same (embed the links, package the files, outline the text, save as IDML). However, it is not clear to me what each of those options do, so I don't know when or why to use them. So I just want to make sure that when I bring in my file in next Monday, I won't have any missing fonts or formats. What would you suggest is the proper things to do to keep everything the same on multiple computers? And could you please explain why?

    If you want cross-paltform comaptibility limit the fonts to OpenType or Windows TrueType formats, both of which work on both Mac and PC. To avoid missing font warnings the fonts must either be installed on each computer, or they must be in a folder named Document Fonts in the same location as the .indd file they are to work with. Packaging the file will build taht folder for you.
    the rest of the stuff in your list won't help you. .idml would allow you to open on an older version, but does nothing for your situation. Embedding the links will keep you from having missing links, but so will packaging, and embedded links will make the file much larger and harder to work with.
    For goodness sake, don't even think about outlining the text. It stops being text when you do that and you can no longer edit it.
    And finally. do yourself a big favor and don't attempt to actually work on your file directly from the flash drive. Copy the whole package folder to the hard drive, work on it, then copy back. You don't want to know how many files are fatally damaged by write errors on flash drives.

  • I want to move the location of my iTunes library music files. At present they are all on my time machine . I want to move them all to my imac. Can I do that and keep all my playlists and play counts? Thanks in advance

    I want to move the location of my iTunes library music files. At present they are all on my time machine . I want to move them all to my imac. Can I do that and keep all my playlists and play counts? Thanks in advance
    its 1000s of songs . Originally I used the time machine as a networked drive but it can cause the songs to pause so I'm thinking it would be better to have the songs on the internal imac drive
    how can I move the songs so I can re-open iTunes and the playlists (with plays in the 100s) find the song in the new place?

    Do you mean on your Time Machine backup drive? Or are you actually accessing the backup? In either case you shouldn't be doing that. If you haven't space on your HDD to store the iTunes Library, then at least put it on another external drive.
    Since you did not provide any information about what's actually "on my time machine," here's what you would do. The entire iTunes folder should be stored in the /Home/Music/ folder. Within that folder you would have three folders: imm Media, iTunes, and iTunes Playlists.

  • I keep getting an error when trying to update an app- cannot connect to store. I logged out from my account and tried to log back in and got the same error. I am doing all this from my phone since I no longer own a personal computer (only work)

    I keep getting an error when trying to update an app- cannot connect to store. I logged out from my account and tried to log back in and got the same error. I am doing all this from my phone since I no longer own a personal computer (only work) since I use iCloud and I tunes match

    YAY!!! Saved it in my Mac's Firefox Bookmarks for easy future access!
    Hope you are having a lovely afternoon today! I'm about ready to go bobo....I have an early meeting, and I don't want to oversleep! The nice part is that I work remotely, so I only have to wake up 15 minutes or so before the meeting.... I don't even use an alarm clock anymore (really, my iPhone alarm, which is much more pleasant), unless I have to get up at 6:30 or something....
    TMI?
    GB

  • I keep getting download error and it does not want to download.  I tried deleting anything that might have creative suite links and reloading but I keep getting the same error message.

    I keep getting download error and it does not want to download.  I tried deleting anything that might have creative suite links and reloading but I keep getting the same error message.

    Well... what IS the error message?
    Please read https://forums.adobe.com/thread/1499014
    -try some steps such as changing browsers and turning off your firewall
    -also flush your browser cache so you are starting with a fresh browser
    http://myleniumerrors.com/installation-and-licensing-problems/creative-cloud-error-codes-w ip/
    http://helpx.adobe.com/creative-cloud/kb/failed-install-creative-cloud-desktop.html
    or
    A chat session where an agent may remotely look inside your computer may help
    Creative Cloud chat support (all Creative Cloud customer service issues)
    http://helpx.adobe.com/x-productkb/global/service-ccm.html

  • Drag and drop row within same table.

    Version 12.1.2
    I am trying to implement drag and drop row within same table, and I am trying to follow this sample from Frank:
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/106-reorder-table-rows-1921121.pdf
    But, I am getting this cast exception. The code I have in my dropEvent bean is identical to whats on the sample.
    oracle.jbo.server.ViewRowImpl cannot be cast to oracle.jbo.uicli.binding.JUCtrlHierNodeBinding
    ADF_FACES-60097:For more information, please see the server's error log for an entry beginning with: ADF_FACES-60096:Server Exception during PPR, #1
    Not sure if anything has changed on 12c release, or if I am missing anything.
    Here is my complete code:
    public DnDAction doDnD(DropEvent dropEvent) {
    RichTable table = (RichTable) dropEvent.getDragComponent();
    List dropRowKey = (List) dropEvent.getDropSite();
    if (dropRowKey == null) {
    return DnDAction.NONE;
    Transferable t = dropEvent.getTransferable();
    DataFlavor<RowKeySet> df = DataFlavor.getDataFlavor(RowKeySet.class, "rowmove");
    RowKeySet rks = t.getData(df);
    Iterator iter = rks.iterator();
    List draggedRowKey = (List) iter.next();
    JUCtrlHierNodeBinding draggeRowNode = (JUCtrlHierNodeBinding) table.getRowData(draggedRowKey);
    Row dragRow = draggeRowNode.getRow();
    JUCtrlHierNodeBinding dropRowObject = (JUCtrlHierNodeBinding) table.getRowData(dropRowKey);
    Row dropRow = dropRowObject.getRow();
    //get the table's ADF JUCtrlHierBinding
    CollectionModel collectionModel = (CollectionModel) table.getValue();
    JUCtrlHierBinding treeBinding = (JUCtrlHierBinding) collectionModel.getWrappedData();
    DCIteratorBinding objectsIterator = treeBinding.getDCIteratorBinding();
    RowSetIterator rsi = objectsIterator.getRowSetIterator();
    int indexOfDropRow = rsi.getRangeIndexOf(dropRow);
    dragRow.removeAndRetain();
    rsi.insertRowAtRangeIndex(indexOfDropRow, dragRow);
    objectsIterator.setCurrentRowIndexInRange(indexOfDropRow);
    AdfFacesContext adfctx = AdfFacesContext.getCurrentInstance();
    adfctx.addPartialTarget(table.getParent());
    return DnDAction.MOVE;
    It does not seem to like this line of code:
    JUCtrlHierNodeBinding draggeRowNode = (JUCtrlHierNodeBinding) table.getRowData(draggedRowKey);
    I would greatly appreciate any help.
    Thanks.

    Well there has bee a changes somehow. using 12c
    table.getRowData(draggedRowKey);
    returns a ViewRowImpl and no longer anything which can be convertet to JUCtrlHierNodeBinding. Anyway, the fix is easy:
        public DnDAction onDepartmentsRowDrop(DropEvent dropEvent) {
            //get the table instance. This information is later used
            //to determine the tree binding and the iterator binding
            RichTable table = (RichTable) dropEvent.getDragComponent();
            List dropRowKey = (List) dropEvent.getDropSite();
            //if no dropsite then drop area was not a data area
            if (dropRowKey == null) {
                return DnDAction.NONE;
            //The transferable is the payload that contains the dragged row's
            //row key that we use to access the dragged row handle in the ADF
            //iterator binding
            Transferable t = dropEvent.getTransferable();
            //get the row key set of the dragged row. The "rowmove" string is the
            //discriminant defined on the drag source and the collectionDrop target.
            DataFlavor<RowKeySet> df = DataFlavor.getDataFlavor(RowKeySet.class, "rowmove");
            RowKeySet rks = t.getData(df);
            Iterator iter = rks.iterator();
            //for this use case the re-order of rows is one-by-one, which means that the rowKeySet
            //should only contain a single entry. If it contains more then still we only look at a
            //singe (first) row key entry
            List draggedRowKey = (List) iter.next();
            //get access to the oracle.jbo.Row instance represneting this table row
            Object objdragg = table.getRowData(draggedRowKey);
            Row dragRow = (Row) objdragg;
            Object objdrop = table.getRowData(dropRowKey);
            Row dropRow = (Row) objdrop;
            //get the table's ADF JUCtrlHierBinding
            CollectionModel collectionModel = (CollectionModel) table.getValue();
            JUCtrlHierBinding treeBinding = (JUCtrlHierBinding) collectionModel.getWrappedData();
            //get access to the ADF iterator binding used by the table and the underlying RowSetIterator.
            //The RowSetIterator allows us to remove and re-instert the dragged row
            DCIteratorBinding departmentsIterator = treeBinding.getDCIteratorBinding();
            RowSetIterator rsi = departmentsIterator.getRowSetIterator();
            int indexOfDropRow = rsi.getRangeIndexOf(dropRow);
            //remove dragged row from collection so it can be added back
            dragRow.removeAndRetain();
            rsi.insertRowAtRangeIndex(indexOfDropRow, dragRow);
            //make row current in ADF iterator.
            departmentsIterator.setCurrentRowIndexInRange(indexOfDropRow);
            //ppr the table
            AdfFacesContext adfctx = AdfFacesContext.getCurrentInstance();
            //note that the refresh of the table didn't work when refreshing the table
            //so I needed to refresh the container component (af:panelStretchLayout).
            adfctx.addPartialTarget(table.getParent());
            return DnDAction.MOVE;
    does the trick. I changed the line to
    //get access to the oracle.jbo.Row instance represneting this table row
            Object objdragg = table.getRowData(draggedRowKey);
            Row dragRow = (Row) objdragg;
    so you don't need the detour through the JUCtrlHierNodeBinding any longer.
    Timo

  • Polar plot with legend points

    I can put one Polar Plot with legend in points?
    Case:
    I have magnitude and phase arrays for build polar plot and i want put rotation legend in each point of measurement. Then we have 3 arrays (magnitude, phase and rotation), but rotation need stay like legend for each point.
    Somebody already do it?
    thx for tip.
    Leonardo de S. Cavadas
    Maintenance Engineer and Inspection - Bureau Veritas do Brasil
    Engineer Metallurgist with emphasis in Advanced Materials
    Technologist in Computer Science

    Unclebump,
     i do one simple modification to be possible add rotation value to image, isn't better solution but i think that i'm near to solution way. Look these VIs, Re-link is necessary.
    Leonardo de S. Cavadas
    Maintenance Engineer and Inspection - Bureau Veritas do Brasil
    Engineer Metallurgist with emphasis in Advanced Materials
    Technologist in Computer Science
    Attachments:
    Plot Polar Data with Legend.vi ‏74 KB
    OtherPolarPlot.vi ‏67 KB
    Polar Plot with Legend.vi ‏75 KB

  • How do I keep account of line and column number within JTextArea?

    How do I keep account of line and column number within JTextArea?
    Thanks.

    hi kamlesh,
    to get the number of columns in a JTextArea u have the function
    getColumns() which gives u the number of columns in the text area.
    To get the number of rows present u have the function
    getRowCount() which returns an int that specifies the number of rows in the text area.
    Hope this helps
    Cheers :)
    Nagaraj

  • Keeps crashing and doesnt have same ease as before dont like it

    keeps crashing and doesnt have same ease as before dont like it
    want earlier version how can i fix asap?

    Sorry you are havvig prolems,
    See [[Installing an previous version of firefox]] although that may not solve your problems.
    *It may also be worth looking at [[basic troubleshooting]]
    *and [[firefox crashes]] <-- clickable link-- blue
    Note it is relatively easy to make firefox 4 look and behave much like firefox 3.6.
    Hope the information helps.

  • Is it possible to develop custom b2b and b2c application within same NWDS.

    is it possible to deploy b2b and b2c application within same NWDS.if not what all changes i have to make..?

    Hi,
    I am taking the original standard application SDA file format.extracting it.
    Create a Enterprise Application Project in Net Weaver Developer Studio (NWDS) and name it is as "ZLC_SERVICE" as the application name is ZLC_SERVICE.
    Create a Web Module Project in Net Weaver Developer Studio(NWDS) and name it is as "sap.comcrmisawebZLC_SERVICE"
    The NWDS will have two projects ZLC_SERVICE and sap.comcrmisawebZLC_SERVICE.
    Now Right Click on the EAR project and click "Add Modules". Select the Web Module Project and click ok
    1.Copy the war file  extracts into webContent folder of Web Module Project except WEB-INF and META-INF.
    2.Copy all the files of WEB-INF into WEB-INF folder of Web Module Project.
    3.Copy all files META-INF file which is out side the war file  into META-INF folder of EAR Application Project.
    4.Refresh the work space.
    Open application.xml file and replace the application tag with this.
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE application PUBLIC '-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN' 'http://java.sun.com/dtd/application_1_3.dtd'
      >
    <application>
      <display-name>crm~ZLC_SERVICE</display-name>
      <description>EAR description</description>
      <module>
        <web>
          <web-uri>sap.comcrmicsswebZLC_SERVICE.war</web-uri>
          <context-root>ZLC_SERVICE</context-root>
        </web>
      </module>
    </application>
    After building both web and enterprise application.I deploed Ear file in server.
    then it is throwing deployemtn aborted.
    Error Description:development component 'crm~ZLC_SERVICE'/'sap.com'/'localhost'/'2010.07.15.06.16.00'/'0':
    Caught exception during access of archive
    "/usr/sap/CD2/DVEBMGS02/SDM/root/origin/sap.com/crm~ZLC_SERVICE/localhost/0/2010.07.15.06.16.00/temp25686ZLC_SERVICE.ear":java.lang.RuntimeException:
    ERROR: Cannot initialize EARReader: Error while initializing Extended Ear Reader using file: /usr/sap/CD2/DVEBMGS02/SDM/root/origin/sap.com/crm~ZLC_SERVICE/localhost/0/2010.07.15.06.16.00/temp25686ZLC_SERVICE.ear.
    Reason: The following archives that aredescribed in the ear descriptor are not found in the ear:      sap.comcrmicsswebZLC_SERVICE.war,
    Please check the ear content.Exception is: (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).null)
    Thanks & Regards,
    Chinamaya

Maybe you are looking for