URGENT!!! How to plot x-axis and y-axis in a graphic?

Good nigth!
I have to do a work in what I've to plot a Spline given some values enter by the user.
I just know how to plot the Spline, but now I have to plot it with the x-axis and y-axis, and the associated values.
I'm in a big trouble! I'm in a hurry.
I will be thankful if anyone can give me a code that works.
I need this to finish a work that I have to deliver in a few weeks.
Please, help me!!!
Katia.

/**you can start simple and enhance as you progress* /
Point[] pnts=new Point[100];
read(pnts.x);//find suitable input reader!
read(pnts[i].y);
and loop until all points are entered
now you can use the array of points to draw lines from
i=0 to i=1
i=1 to i=2

Similar Messages

  • Urgent : how to calculate sub total and grand total in smart forms

    Hi Friens..how to calculate sub total and grand total in smart forms..How to print them in smart forms...Also kindly explain how to handle events in smart forms..Thanks in advance

    Re: Subtotal with Table Node in smartforms

  • Urgent - How to join multiple facts and dimensions in OBIEE rpd??

    Hi,
    In my RPD I have 3 facts and 4 dimensions and the joins defined are as below
    Physical layer - All joins are FK and inner (1:N)
    FACTA-------------- DIM_TIME, DIM_CUST,DIM_CAL
    FACTB-------------- DIM_TIME, DIM_CUST,DIM_CAL
    FACTC-------------- DIM_TIME, DIM_CUST,DIM_CAL, DIM_XYZ
    BM layer - All joins are complex, inner
    The logical table F1 pulls columns from FACTA, FACTB and FACTC . Complex join exists between all 4 dimensions DIM_TIME, DIM_CUST,DIM_CAL, DIM_XYZ to logical table F1.
    Issue: I need to build a report with $ column from FACTA, FACTB and FACTC and need to add filter conditions using columns from DIM_TIME, DIM_CUST,DIM_CAL, DIM_XYZ.
    However when ever I add a filter condition from DIM_XYZ the physical query generated is not generating code to access data from FACTA and FACTB. Instead it is subsituting a NULL and just pulls data frm FACTC.
    My Questions: What is the best way to build the physical and BMM layer using FACTA, FACTB,FACTC, DIM_TIME, DIM_CUST,DIM_CAL and DIM_XYZ??
    I need to resolve this issue ASAP so any help is appreciated. Thanks
    Edited by: user11935561 on Feb 10, 2010 6:27 AM
    Edited by: user11935561 on Feb 10, 2010 6:28 AM

    You can find the same issue in
    Logic of queries in OBIEE
    or
    Connection between 2 fact tables
    Follow the link
    http://there-n-back-again.blogspot.com/2009/04/oracle-analytics-how-to-report-over-non.html
    Put 'All' or 'Total' at levels for dim_xxx for those facts you need in your report from facta and factb
    Regards
    Nicolae

  • Help-urgent - how to update service pack and apply patches for ADS

    Dear all,
       I've just download the sp 11 and the patch ,how should i update my ADS? I've try to search the forum but to no avail. Pls advise,thanks.
    Regards,
    Joan

    Hi Joan,
    To deploy an SCA or SDA, proceed as follows:
          1. Make sure you have downloaded the SCA or SDA from SAP Service Marketplace.
          2. Start the SDM GUI. To do this, execute the following file:
                a) Windows: RemoteGui.bat in folder \usr\sap\<SID>\<instance>\SDM\program
                b) Unix: RemoteGui.sh in folder /usr/sap/<SID>/<instance>/SDM/program
          3. The SDM GUI screen appears.
          Note: With SAP Web Application Server 6.30 the SDM server is started whenever you start the SAP system. To check whether the SDM server is running, use the tools SAP Management Console (Windows) or jcmon (UNIX).
          4. Choose "SDM Gui -> Login" or the icon "Connect to SDM Server". The dialog box "Enter Login Information for SDM Server" appears.
          5. Enter the following information:
                a) Password
                The initial password is "sdm" (without quotes).
                b) User description (optional)
                c) Hostname
                d) Port
                With instance number 00, the default port number is 50018. If your instance number is different from 00, the port number changes to
                Port = 50018 + 100 x <instance number>.
                You have to calculate the new port number and enter it manually.
          6. Choose "Login". The SDM GUI appears.
          7. Choose tab "Deployment".
          8. Choose "Add SCA/SDA to Deployment List (Local File Browser)". A file selection screen appears.
          9. Select the SCA or SDA file you would like to deploy and choose "Next" to read the information on the following screens.
          10. Choose "Next" until the "Start" button appears.
          11. Choose "Start". After the SCA or SDA has been completely deployed, a success message appears.
          12. Choose "Confirm" to return to the SDM GUI.
          13. When you have finished work, log out from the SDM server. Choose "Deployment -> Logout" or the icon "Disconnect from SDM server" for this.
    If this answers your question, please mark the question accordingly and do award points if helpful.
    Regards,
    Arafat

  • NOKIA C3-00 Urgent how to avoid activate GPRS and ...

    Hi
    I just got this mobile phone from Rogers last week. I have to say its connection function is cool. But I am so scared by the appearance of G and E on the top of screen when I am out of the Wifi zone that I connected before. At first, I set  the mail and facebook account as automatically refresh. But now, I have to turn them off before I am clear how to completely avoid using GPRS or E (actually I don't know what does this E mean, but someone tell me this means my operator will charge me as well).
    I tried every setting on my phone, but still I am not quite sure if that will work or not. I wish to set the account of mail and facebook as automatically refresh, but I don't want it to use GPRS or E.
    I checked the website and found many people are complaining about this point, and no body could give a perfect and guaranteed answer. So if some one from the NOKIA professional team can give me the answer, I will be very appreciated.
    I don't want those GPRS data to eat up my bills. So please!!!
    Thank you so much.

    You can find the phones configurations under: menu>settings>configuration>default config sett. Word of warning operators settings typically include all the settings (MMS, GPRS, Browser etc.) so deleting them could cause some of the phone operations to stop working (like MMS).
    One other possibility is to make a access point settings which is garbage to do this go to: menu>settings>configuration>personal conf. sett.>add>access point>access point settings>bearer settings>packet data acc.pt. and put something garbage there and then save the settings and make them default
    If  i have helped at all a click on the white star below would be nice thanks.
    Now using the Lumia 1520

  • URGENT: How to obtain workbook id and worksheet id

    Please let me know in which EUL tables workbook id and worksheet id of report is stored in discoverer.

    Workbook id is stored in EULx_DOCUMENTS as DOC_ID.
    but unfortunately you can't get the worksheet id as the whole workbook is stored as a single object (long raw) in this table.

  • How to plot 3D graph

    I try to plot data like this picture attached . is there anyone who know how to plot three axis on same graph  .  And point of Three peak value is marked as point.
    Help me. is it possible in labview? See JPG file
    Attachments:
    SDC11183.JPG ‏2664 KB

    Duplicate
    Just stick to one thread and be patient - someone will be able to help, but the vast majority of people here are unpaid volunteers.
    -CC
    "If anyone needs me, I'll be in the Angry Dome!"

  • How to add Diagonal Axis on 2D graph

    I try to plot data like this picture attached . is there anyone who know how to plot three axis on same graph  . Here, Axis is added diagonally. and point of Three peak value is marked as point.
    Help me. is it possible in labview? See JPG file .
    Attachments:
    SDC11183.JPG ‏2664 KB

    Hi Wenjun,
    Thank you for the idea.
    Is there any way to display label for only one measure out of two measures defined?
    Thanks & Regards,
    Pruthvi G N.

  • Plot line, bar and pie chart

    Anyone can let me know where can i learn or tutorial on how to plot line, bar and pie chart by using java2D... (no third-party software)....
    thanks in advance.

    Here's a pie chart app I made for an earlier question:
    import java.awt.*;
    import java.awt.font.*;
    import java.awt.geom.*;
    import javax.swing.*;
    public class PieChart {
      public static void main(String[] args) {
        int[] data = {
          18, 95, 102, 87
        PieCharter pie = new PieCharter();
        pie.enterData(data);
        JFrame f = new JFrame("Pie Chart");
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.getContentPane().add(pie);
        f.setSize(400,300);
        f.setLocation(300,300);
        f.setVisible(true);
    class PieCharter extends JPanel {
      int[] data, percents;
      int dataTotal;
      final int
        PAD = 25,
        R_PAD = 5;
      public PieCharter() {
        setBackground(Color.white);
      public void paintComponent(Graphics g) {
        super.paintComponent(g);
        Graphics2D g2 = (Graphics2D)g;
        g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                            RenderingHints.VALUE_ANTIALIAS_ON);
        Font font = new Font("lucida sans unicode", Font.PLAIN, 16);
        g2.setFont(font);
        FontRenderContext frc = g2.getFontRenderContext();
        int width = getWidth();
        int height = getHeight();
        int cx = width/2;
        int cy = height/2;
        int dia = (int)Math.min(width, height) - 2*PAD;
        g2.draw(new Ellipse2D.Double((width - dia)/2, (height - dia)/2, dia, dia));
        // draw zero datum
        double radians = 0;
        int x = cx + (int)((dia/2) * Math.cos(radians));
        int y = cy - (int)((dia/2) * Math.sin(radians));
        g2.draw(new Line2D.Double(cx, cy, x, y));
        String s;
        int dataWidth, dataHeight, deltaR, rXInc, rYInc;
        for(int i = 0; i < data.length; i++) {
          radians += 2*Math.PI * data/dataTotal;
    x = cx + (int)((dia/2) * Math.cos(radians));
    y = cy - (int)((dia/2) * Math.sin(radians));
    g2.draw(new Line2D.Double(cx, cy, x, y));
    s = String.valueOf(percents[i]) + "%";
    dataWidth = (int)font.getStringBounds(s, frc).getWidth();
    dataHeight = (int)font.getLineMetrics(s, frc).getAscent();
    deltaR = (int)Math.sqrt(dataWidth*dataWidth + dataHeight*dataHeight)/2 + R_PAD;
    rXInc = (int)(deltaR * Math.cos(radians));
    rYInc = (int)(deltaR * Math.sin(radians));
    x += rXInc;
    y -= rYInc;
    x -= dataWidth/2;
    y += dataHeight/2;
    g2.drawString(s, x, y);
    s = String.valueOf(data[i]);
    dataWidth = (int)font.getStringBounds(s, frc).getWidth();
    dataHeight = (int)font.getLineMetrics(s, frc).getAscent();
    x = cx + (int)((dia/4) * Math.cos(radians - 2*Math.PI * data[i]/(2*dataTotal)));
    y = cy - (int)((dia/4) * Math.sin(radians - 2*Math.PI * data[i]/(2*dataTotal)));
    x -= dataWidth/2;
    y += dataHeight/2;
    g2.drawString(s, x, y);
    private void prepareData() {
    for(int i = 0; i < data.length; i++)
    dataTotal += data[i];
    percents = new int[data.length];
    int dataPlus = 0;
    for(int i = 0; i < data.length; i++) {
    dataPlus += data[i];
    percents[i] = Math.round(100 * dataPlus/dataTotal);
    public void enterData(int[] data) {
    this.data = data;
    prepareData();
    repaint();

  • How to plot Dual Y-axis in BI Publisher chart

    Is it possible to plot dual axis in BI publisher chart?
    If I want to plot
    x-axis => Month
    y-axis(left) => Sales(in USD)
    y-axis(right) => Quantity
    how can I do in BIPublisher. Scale of Sales will not be suitable to plot Quantity.
    Please suggest.
    Thanks & Regards.

    for example : see seriesItems. and assignedTo
    <Graph seriesEffect="SE_AUTO_GRADIENT" graphType= "BAR_VERT_CLUST2Y">
    <Y1Axis axisMinAutoScaled="false" axisMinValue="0" axisMaxAutoScaled="true" majorTickStepAutomatic="true"/>
    <Y2Axis axisMinAutoScaled="false" axisMinValue="0" axisMaxAutoScaled="true" majorTickStepAutomatic="true"/>
    <LegendArea visible="true" position="LAP_BOTTOM"/>
    <PlotArea fillColor="#0000FF"/>
    <SeriesItems>
    <Series id="0" color="#B0C4DE" borderColor="#000000" markerType="MT_BAR" assignedToY2="false"/>
    <Series id="1" color="#0000C0" borderColor="#000000" markerType="MT_BAR" assignedToY2="false"/>
    <Series id="2" color="#B0C4DE" markerType="MT_MARKER" markerShape="MS_NONE" assignedToY2="true" lineWidth="0"/>
    <Series id="3" color="#0000C0" markerType="MT_MARKER" markerShape="MS_NONE" assignedToY2="true" lineWidth="0" />
    </SeriesItems>
    <LocalGridData colCount="{count(xdoxslt:group(.//G_1, 'MONTHANDYEAR'))}" rowCount="4">
    <RowLabels>
         <Label>Baseline (bar)</Label>
         <Label>Actuals (bar)</Label>
         <Label>Baseline cumulative (line)</Label>
         <Label>Actual cumulative (line)</Label>     
    </RowLabels>
    <ColLabels>
    <xsl:for-each-group select=".//G_1" group-by="MONTHANDYEAR">
    <Label>
    <xsl:value-of select="current-group()/MONTHANDYEAR"/>
    </Label>
    </xsl:for-each-group>
    </ColLabels>
    <DataValues>
    <RowData>
    <xsl:for-each-group select=".//G_1" group-by="MONTHANDYEAR">
    <Cell>
    <xsl:value-of select="sum(current-group()/BUDGET_VALUE_DELTA[.!=''])"/>
    </Cell>
    </xsl:for-each-group>
    </RowData>
    <RowData>
    <xsl:for-each-group select=".//G_1" group-by="MONTHANDYEAR">
    <Cell>
    <xsl:value-of select="sum(current-group()/REVENUE_AMOUNT[.!=''])"/>
    </Cell>
    </xsl:for-each-group>
    </RowData>
    <RowData>
    <xsl:for-each-group select=".//G_1" group-by="MONTHANDYEAR">
    <Cell>
    <xsl:value-of select="sum(current-group()/CUMULATED_SBP2[.!=''])"/>
    </Cell>
    </xsl:for-each-group>
    </RowData>
    <RowData>
    <xsl:for-each-group select=".//G_1" group-by="MONTHANDYEAR">
    <Cell>
    <xsl:value-of select="sum(current-group()/ACTUAL_CUMULATED[.!=''])"/>
    </Cell>
    </xsl:for-each-group>
    </RowData>
    </DataValues>
    </LocalGridData>
    </Graph>

  • How to Plot number and string in one row (data logger counter) ?

    hi all i made data log quantity using Digital Counter via modbus to monitoring quantity and reject that has and Name Operator, Machine and Part Number.
    i have problem about plot the number & string in one row, as shown on the picture below :
    how to move that string on one row ? i attach my vi.
    Thanks~
    Attachments:
    MODBUS LIB Counter.vi ‏39 KB

    Duplicate and answered - http://forums.ni.com/t5/LabVIEW/How-to-Plot-number-and-string-in-one-row-data-logger-counter-via/m-p...

  • URGENT:HOW TO COMBINE CLUSTER AND TRANSPARENT TABLE..WITHOUT USING FOR ALL

    how can we join bkpf and bseg without using FOR ALL ENTRIES.HOW DO I COMBINE THE 2 TABLES SO THAT I GET BETTER PERFORMANCE.
    START-OF-SELECTION.
    SELECT bukrs belnr gjahr budat FROM bkpf INTO TABLE i_bkpf
    WHERE bukrs = p_bukrs AND "COMPANY CODE
    gjahr = p_gjahr AND "FISCAL YEAR
    budat IN s_budat. "POSTING DATE IN DOC
    IF sy-subrc = 0.
    SELECT bukrs belnr gjahr hkont shkzg dmbtr FROM bseg INTO TABLE
    i_bseg FOR ALL ENTRIES IN i_bkpf
    WHERE bukrs = i_bkpf-bukrs AND "COMPANY CODE
    belnr = i_bkpf-belnr AND "A/CING DOC NO
    gjahr = i_bkpf-gjahr AND "FISCAL YEAR
    hkont = p_hkont. "General Ledger Account"
    IF sy-subrc = 0.
    SELECT bukrs belnr gjahr hkont shkzg dmbtr FROM bseg INTO TABLE
    i_bseg1 FOR ALL ENTRIES IN i_bseg
    WHERE bukrs = i_bseg-bukrs AND "COMPANY CODE
    belnr = i_bseg-belnr AND "A/CING DOC NO
    gjahr = i_bseg-gjahr. "FISCAL YEAR
    ENDIF.
    ENDIF.
    IF NOT i_bseg1[] IS INITIAL.
    LOOP AT i_bseg1.
    IF i_bseg1-hkont = p_hkont AND i_bseg1-shkzg = 'S'.
    v_sumgl = v_sumgl + i_bseg1-dmbtr.
    ELSEIF i_bseg1-hkont = p_hkont AND i_bseg1-shkzg = 'H'.
    v_sumgl = v_sumgl - i_bseg1-dmbtr.
    ELSEIF i_bseg1-hkont NE p_hkont .
    IF i_bseg1-shkzg = 'H'.
    i_bseg1-dmbtr = - i_bseg1-dmbtr.
    ENDIF.
    i_alv-hkont = i_bseg1-hkont.
    i_alv-dmbtr = i_bseg1-dmbtr.
    APPEND i_alv.
    v_sumoffset = v_sumoffset + i_bseg1-dmbtr.
    ENDIF.
    ENDLOOP.
    regards
    Essam.([email protected])

    Hi Friend,
      I see your code.. there is no other way than using for all entries for your situation.. how ever i saw ur code and a small recommandation in the change of code.
    SELECT bukrs belnr gjahr budat FROM bkpf INTO TABLE i_bkpf
    WHERE bukrs = p_bukrs AND "COMPANY CODE
    gjahr = p_gjahr AND "FISCAL YEAR
    budat IN s_budat. "POSTING DATE IN DOC
    IF sy-subrc = 0.
    if not p_hkont is initial.
    SELECT bukrs belnr gjahr hkont shkzg dmbtr FROM bseg INTO TABLE
    i_bseg1 FOR ALL ENTRIES IN i_bkpf
    WHERE bukrs = i_bseg-bukrs AND "COMPANY CODE
    belnr = i_bseg-belnr AND "A/CING DOC NO
    gjahr = i_bseg-gjahr. "FISCAL YEAR
    ENDIF.
    i_bseg[] = i_bseg[]1.
    delete i_bseg where hkont ne p_hkont.
    else.
      Your existing logic...
    endif.
    In this way you can avoide writing two selects on bseg..
    Thanks
    Mahesh

  • Urgent!! How to update Planning book and change when planning will start

    Hi Gurus,
                 I had configured the system and we can initilize planning area every month and my question is 
    1. How to update planning book and change planning start date every month?
    Thanks a Lot
    Regards,
    Raj

    Hi,
    In the planning book-dataview, you will assign the time bucket profile, and will be on rollling basis. if you want the forecast profile on rolling basis, maintain the forecast and history horizon as periods then that will also be on rolling basis.
    Regards,
    Raj

  • Urgent pls ---- How to install SAP XI and check SLD configuration

    Hello,
    Pls send me links/pdfs/how to guide links  --- to install SAP XI and check SLD configuration.
    Regards

    Hi,
    A copy:
    Links:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/73527b2c-0501-0010-5398-c4ac372c9692
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/6bd6f69a-0701-0010-a88b-adbb6ee89b34
    Follow these steps while installing XI:
    1. Windows server or advanced server with latest service patch.
    2. IE 6.0 with latest service patch
    3. Install Microsoft office and winzip, acrobat
    4. Install JDK with version 1.4.2_03 or above with the corresponding JVM
    5. Install the SAP GUI 6.20
    6. Make sure that you have hard disk space of 10 GB in C drive and 50 GB in the installation drive.
    7. Make sure the virtual memory is between 512 and 1594 or above for the installation drive.
    8. Copy the dumps of following DVDs into the installation drive.
    • Installation Master DVD
    • Installation Export
    • Additonal Components for SAP BW/SAP XI,SAP MI,SAP KW
    • SAP Web As Java
    9. Start the installation from the DVD dump Installation Master DVD.
    10. When installing the ABAP Database the SID of the oracle default database should be different the ABAP database SID.
    U can go through the Installtion Guides for Installing XI from http://service.sap.com/instguides (SR1 installation)
    u can also refer to service.sap.com/platforms to see the available platform on which XI can be installed. ( Windows/linux/UNIX)
    or you can even go through this weblog which clearly talks to you about XI installation
    XI installation: https://websmp202.sap-ag.de/~sapidb/011000358700009389172004E.PDF
    In addition to this installation guide you also need to download the XI configuration guide which is very useful for technical configurations of various adapters and XI system.
    At the same place you will also get the XI configuration guide e.g XI30ConfigGuideSPS11.pdf.
    U can also download SAP Exchange Infrastructure 3.0 SR1 Installtion Guide from the articles scetion.
    ABOUT XI :
    If it’s just that you wanted to know more about sap xi....then the information below should definitely help you.
    The best way to learn XI would be to make the maximum use of XI from its forums, weblogs, presentations, etc in SDN.
    First I thought I will just give u the basic steps involved in doing any scenario in XI. This is very essential for a beginner.
    First of all you would need to define your product, software component, business system and configure the technical landscape in the sld.
    You then go on to create the objects in the repository, you import your software component here and then begin your design steps. To import your RFCs n Idocs if you require any before proceeding.
    Then under the name space which you want, you go on to define your data types, message types and message interfaces.
    Then you do your message mappings where you specify your source and target message types and the relation between them, then you do your interface mapping. If you are using a BPM, you do the integration process.
    Once you have this done, you will have to move to the directory, here is where you define how you use the objects and how you configure them to work as a scenario.
    You assign your business system to the configuration scenario which you have created, and create the communication channels. Then you go on to configure the receiver determination, interface determination, and the sender and receiver agreements. Once you’re done you will have make sure you activate your objects. The exact parameters steps depend on what kind of scenario you are implementing.
    You can use sxmb moni or the runtime workbench to monitor the entire scenario which you have done.
    Also I would suggest this link on SAP help for any info that you want on XI,
    http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
    <b>
    Cheers,
    *RAJ*</b>

  • How to change z axis limits programmatically

    Could you show how to change z-axis limits (min and max) programmatically in the attached VI?  It is a simple VI that uses the 3D plot.  Would it be the same on x and y axes as well?  Would really appreciate your insights.  Thanks.
    Solved!
    Go to Solution.
    Attachments:
    Untitled.vi ‏28 KB

    Hello,
    I don't have LV 7 installed so I can't post the VI sorry.. here's the short answer to your question, you have to use property and method nodes from the ActiveX palette (see screen shot), item 0 is scale X, item 1 is scale Y and item 2 is scale Z.
    More generally there are loads of threads dedicated to 3D graph issues, just do a forum search .
    Hope this helps
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"

Maybe you are looking for