Scale for co-ordinate axes

I want to draw cordinate axes(X and Y) along the edges of my drawing area. I want that the cordinate axes are scaled. I mean number should appear at regular interval( user defined). Is there any predefined method to do that. Or I have to draw axes as line2D and manually write numbers over it. Or is there any other solution.
I will be very thankful for the help provided.

Take a look at the Java 2 Tutorial under >UISwing>Components>Example-Swing, there is some sample code on ScrollDemo.java that might do the job.

Similar Messages

  • Axis scale for scatter plots

    I'm trying to create a specialized scatter plot, which functions similar to Excel's scatter plot. I'm having problems determining what the min and max values should be for the axes. I would like the program to determine from the input data what the initial min and max values should be on the x- and y-axis, the user can adjust later.
    So, I don't want the program to just look at the maximum value imported and round up. For instance, data = {523.7, 514.4, 271.8, 128.5}. The max value is 523.7, round up to 524. Instead, I would like to program to make 600 the largest value on the axis, because that makes it nice round number for the user to view the dataset.
    Then, I thought it really depends on the range of the data. For instance, data = {523.4, 523.8, 523.2, 522.8, 523.9}. Here, the range is very small, so it doesn't make sense to have 600 the largest value on the scale. The largest value should be 524 or 525, and the small value on the axis scale should be 521 or 522.
    Has anyone else ever worked with this problem, or have a good solution? I would really appreciate it, I've spend way too many days working on this.
    Thank you,
    Joe

    This is off the top of my head and based on a slight variation of your data.
    data: 52.34, 52.38, 52.32, 52.28, 52.39
    min=52.28 max=52.39 range=0.11
    Looking at the range we see it is "on the order of" 0.1. Ie, it is closer to the next lower power of 10 (0.1) than it is to the next higher one (1.0). So we round min down to the next lowest multiple of 0.1 (52.2) and round max up (52.4). 52.2 and 52.4 can serve as the nice numbers.
    The range is just a little bigger than a power of 10, so it might be a good idea to check what happens when it's a little less.
    data: 135 226 141 143 etc
    min=135 max=226 range=91
    range is on the order of 100, and the nice numbers are 100 and 300.
    As a variation on this strategy if we always find the power of 10 below the range (10 in the second example) we get a tighter fit but the numbers are slightly less nice - 130 and 220.
    (I'm pretty sure I've seen - and used! - some java software from the Internet somewhere to find the best scale for axes, so it might pay to look around)
    Had to edit my second example and, while I was waiting, found what I have used for this sort of thing: http://geosoft.no/software/index.html (The NiceNumbers class - it finds numbers along a range suitable for major and minor "ticks" but, if memory serves me correctly it extends the range so that the ends are nice too.)

  • Custom scale for counter input?

    Hello everyone,
    Is it possible to create a custom scale for a counter input? I saw there is a feature to allow input Custom Scale Name to the Channel Property Node. However, when I tried to create a custom scale to input to the channel, I got this error
    Error -200212 occurred at DAQmx Read (Counter DBL 1Chan 1Samp).vi:1
    Property: CI.MeasType
    Corresponding Value: Count Edges
    Property: CI.AngEncoder.Units
    Corresponding Value: From Custom Scale
    Channel Name: CountEdges
    Task Name: MyCountEdgesTask
    Do you know what is the problem with it? Thank you

    How do you have the channel set up? Can you attache the VI's that you are using? Is this a global virtual channel?
    Tim
    Johnson Controls
    Holland Michigan

  • Pricing condition record Scales for width

    Hi,
    Wanted your expertise, as we are trying to implement scale for a pricing condition as below. Please advise which scale type to be used I think we should use D as interval graduated scale, but my query is my width value stored in material master and once order read it should pick the price as per interval . Need to know when i select type D it should not do graduation in same sales order for other lines. I mean if order has two line item with same material and third line with different material. system should calculate first line price 0.09 and second line should also pick price 0.09 as width is within 0 to 1
    third material should price 0.13
    please advise how this is posible because i think gradutaion type adds previous line record value, which we don't want.
    Mat 1 - 0.7 in
    Ma t2 - 0.9 in
    Mat 3 - 2.5 in
    0.000 - 1.000 in 0.090
    1.010 - 2.000 in 0.110
    2.010 - 3.000 in 0.130
    3.010 - 4.000 in 0.140
    4.010 - 5.000 in 0.150
    5.010 - 6.000 in 0.160
    6.010 in 0.200
    thanks
    Niki

    My order has quantity 1 and sales unit of measure is PAC and material base unit of measure is FT. As if now maintained condition record scale in FT for the width.
    in additional data of material we have unit convertion as below
    1     FT     Foot     <=>     1     FT     Foot                                                                                1.722     1.566     LB     1.000     FT
    1,566     LB     pound, US     <=>     1,000     FT     Foot                                                                                0.000          0.639     FT
    3,600     PC     Piece     <=>     54,600     FT     Foot                                                                                0.000          15.167     FT
    100     PAC     Pack     <=>     54,600     FT     Foot                                                                                0.000          546.000     FT
                                   <=>                FT     Foot                                                                                0.000                   
    thanks

  • MM-PUR default scales for condition types for service (ME31K

    Hi,
    We have faced the following problem:
    The business case was, to have default scales for certain condition types for a service for a purchasing contract.
    We didn't find it in SAP, so we wrote an OSS. SAP answered that it's not possible now, nor in the future.
    So we decided to look around in SAP, and found out that it was half possible.
    I've abused the exit USEREXIT_XKOMV_BEWERTEN_INIT of program RV61AFZB.
    In this exit I provide the internal table staffel for program SAPMV13A with the correct information (via ASSIGN ('(SAPMV13A)STAFFEL[]') to <staffel>.)
    In this way, if a user adds a service, this exit will get reached and the scales are filled. If the user then clicks on conditions and then double clicks the condition type with the scales, all the default scales are shown to the user. If you then click on save, the next screen is the service screen, if you then click on save again, all the date is stored in the database. (bit of a work around, but this works)
    However, I can't figure out how to save the scales data, when you only add a service and then push the save button without viewing the conditions. Quite logically actually because I'm skipping two whole screens with pbo and pai modules, in these modules internal converting takes place.
    Has anyone encountered this problem before and how did you solve it then ?
    Alternatively what is the SAP standard way to add pricing condition scales on condition types of a service of a purchasing contract? As you know there is no BAPI yet to change/create a purchasing contract.
    I was thinking, to add the scales by updating the tables directly via ABAP, I know that's not a clean way to do it, although it isn't too risky.
    Kind regards, Rob Dielemans

    Dear Rob,
    Is this solution properly working for you?
    I think my problem is similar: purchasing outline agreement (contract) refuses to apply relevant scale prices in the item line. Always uses the first price - without considering order quantity depencies.
    Regards,
    Tamás
    Edited by: Tamas Szabo on Mar 31, 2009 3:50 PM

  • Relative Time Scale for X-Axis when creating a Line Graph in CS3?

    Is there a way to get the APPROPRIATE RELATIVE scale for the X-Axis (Category) when you're using dates?
    Example:
    If this is my data set:
                        Group A          Group B
    01/03/99                1                5
    01/04/99                11                3
    01/05/99                6                12
    11/27/07                63                54
    If I plot this in Xcel, by default, each date (x-axis) will be spaced the same distance apart. However, there is a checkbox to "time-scale" the X-Axis which will place the dates relative to one another. In other words, if we're talking about a bar graph, the first three bars would be close together on the left side of the chart, and the 4th bar would be waaaaaay on the right side of the graph.
    So, below, if 'x' is a bar, I keep getting this in CS3:
    x     x     x     x
    I want to get this:
    x x x             x
    Get it?

    Is there a way to get the APPROPRIATE RELATIVE scale for the X-Axis (Category) when you're using dates?
    Example:
    If this is my data set:
                        Group A          Group B
    01/03/99                1                5
    01/04/99                11                3
    01/05/99                6                12
    11/27/07                63                54
    If I plot this in Xcel, by default, each date (x-axis) will be spaced the same distance apart. However, there is a checkbox to "time-scale" the X-Axis which will place the dates relative to one another. In other words, if we're talking about a bar graph, the first three bars would be close together on the left side of the chart, and the 4th bar would be waaaaaay on the right side of the graph.
    So, below, if 'x' is a bar, I keep getting this in CS3:
    x     x     x     x
    I want to get this:
    x x x             x
    Get it?

  • Dashboard scales for Incoming and Outgoing

    Is it possible to make scales for Incoming and Outgoing messages the same?
    Now it looks unnatural. See the picture: outgoing messages seems less than incoming (which is, of course, is not the case). 
    Understood, there are several metrics on one graph (counters, sizes, etc.). But it is really confusing if incoming and outgoing message counters in queue have different scales. (BTW It is not related to the error messages).
    Leonid Ganeline [BizTalk MVP]

    Hi Leonid,
    Thanks for your feedback.I will report this issue and post back.
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to create scales for conditions for rebate agreements?

    Does anybody know any function modules or bapis to create scales for rebate agreement conditions.I want to create entries in konm table where scales for conditions get stored.Also pls tell me how to link contributory volume by programaticaly?
    Thanks in advance

    Part of my question is answered .I could find parameter in BAPI_PRICES_CONDITIONS to create scales for conditions.But do anyone have any idea how to link contributory volume to conditions? i have conditions and also contributory volume? can anybosy send me some material which explains the contributory volume..atleast functionally?

  • Scenario : How to include scales for delivery schedule

    Hello,
    1.How to include scales for delivery schedule
    Example u2013 I have a total SA for 10000 EA for Rs 10 EA
                  i.     When SA line And GR  is for 0-100 system should take  Rs 10 EA
                 ii.     When SA line and GR is for 101-1000 System should Rs 9.50 EA
                 iii.     When SA line and GR is for 1001-5000 system should take Rs 9.00 EA.
    How to do ?
    Regards
    sapman man

    Hi,
    This you have to maintain in Scheduling agrement document itself.
    In scheduleing agreement (ME31L)--> Pricing Condition Icon.  if you select this there you can find the scales assignemnt in headel leavel icon. (F2).
    If assgin this will fllow in delivery schedule line.
    SAM

  • 2-dimensional scale for a pricing condition

    Hi,
    Need your Expertise please. We would like to implement 2-dimensional scale for a pricing condition.
    We have found a decision as use Reference condition type (RefAppl 'F').
    It works but we can't define Condition base value for the determination of value according quantity of item.
    Could you advise the decision... ?
    Thanks,
    Andrew

    Hi there,
    The base value can be set only for the maim condition type and not for the reference condition type.
    thanks
    Shanker

  • Percentage Scale for Appraisal

    Hi all,
    Good DAy!
    I want to know how system will calculate the result in percentage.
    The Senario is as follows:
    1. each criterian has 10 points  On Scale (1-10)
    Suppose there is 2 criterian so the system should calculate like
    If the total of two criterian is 15:
    15/20*100 = 75
    The system should give 75 as a result for this, but in my case it is not happenning.
    I have created two scales for this:
    1. 1-10 value scale (Quality) weight 1
    2. 1-100 value scale (quality)
    I have assigned each criterian 1-10 value scale and calculation is percentage based but it is not giving me the correct result.
    because system is calculating like - (Weight * Rating)
    Please suggest me the solution for this.
    Thanks & regards,
    Neeta

    Dear Sikandar,
                         I Check with my ABAPER this is not possible
    Please advised
    Regards
    MHPO

  • I don't know what is going on with the White Balance (WB) and LR.  I had no problem before but recently LR started to change the  WB as  it is importing photos.  I checked the color scale for my photos and LR and both are with sRGB.  Now instead of LR cha

    I don't know what is going on with the White Balance (WB) and LR.  I had no problem before but recently LR started to change the  WB as  it is importing photos.  I checked the color scale for my photos and LR and both are with sRGB.  Now instead of LR changing the WB it is giving me a second copy with a new WB.  Your advise is very much needed and appreciated.  Thank you.

    Can you show us a screen capture of this 2nd copy with a new WB in your Lightroom grid? Thanks
    Are these second copy photos by any chance photos that had been previously imported?

  • How to include scales for delivery schedule.

    Hello,
    How to include scales for delivery schedule.
    a.       Example u2013 I have a total SA for 10000 EA for Rs 10 EA
                                                                   i.      When SA line And GR  is for 0-100 system should take  Rs 10 EA
                                                                 ii.      When SA line and GR is for 101-1000 System should Rs 9.50 EA
                                                                iii.      When SA line and GR is for 1001-5000 system should take Rs 9.00 EA.
    Normaly SA will calculate Scales based on target qty, not delivery schedule qty?
    Regards
    sapman man

    Hello SAPman man ,
    Please read SAP Note 401941. This could be helpful depending on what Release you are running.
    SAP Note 401941 -  Incorrect price at time of GR
    I hope this information has been helpful for you.
    Best Regards,
    Frank

  • Collective Orders with GR & GI for sub-ordinate orders

    Hello,
    I am lookng for collective Orders where superior order and sub-ordinate ordes can be tagged together and at the sametime, I would like to GR for sub-ordinate Order which trigger Auto GI to superior Order. this feature is not available in collective orders.
    why I am looking for GR execution is that GR quantity changes for sub-ordinate order from one order to another order always. it needs to be actual.
    any work acound to satisfy this requirement?
    Thanks
    JK

    Hi JK,
    I have a doubt that whether this would be a business requirement. Say as per the BoM if there are 3 levels the last level was expected to be produced as 100 UoM but after production run the yield was 98 UoM or 105 UoM then how system will undertsand that it should post the GI of level 3 SFG2 as yield produced from the last Production/ Process order. But at the same time you need to do subsequent adjustment at SFG1 level also.
    This is highly dynamic situation thats why when you have multiple level of BoM and at each stage the chances of yield variation is high then its always better to create Production/ Process order of superordinate level of BoM when the lower level are produced, confirmed and available in the stock.
    Regards,
    Shoyeb

  • E-Recruiting- Scale for Questionnaires not apprearing

    Hi
    I have created a scale for Questionnaire in V_T77SK. On (E-Recruiting BSP screen) maintain the Question screen this particular screen is not appeared in drop down menu (against range). However, rest of the scales already configured are displayed.
    Am i missing any link .

    Hi Robin,
    have you refreshed the catagories after creating your new scale? This is necessary to make the new scale available in the bsp.
    The function is found in IMG under:
    SAP E-Recruiting -> Recruitment -> Applicant Tracking -> Questionnaire -> Update Categories
    Best Regards
    Roman Weise

Maybe you are looking for

  • How to configure oracle and ms-access db

    Hi All, I have a requirement to push data from the oracle to ms access. My oracle database is on the Unix server and ms access is on my local desktop. Is there a way to configure if so how to configure both the db? Basically I am wanted to make the m

  • Apache 2.4 problem with SSL

    hello, i have updated my configuration to apache 2.4, i replaced my httpd.conf with the pacnew one. I use mod_mpm_prefork.so. i can access regular websites (http) and php is ok. Nevertheless i have an handshake error when i try to access https websit

  • Can you do Green Screen/Blue Screen/Chroma Key on Adobe Premiere Elements 12 for mac?

    Can you do Green Screen/Blue Screen/Chroma Key on Adobe Premiere Elements 12 for mac?  If not, what are the alternatives?

  • Failed Disk Utility Process

    Has anyone ever received a FIRST AID FAILED Error message? If so what do you do to complete Disk Utility-Repair Permissions? Here's an image of what the error process: http://Y-OHTO-SGUK0Y.notlong.com/ Thanks in advance. Sammy

  • CX_SY_CREATE_DATA_ERROR  in SOLMAN 7.1

    Hi All, We are getting the "CREATE_DATA_UNKNOWN_TYPE" dump regularly in our solman7.1 system after the inital configration is completed. Attaching the log for your reference. Can someone please help to fix the issue ASAP. Category               ABAP