Sort x values highest to lowest in scatter plot?

I want to do a simple scatter plot, which actually works fine and looks like this:
The only problem is, I have to sort the x axis the other way round, starting with 24 copies going down to 10. Anybody got ideas?
C.

Hi C,
Would this work?
The method requires an auxiliary column in the data table and one edit to the chart. I added a second edit to the chart, adding weight to the connecting lines between data points, but that one is strictly cosmetic.
Auxiliary column in the table:
Insert a new column before column B. It will become column B.
Formula:
B2: =24-A
24 is the maximum value in column A. "A" references the column A cell on the same row as the formula.
Fill down to the bottom of column B. Results as shown. After creating the chart, this column may be hidden.
Chart:
Select cells B2:E7.
Select Scatter Chart from the Charts button.
When the chart is generated And still selected), click the gear icon at the top left of the selected cells and choose Share X values.
Select the box containing the x axis labels. Press delete to delete this box.
Click the Text box button in the Toolbar to insert a Text box.
Enter 10 in the Text box. Adjust the width of the box to a loose fit around the number.
With the box selected, press command-D seven times to create another seven identical boxes.
Edit the contents of these boxes to contain the even numbers from 10 to 24.
Carefully place the box containing 10 directly below the first data point on the chart, and as far below the x axis as you want the row of labels to appear.
Carefully place the box containing 24 directly below the last data point on the chart, and slightly lower on the page than the box containing 10.
Place the other boxes in ascending order between and slightly below the two boxes already placed.
Select all eight of these boxes, but nothing else.
Go Arrange (menu) > Align Objects > Top
Go Arrange > Distribute Objects > Horizontally
Go Arrange > Group
If desired, adjust the weight and colours of the data point icons and connecting lines.
Note: Any revisions to the data will likely require repeating the construction above.
Data table and chart constructed using Numbers '09 v2.3
Regards,
Barry

