Welcome to Golden Software Support

Scatter Plot: classes limits

Comments

8 comments

  • Avatar
    Lorenz Keller
    Hi Katie thank you for this workaround. This helps to me at the moment, but it's still cumbersome, because I need to display my data not only with classes from -100 to 100 but with different limits. So, I'm interested to have added my vote to the suggestion file. Maybe, another idea is to save the GCL in text format instead of binary so it would be easier to change the classes.... Thanks again for your help! Best, loriot
    0
    Comment actions Permalink
  • Avatar
    Jennifer Woodson

    Hi Loriot,

    Can you please explain what you mean by 'globally' changing the class limits? What you could do is set the symbol and line to be invisible for the symbol for your below 0 class. Then, in the legend, you can remove this entry's text from the legend. If you would like to change the limits for the classes in a classed scatterplot, you can do so in the Edit Classes dialog. Please see the steps below.

    1. Select the Class Scatter Plot in the Object Manager.
    2. Click the Plot tab in the Property Manager.
    3. Click the Edit button next to Classes.
    4. In the Edit Classes dialog, double-click on the desired class.
    5. In the Properties dialog, edit the Minimum and Maximum values.
    6. Set the Fill Pattern to None.
    7. Set the Line Style to Invisible.
    8. Click OK.
    9. Repeat steps 4-6 for each desired class.
    10. Click OK in the Edit Classes dialog.

    Please see the steps below to remove the entry's text from the legend.

    1. In the Object Manager, click the Class Legend.
    2. In the Property Manager, click the Legend tab.
    3. Click the Edit button next to Entries.
    4. Double-click the entry you'd like to remove.
    5. In the Text Editor, select and delete the text.
    6. Click OK.
    7. Click OK in the Legend Entries dialog.

    Thanks,

    Jennifer

    0
    Comment actions Permalink
  • Avatar
    Lorenz Keller
    Hi Drew do you have an idea how to limit the classes values instead of nullify? Thank you! loriot
    0
    Comment actions Permalink
  • Avatar
    Lorenz Keller
    Hi Jennifer with "globally", I mean changing the limits of classes range. I have a dataset with values from -80 ... 120. Now, I would like to create a ClassScatterPlot mapping all data, but I would like to define the classes in a manually chosen range: from -100 to 100 with equal intervals. The "Edit Classes" dialog allows me to define the number of classes (in my example set to 100) and with the "equal intervals" method. But, the range of classes is automatically set from -80 to 120. which means (rounded values): -80..-78 -78..-76 ... 116..118 118..120 But, I would like to define the range from -100..100, independently from actual values range. In the example: -100..-98 -98..-96 ... 96..98 98..100 The resulting plots should show the classes from -100 to -80 with zero percent, the classes from -80 to +100 with the real values and values from 100..120 should not be mapped (nullified) because 'out of range'. With your last suggestion, I need to manually change the >=Minumum and <Maximum values of each class - with 100 classes a cumbersome undertaking... And because the .gcl format is binary, I'm not able to define the classes out of Grapher. Thank you for any help! Best, loriot
    0
    Comment actions Permalink
  • Avatar
    Katie Yoder

    Hi Loriat,

    It is not currently possible to define global limits for classes in Grapher. I have added your vote for this feature to our suggestion file. In the meantime, it is possible to "trick" Grapher into creating the desired classes using a data set with the desired limits. For instance, follow the steps below to create a GCL with 100 classes and a range of -100 to 100.

    1. Enter the following values in columns A, B, and C of an empty worksheet: 1,1,-100 2,2,-50 3,3,0 4,4,50 5,5,100
    2. Click the Graphs | Create | Class Plot command.
    3. In the Open Data dialog, select the above worksheet and click Open.
    4. In the Plot tab of the Property Manager, click the Edit button in the Classes field.
    5. In the Edit Classes dialog, enter 100 in the Number of classes field.
    6. Click the current value in the Method field and select Equal Intervals.
    7. Click Save.
    8. In the Save As dialog, enter a name for the new classes file and click Save.

    This GCL file can now be used to assign the desired classes to your true data.

    Thanks!

    Katie

    0
    Comment actions Permalink
  • Avatar
    Drew Dudley

    Hello Loriot,

    Thank you for posting your question on the Grapher Support forum. I think you can use the Use criteria option to nullify the values below 0 in your class column. To do so:

    1. Select the ScatterPlot in the Object Manager.
    2. Click the Clipping tab in the Property Manager.
    3. Check the Use criteria checkbox.
    4. Click the Set button.
    5. In the Criteria dialog, check Use NULL criteria.
    6. Uncheck Data columns only.
    7. Click the Select Columns button.
    8. In the Select Columns dialog, check the class column from your data and click OK.
    9. Click the Range button.
    10. In the Range dialog, enter the range you want to clip out and click OK.
    11. Click OK.

    Please note that this will clip out the desired range. The legend will not reflect this clip nor will the Edit Classes dialog.

    Thanks!

    Drew

    0
    Comment actions Permalink
  • Avatar
    Drew Dudley

    Hi Loriot,

    When you change the class limits in the Edit Classes dialog, the legend will update. If you create custom classes, i think you should be able to create the class divisions you want to create. Try this:

    1. Click the Edit button on the Plot tab in the Property Manager.
    2. In the Edit Classes dialog change the Method to Custom.
    3. Change the Number of classes to the appropriate number. 
    4. Double click on each class and define the Min and Max in the Properties dialog.
    5. Click OK when you are finished editing the classes.
    6. Notice that the legend does update.

    I may not fully understand what your question is here, so if the steps above don't help, please send me a copy of GPJ file and we can figure from there. My email is Drew@goldensoftare.com

    Thanks!

    Drew

    0
    Comment actions Permalink
  • Avatar
    Lorenz Keller
    Hi Drew thank you for the explanations. This works when I would like to set some values to 0. That's fine to nullify the values. But, what I would like to do is not only to nullify the values but also to change the classes limits, incl. the legend. In fact, there's another scatter plot from the same with the same dataset, where I would like to extend the scatter plot values from -100 to +100. And also the legend should show the same limits (from 0 to 100 in the first case; from -100 to +100 in the second case). So, the colours of classes should also represent the limited (1st case) respectively the extended (2nd case) range of values. Because I would like to apply gradient colors, it's important to use the limited/extended range of values for classes. thank you for (some more) hints/ideas! loriot
    0
    Comment actions Permalink

Please sign in to leave a comment.