How can I draw two differenct plots at the same graph?

[I am beginner]
I have two different set of data which have differenct x-axis values. How can I draw two data at the same plot?
For example, one data set is
x y
1 3.5
3 2.3
5 1.3
8 3.2
The other
1 2.3
2.5 5.4
4 2.5
If I use m_graph.plotXvsY two times. But it draw only one graph at the same time.
Please let me know. Thank you in advance.

Do you really need the two sets of data on the same plot or is what you really care about is that the two sets of data are in the same graph? If it's the former, then there's not much that you can do since a plot can only contain one set of data. You can append to an existing set of data by calling the corresponding Chart (for example, ChartXvsY) method, but the result is that the plot's data will appear continuous.
If it's the latter, the way to do this is to add multiple plots to the graph and plot each set of data in a separate plot. For example, go to the Plots tab in the graph's property pages, add another plot, then here's some sample code that demonstrates how to plot the sets of data from your example above:
double xData1[] = { 1, 3, 5, 8 };
double yData1[] = { 3.5, 2.3, 1.3, 3.2 };
CNiReal64Vector xDataSet1(4, xData1), yDataSet1(4, yData1);
m_graph.Plots.Item(1).PlotXvsY(xDataSet1, yDataSet1);
double xData2[] = { 1, 2.5, 4 };
double yData2[] = { 2.3, 5.4, 2.5 };
CNiReal64Vector xDataSet2(3, xData2), yDataSet2(3, yData2);
m_graph.Plots.Item(2).PlotXvsY(xDataSet2, yDataSet2);
Hope this helps.
- Elton