Similar Messages

  • Scatter Plot Problem!!

    Hello everyone,
    I am quite new at Labview and I have a question regarding plotting 2d-array in a scatter plot.
    I would like to plot my data as a scatter plot, which I have done with the Waveform graph, and now I would like to find out the area with the highest density in the scatter plot
    and mark the area with a circle...is it possible in Labview to realize this?? I would be very thankful for every tips!
    Thank You
    Best Regards 
    Yun

    Yes it is possible.  You said you are using a waveform graph, wouldn't an XY graph be a better choice?  I don't know the data you are getting so a waveform graph might be the right tool here.
    In either case you'll need to define a length of X that you want to find the denses amount of points.  So say X=1 so then you will find all the points between 0 and 1 and count them, then 0.1 to 1.1 and count them, then 0.2 to 1.2 for the length of X on your graph.  Doing this in a For loop will make it easy, and then your output will be an array of counts for each section.  Find the maximum using the Array Max & Min function.  
    Then you can highlight the graph using property nodes.  You can use a cursor, or annotation, or a custom picture.  The easiest would probably be an Annotation and in the Example finder there is one called "Graph Annotations" that find the minimum, maximum, and average values for a graph and put an overlay on the graph.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • Help Displaying Highest and Lowest Numbers

    Hello everyone, I'm new to Java and I have an issue with my program.
    All it does is randomly select 5 numbers from 1-10 right now, but I want it to display to the user the highest and lowest number that was selected. I'm not entirely sure how to do this so if you could help me that would be great. Here is my program.
    import java.util.Random;
         public class Dice
              public static void main(String[] args)
                   Random generator = new Random();
                   int num1;
                   int num2;
                   int num3;
                   int num4;
                   int num5;
                   int lowestnumber;
                   int highestnumber;
                   System.out.println("Let's roll the 10 sided dice!");
                   num1 = generator.nextInt(11);
                   System.out.println("Roll #1: " + num1);
                   num2 = generator.nextInt(11);
                   System.out.println("Roll #2: " + num2);
                   num3 = generator.nextInt(11);
                   System.out.println("Roll #3: " + num3);
                   num4 = generator.nextInt(11);
                   System.out.println("Roll #4: " + num4);
                   num5 = generator.nextInt(11);
                   System.out.println("Roll #5: " + num5);
    //This is where my problem is, I'm not sure how to go about getting my two integers to read the highest
    //and lowest number.
                   System.out.println("The highest number you rolled was: " + highestnumber);
                   System.out.println("The lowest number you rolled was : " + lowestnumber);
    }

    gmiller4th wrote:
    Hello everyone, I'm new to Java and I have an issue with my program.
    All it does is randomly select 5 numbers from 1-10 right now, but I want it to display to the user the highest and lowest number that was selected. I'm not entirely sure how to do this so if you could help me that would be great. Here is my program.
    import java.util.Random;
         public class Dice
              public static void main(String[] args)
                   Random generator = new Random();
                   int num1;
                   int num2;
                   int num3;
                   int num4;
                   int num5;
                   int lowestnumber;
                   int highestnumber;
                   System.out.println("Let's roll the 10 sided dice!");
                   num1 = generator.nextInt(11);
                   System.out.println("Roll #1: " + num1);
                   num2 = generator.nextInt(11);
                   System.out.println("Roll #2: " + num2);
                   num3 = generator.nextInt(11);
                   System.out.println("Roll #3: " + num3);
                   num4 = generator.nextInt(11);
                   System.out.println("Roll #4: " + num4);
                   num5 = generator.nextInt(11);
                   System.out.println("Roll #5: " + num5);
    //This is where my problem is, I'm not sure how to go about getting my two integers to read the highest
    //and lowest number.
                   System.out.println("The highest number you rolled was: " + highestnumber);
                   System.out.println("The lowest number you rolled was : " + lowestnumber);
    }Instead of having a bunch of separate ints, you could just have one array and use an insertion sorting algorithm...
    http://en.wikipedia.org/wiki/Insertion_sort
    So instead, you would have:
    import java.util.Random;
    public class Dice
    public static void main(String[] args)
    Random generator = new Random();
    int[] nums;
    int lowestnumber;
    int highestnumber;
    System.out.println("Let's roll the 10 sided dice!");
    nums[0] = generator.nextInt(11);
    System.out.println("Roll #1: " + nums[0]);
    nums[1] = generator.nextInt(11);
    System.out.println("Roll #2: " + nums[1]);
    nums[2] = generator.nextInt(11);
    System.out.println("Roll #3: " + nums[2]);
    nums[3] = generator.nextInt(11);
    System.out.println("Roll #4: " + nums[3]);
    nums[4] = generator.nextInt(11);
    System.out.println("Roll #5: " + nums[4]);
    nums = InsertionSorting(nums);
    //The sorting method will sort the number from lowest to highest, thus:
    highestnumber = nums[4];
    lowestnumber = nums[0];
    System.out.println("The highest number you rolled was: " + highestnumber);
    System.out.println("The lowest number you rolled was : " + lowestnumber);
    public static int[] InsertionSorting (int[] a) {
              for (int i = 1; i < a.length; i++ )
                  int value = a;          // next item to be inserted in order
              int j;
              // Back up in the array to find the spot for value.
              for ( j = i - 1; j >= 0 && a[j] > value; j-- )
         // This element is bigger than the element being inserted,
         // so move it up one slot.
         a[j+1] = a[j];
         // a[j] is the item that should precede value.
              // Put value after it.
         a[j+1] = value;
              return a;
    The comments in the insertion sort are not my own... I yoinked it from the web.
    I apologize if there are any errors. Hope it helps
    Edit: __colin  has a good suggestion... you'd want to use something like that as well for error protection.
    Silly me, I just realized that my sorting is way more complicated than it needs to be... But it's fun anyway! -slightly embarassed-
    Edited by: Thok on Oct 11, 2007 9:42 AM
    Edited by: Thok on Oct 11, 2007 9:48 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Sorting the values in Map

    Hi,
    In my application, i want to use Mapping in the case
    Key -Value
    A - 2
    B - 3
    C - 7
    D - 5
    For that I used HashMap. But I want to sort the values and place in map as from Highest order. For that in google it is suggested to refer SortedMap. But this SortedMap is sorting the Key content only not Value content.
    For sorting the Value's what I have to do under Collection?
    Any idea?

    DHURAI wrote:
    I will explain my concept in detail.
    I am having a String array; a[]={qw,q,as,l,kj,q,q,l}
    From this i am mapping
    key value
    qw 1
    q 3
    as 1
    l 2
    kj 1
    using HashMap.
    From this I want to fetch q whose value is greater. How can I do this?
    Hope this explains better.You still haven't said how often you want to do that. What I explained will work, but it might not be what you want if you often change values.

  • How can i relocate R^2 and equation values in scatter plot?

    hey, i used Numbers to crate scatter plot and findig trendline and R^2 values.
    the problem is that numbers automaticly put the values in the left side of the plot, and i couldnt find a way to edit their location.
    there is a way to do that?
    btw i usees the last version with OSX 10.9.

    I do not see how to move these either.  Looks like intent is that the user NOT be able to move as there is a formatter for the R^2 value and the equation when they are selected.

  • Sort variable values in selection box in BEx web report.

    Hello friends,
    In my BEx web report I have cal/month selection. When I do dropdown to select values it starts with 01/1960 and I have to click 10 times to get to 01/2006, 02/2006 and so forth.
    Is there a way to sort these values so I can get most current cal/month in first list?
    Thanks in advance.
    Regards,
    BJ

    I would consider changing the read mode for the dropdown box.  Are all of those dates actually relevant?  Check out the properties of the dropdown box in WAD. 
    Thanks,
    Jeff

  • Sort the values in Bex query variable screen

    Dear Experts,
    Is it possible to sort the values of a dropdown list for variables on BEX variable selection screen ? 
    For example, For calender month selection, the values are by default sorted by ascending order.
    Is it possible to sort by descending order ? 
    Regards,
    ravindra

    Hi Ravindra,
    yeah it is possible by writing an abap code for the field calmonth/week...etc this is depends on the F4 help of the selection field. so you need to write a code for F4 help for making it in descending order. hope it helps.
    Thanks,
    Vachan

  • Sort F4 values in BEX variable screen

    Hi ,
    Does anyone know how to sort F4 value help in BEX variable selection screen. This query has come up time and again in SDn and there seems to be no proper reply to this. If anyone has worked on this do let me know.
    Thanks,
    Vaishnavi

    Hi Nara,
    Kindly have a look at below thread,
    Sort the values in Bex query variable screen
    Hope this helps.
    Regards,
    Mani

  • Is it possible to sort dimension values in order different from alphabetic?

    Is it possible to sort dimension values in order different from alphabetic. &#1058;&#1086; use this sorting in BI Beans. In 10g r2 with awm 10.2.0.2. I try to add attribute like it was show in this forum, but nothing changes.

    Could be usefull if you use java AW api... here's the java code I'm using to create the sort_order attribute
    Dimension myDim = yourAW.findDimension("DIMNAME");
    Attribute myAttr = myDim.createAttribute();
    myAttr.setName("freename");
    myAttr.setClassification("DEFAULT_ORDER");
    myAttr.setIsDefaultOrder(true); // TO NOT FORGET
    myAttr.setDataType("INTEGER");
    myAttr.Create(AWConnection);
    globalAW.Commit(AWConnection);
    It creates a variable - integer - that defines the default order of the dim values. I'm viewing it with AWM and BIBeans. The order is respected with Level-based and Value-based hierarchy but my hierarchies are really simple and unique for all the dimensions.
    BUT !!!! Be carefull, if you don't have any hierarchy in your dimension, you must have at least one level - the default NONE level. Otherwise, it won't work ???

  • Error: Find criteria must contain at least one sort field value.

    Hi
    I am getting the followng error in Sort.as when I click on a column in a DataGrid that is bound to a nested property (e.g. parent.name)
    Error: Find criteria must contain at least one sort field value.
    I can see why this is failing.
    In the findItem function of Sort.as the code tests whether there is data in line (456) hasFieldName = values[fieldName] !== undefined. This fails and so an error is raised later in the function by:
         if (fieldsForCompare.length == 0)     {
         message = resourceManager.getString("collections", "findRestriction"); 
              throw new SortError(message);     }
     The code needs to traverse down the object hierarchy to get the field so that error is not thrown .
    The code needs to traverse down the object hierarchy to get the field so that error is not thrown .
    In the case of a non nested property, everything works fine.
    There is lots of discussion about nested properties in DataGrid and there is this jira:
    http://bugs.adobe.com/jira/browse/SDK-9801
    There is talk of using a labelFunction or an itemRenderer and other third party solutions (extensions of DataGridColumn).
    Is this a bug?  is there a workaround using labelFunction or itemRenderer which can stop the error in Sort.as?
    James
    Here is the code of findItem in Sort.as of SDK 3..4.0.9271
    public  
    function findItem(items:Array,values:Object,
    mode:String,
    returnInsertionIndex:Boolean =
    false,compareFunction:Function =
    null):int{
    var compareForFind:Function; 
    var fieldsForCompare:Array; 
    var message:String; 
    if (!items){
    message = resourceManager.getString(
    "collections", "noItems"); 
    throw new SortError(message);}
    else if (items.length == 0){
    return returnInsertionIndex ? 1 : -1;}
    if (compareFunction == null){
    compareForFind =
    this.compareFunction; 
    // configure the search criteria
    if (values && fieldList.length > 0){
    fieldsForCompare = [];
    //build up the fields we can compare, if we skip a field in the
    //middle throw an error. it is ok to not have all the fields
    //though
    var fieldName:String; 
    var hadPreviousFieldName:Boolean = true; 
    for (var i:int = 0; i < fieldList.length; i++){
    fieldName = fieldList[i];
    if (fieldName){
    var hasFieldName:Boolean; 
    try
    hasFieldName = values[fieldName] !==
    undefined;}
    catch(e:Error){
    hasFieldName =
    false;}
    if (hasFieldName){
    if (!hadPreviousFieldName){
    message = resourceManager.getString(
    "collections", "findCondition", [ fieldName ]); 
    throw new SortError(message);}
    else
    fieldsForCompare.push(fieldName);
    else
    hadPreviousFieldName =
    false;}
    else
    //this is ok because sometimes a sortfield might
    //have a custom comparator
    fieldsForCompare.push(
    null);}
    if (fieldsForCompare.length == 0){
    message = resourceManager.getString(
    "collections", "findRestriction"); 
    throw new SortError(message);}
    else
    try
    initSortFields(items[0]);
    catch(initSortError:SortError){
    //oh well, use the default comparators...
    else
    compareForFind = compareFunction;

    I have tried a sortCompareFunction:
    var sort:Sort = new Sort();
    sort.compareFunction = compareFunction;sort.fields = [sortField];
    data.sort = sort;
    data.refresh();
    this makes no difference.
    James

  • Sorting dimension values

    Is it possibe to sort dimension values in hierarchy in order diffirent from alphabetic?

    When you define a dimension you should notice on the first tab an option to set the type of dimension. The options are: User and Time. For a Time dimension you need to select type Time and this will automatically sort the members into calendar order for you. However, your source table does need to contain some additional metadata such as Time span (number of days for each time period; week=7, month=28 or29 or 30 or 31 Quarter=90 or 91 and Year = 365 or 366) and End Date for each time period. These two additional attributes are used for both sorting and to enable the time based calculations such as:
    Year To Date
    Prior Period
    Future Period
    Moving Total
    Moving Max
    Moving Min
    Does that help?
    Keith Laker
    Oracle EMEA Consulting
    OLAP Blog: http://oracleOLAP.blogspot.com/
    OLAP Wiki: http://wiki.oracle.com/page/Oracle+OLAP+Option
    DM Blog: http://oracledmt.blogspot.com/
    OWB Blog : http://blogs.oracle.com/warehousebuilder/
    OWB Wiki : http://wiki.oracle.com/page/Oracle+Warehouse+Builder
    DW on OTN : http://www.oracle.com/technology/products/bi/db/11g/index.html

  • Sorting the values in the HashMap maintaing the key-value relationship

    Hi,
    I want to sort the HashMap based on the values. I have tried several other ways but the closest I can get is sort the values but have to loose the keys. I wanted to sort the collection based on the values but at the same time maintain the key-value relationship. Is there any way I can get this functionality either by using any collection API or by some other way?
    Thanks and appreciate your help....
    --coolers                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    I believe that Commons Collections from Jakarta has something like that.
    http://jakarta.apache.org/commons/collections/
    But I'm not sure.

  • Query displaying diffrence between highest and lowest salarys?

    I need to write a query that will display the difference between the highest and lowest salaries. Label the column DIFFERENCE.
    It should look something like so. I have no idea what to type in SQL plus to get this.
         DIFFERENCE
    4200

    Sweetness, thanks for this help, I just also started at this company called avid technologies
    www.avid.com and I Just learned SAP.
    Heres another problem if you can help:
    Create a matrix query to display the job, the salary for that job based on department number, and the total salary for that job for all departments, giving each column an appropriate heading
    and again the formatting is messed up.
         Job               Dept 10 Dept 20      Dept 30     Total
         ANALYST     6000                    6000
         CLERK          1300     1900          950     4150
         MANAGER     2450     2975     2850     8275
         PRESIDENT     5000                    5000
         SALESMAN                    5600     5600

  • Sorting the values of a map.

    I have been stuck on this problem for a while. I have a TreeMap, which can be changed to a HashMap if needed, with a set of keys as Strings and values which are Integers.
    EXAMPLE
    String1, 123
    String2, 333
    String3, 222
    String4, 758
    I need the values sorted in decending order (9-0).
    Thanks in advance for all your help.

    I have been stuck on this problem for a while. I have
    a TreeMap, which can be changed to a HashMap if
    needed, with a set of keys as Strings and values which
    are Integers.You must be the first one who changed a TreeMap into a HashMap and then lived to tell about it. -:)
    Anyway a TreeMap is always sorted on key, not value. To have your dataset sorted on value you must reload into another TreeMap and invert the key/value pairs in the process. The values then become keys in the new TreeMap which means that the former values must be unique for this to work.
    I'm sure there's a simple solution but it's better if you described what you want to accomplish in general terms than to let people struggle with a solution scenario that's probably suboptimal. How do you want to access your objects and why and when do you need them to be sorted.

  • How to sort alphanumeric values in datagrid numerically

    Hi all,
    I have a datagrid column which contains AlphaNumeric values.Is there a way i can sort these values in a numerical order
    eg:
    having d1,d11,12,13,d2,d3,d4
    d2 should come after d1..
    order should be d1,d2,d3,d4,d11,d12,d13
    Please help me out..if any have any idea..giving below thw code which is sorting as string
    protected function ColumnSortCompare( obj1:Object, obj2:Object ):int
            if ( !obj1 && !obj2 )
                return 0;
            if ( !obj1 )
                return 1;
            if ( !obj2 )
                return -1;
            var obj1Data:String = ComplexColumnData( obj1 ).toString();
            var obj2Data:String = ComplexColumnData( obj2 ).toString();
            if ( obj1Data < obj2Data )
                return -1;
            if ( obj1Data > obj2Data )
                return 1;
            return 0;
    Thanx in advance
    Rajesh

    Hi,
    Thanks for the reply. Please dont mind if the question is simple,as I am new to flex.
    While I am using
    return ObjectUtil.stringCompare(obj1[fieldName], obj2[fieldName]);
    it is throwing error as, undefined property fieldName.
    I am calling as this
    <mx:DataGridColumn headerText=""
                               editable="false"
                               sortCompareFunction="ColumnSortCompare"
                               textAlign="left"
                               dataField="{PORT_NAME}"
                               width="150"/>
    How I can resolve this.Please guide me.
    Thanks,
    Raj

Maybe you are looking for

  • Photoshop Editor won't open

    photo shop editor wont open doesnt work

  • Launchd calendar

    We have been using Snow Leopard Mac Mini Server and FileMaker Server as a platform. It came time to upgrade to FileMaker 13 which required at least Mountain Lion to work. We decided to upgrade to Mac Mini Server i7 with a 256GB SSD, etc. In this inst

  • ECO 5.0 for ECC setup of inistal development according to nte 1017761

    Hello all,   I am hoping someone can give me a hand with this. I am following SAP note 1017761 to setup a new enterprise app for my own B2C shop. In the note it says instead of changing the SAP code int he crm/isa/web/b2c and crm/tc/web/core to creat

  • Spray paint effect

    how do make a sort of spray paint effect without making it look pixelated or like uve just use the blur filter?

  • T key

    I use the migration assitant to transfer from an old mac to a new mac but when It ask to hold down the T key I have no clue what to do please help