Similar Messages

  • How can I have two PDFs open at the same time next to each other?

    How can I have two PDFs open at the same time next to each other?

    Moved to Adobe Reader for iOS.
    The only way I know how to do that is with two iPads.

  • How can I sync two separate iPhones on the same computer?

    How can I sync two separate iPhones on the same computer?

    How to use multiple iPods, iPads, or iPhones with one computer

  • How can I maintain two tables content at the same time with SM30

    Hi all,
    I created two customizing tables that I would like to link together for maintenance in SM30. Table 1 is the header and table 2 can have multiple detail records.
    They are linked via the ID key field. I would like to run the Table Maintenance Generator on the first table in SE11 and be able to maintain both table data at the same time in SM30.
    How can I do that without any ABAP programming? Should I use Append or Include structure or else?
    Thank you for giving as much detail as possible.
    Regards,
    Sylvain

    Hi,
    You cant do it w/t abap programing.
    You can code in "EVENT" to achive the same.
    Open table maintainance generator of first table through se56 or se11.
    follow the path: environment>Modification>Event.
    Select sutaible event from drop down like Before Save... and do coding.
    In this way data will be saved in second table automatically when you save in first table.
    In case of any query, please revert.
    regards,
    Dhan

  • How can i deploy two different versions of the same application on the same server??

    I have two different versions of an application. One is a released version. And another version under development. I need to port this version of the application to the same server. I'm using the same classes and packages(except for some new ones). Is it sufficient if i change the name of my ear(application name). Or should i change my code also.

    Hi
    You can repackage the new versions of ear,jar and war with different names. I hope that should work well.
    Cheers
    -pradeep

  • How can I put two icloud accounts in the same pc?

    Hallo, I have two icloud accounts, one for me and another for my wife, and I would like to put the two accounts in the same pc, because I want to share all the photos of the two accounts with the pc automatically, but I do not know how to do this. The icloud panel only let me to put one account, and if I want to put another account I have to put out before the first account.

    I found some clues last week in these linkes.
    http://forum.java.sun.com/thread.jspa?threadID=657406&tstart=150
    http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/jcp.html#java
    Which has the contents like the below:
    Example:
    Assume you are running on Microsoft Windows with Microsoft Internet Explorer, have first installed version 1.4.2, then version 5.0, and you want to run 1.4.2.
    Go to the j2re1.4.2\bin directory where JRE 1.4.2 was installed. On a Windows default installation, this would be here: C:\Program Files\Java\j2re1.4.2\bin
    Double-click the jpicpl32.exe file located there. It will launch the control panel for 1.4.2.
    Select the Browser tab. Microsoft Internet Explorer might still appear to be set (checked). However, when 5.0 was installed, the registration of the 1.4.2 JRE with Internet Explorer was overwritten by the 5.0 JRE.
    If Microsoft Internet Explorer is shown as checked, uncheck it and click Apply. You will see a confirmation dialog stating that browser settings have changed.
    Check Microsoft Internet Explorer and click Apply. You should see a confirmation dialog.
    Restart the browser. It should now use the 1.4.2 JRE for conventional APPLET tags.
    I tried the method of change the control panel but they did not work either.
    Any other helps?
    Thanks in advantage.
    Message was edited by:
    daiwill

  • How can I use two tabular forms on the same page.

    I have create one tabular form in page and try to create second tabular form so
    it gives below error.
    1 error has occurred Updatable SQL Query already exists on page XXXXX.
    You can only add one updatable SQL query per page. Select a different page.

    I can get this to work but the page is submitted, either when I use a button with URL link or from a link on a display only text field.
    Is this how it is supposed to work? I thought it was supposed to work just on the browser so it is fast.
    IGNORE THIS!
    =============================
    I resolved it easily by modifying the URL from f?p=blah blah to #LINK_NAME
    Message was edited by:
    user530800

  • Can I use two different scales in the same graph on LabVIEW5.11

    I found that this can be done in LabView6i but I'm using 5.11. Can I do that also?

    ctbiu,
    After playing around with LabVIEW 5.1.1, it appears that the addition of a second scale was a new feature introduced into the graph and chart controls in LabVIEW 6i. It does not look possible in LabVIEW 5.1.1. If you need this functionality, I would suggest upgrading to LabVIEW 6.1, the current version of LabVIEW.
    Randy Hoskin
    Applications Engineer
    National Instruments
    http://www.ni.com/ask

  • How do i sync two different ipads to the same computer, but maintain two seperate list of apps?

    How can I sync two seperate ipads to the same computer without the apps from one ipad being loaded on the other?

    Do this for each device. You can do this with all iTunes content as well. Apps, music, photos, books, movies - everything. You can have unique content on all of your devices.
    You may also want to turn off auto sync so that you do not have to wait for the iPad to sync and then go back and make these changes.
    Launch iTunes and go to Edit>Preferences>Devices - check the box at the bottom.... Prevent iPods, iPhones ....
    Then set up your sync preferences like this using Apps as the example.
    Connect the iPad to the computer and launch iTunes.
    Click on the iPad name on the left side under devices.
    Click on the Apps Tab on the right.
    Click on all of the apps that you want to sync to that iPad
    Click on the Sync Apps Heading.
    Click on Apply in the lower right corner of iTunes
    You may want to uncheck Automatically Sync New Apps under the Sync Apps list

  • Hi, we have two iphones with two accounts.  The apple tv automatically syncs with one account to play music from the iphone to apple tv.  How can I use my iphone to do the same?

    Hi, we have two iphones with two accounts.  The apple tv automatically syncs with one account to play music from the iphone to apple tv.  How can I use my iphone to do the same?

    Our experience is a little different, we have different iTunes accounts for different family members, each family member has their own iTunes library on their own mac, each mac uses my Apple ID for homesharing and we are able to play purchased content from each library on the Apple TV.

  • Can you have two itunes accounts on the same computer?

    Can you have two itunes accounts on the same computer and if so how do you access them without syncing each others music?

    Yes. Use separate iTunes libraries(launch iTunes with the Shift(Windows) or Option(Mac OS X) key held down as needed), or different user accounts on the computer.
    (100648)

  • I am uploading receipts using the PURCHASE_ORDER_RECEIPT EIP.  When I upload serialized assets each one is processed as a separate receipt (receiver_id). How can I have these all aggregated on the same receipt?

    I am uploading receipts using the PURCHASE_ORDER_RECEIPT EIP.  When I upload serialized assets each one is processed as a separate receipt (receiver_id). How can I have these all aggregated on the same receipt?
    Is there a parameter I should be using in the XML or is there a setting in Peoplesoft that will accomplish this?
    Jim

    sundy.liu wrote:
    Unfortunately however, even with the TCP tweaks enabled, I still only get a little over 1 Gb/s through the two aggregated Gig ports. It seems as though the aggregation is only using one port, though MRTG graphs of the two switch ports do in fact show that they are both being utilized equally, essentially splitting the 1 Gb/s speed between
    the two ports.
    Problem with the server? switch? Aggregation software? All the above? At any rate, I seem to be missing something.. Any help regarding this issue would be greatly appreciated!If you're only running a single stream, that's all you'll see. Teaming/aggregating doesn't make one stream go faster.
    If you ran two streams simultaneously, then you should see a difference between a single 1G interface and an aggregate of two 1G interfaces.
    Darren

  • How to sync with two computers not at the same time, I'm registerd with one computer

    How to sync with two computers (not at the same time), I'm registered with one computer and am trying to connect with second computer with same iPhone. To sync the first time with the second PC "Firefox Sync Option tells me Create New account or Connect, when I connect it gives me a Passcode and on iPhone it also gives me a Passcode, than how do I connect? Both the iPhone and PC gives me a Passcode and have now idea what to do with them.
    Where do I find my Sync Key ? so I can install manually if it works ?

    Use the Sync Key ''(Recovery Key)'' from the PC that you used to initially setup your Firefox Sync service, when setting up that 2nd PC with Sync. You need to use '''Add a device''' to setup the 2nd and subsequent devices on a Sync account. <br />
    https://support.mozilla.com/en-US/kb/add-a-device-to-firefox-sync

  • Can we create two dashboard prompts for the same column in the samepage

    hi ,
    can we create two dashboard prompts for the same column on the same page,
    I have a date column and I am trying to create 2 dashboard prompts on the same page one as from date and the other one as to date.Is this possible to create.When I am trying to create it is giving me error like cannot use same column for creating the prompt
    Any suggestions or ideas

    863997 wrote:
    hi ,
    can we create two dashboard prompts for the same column on the same page,
    I have a date column and I am trying to create 2 dashboard prompts on the same page one as from date and the other one as to date.Is this possible to create.When I am trying to create it is giving me error like cannot use same column for creating the prompt
    Any suggestions or ideasYou are correct. You cannot build two prompts on the same column. Use this link for instructions on how to build a "between prompt" because of this fact:
    http://oraclebizint.wordpress.com/2008/02/26/oracle-bi-ee-101332-between-prompts-for-date-columns-using-presentation-variables/

  • HT5012 Can I install two root certificates with the same name in iPad?

    Can I install two root certificates with the same name in iPad?

    Antaeus00 wrote:
    I tried sending a request for help,
    But did you succeeed in sending a request for help?
    Did you receive a response? How long has it been since you sent a request?
    but I need someone with more authority to talk to.
    There is no one with more authority than iTunes store support. We herem are only users.

Maybe you are looking for

  • User-Defined Data Type (Data Transfer Objects) is null

    hi i try to access a nested complex datatype over blazeds. i always see that the second level of the  complex datatye is NULL but the other data's like String are ok. here an example: as you can see TT1 has a member TT2, and a String TT2 has a member

  • If I want to make a single-frame importer, e.g. - for WebP image format, do I need to implement an SDK importer plugin? Are there any examples?

    The title says it all really. Was wondering if there's a simpler interface to implement which does not contain video or audio, but just a still frame image. I don't care about exporting this format from Premiere, just being able to read a single fram

  • Selling a 2007 Mac Pro

    I'm getting ready to sell my 2007 Mac Pro. I've researched the process of cleaning the disk and came across a posting that included a link to a Safe Mac article entitled "How to prepare your Mac for sale" which recommends using the original install d

  • Switching Ipod mini from Windows to Mac w/o losing songs!!!

    I just bought a new MAC and have spent the last two days trying not to lose my songs on my IPOD as I move it to my new MAC. How can I do this? I know how to format it to MAC, but obviously will lose all my songs when I do so. Ideas?

  • Problem with UI State !!! URGENT

    I have a component Like a UITabbedPane and I have decided to store the selectedPane in the UI state. I have implemented the StateHolder interface on the UITabbedPane. Through the TabbedPaneRenderer i also render a hidden field that stores the current