Follow

How can I use a worksheet column for symbols and colors in Grapher?

There are two workflows that can be used to define the symbol and color for each point in a Grapher line/scatter plot.  The first workflow requires that the symbol number and color be defined in separate columns in the worksheet.  The second option requires that both the symbol and the color be defined in a single column.

 

To define the color and symbol number in separate column and apply these to the plot, complete the steps below.

  1. First, ensure that your worksheet contains both a symbol column and a color column as shown below.  The symbol column must contain the numeric index associated with your desired symbol and the color column must contain one of the predefined colors in Grapher.
  2. Select the line/scatter plot in the Object Manager.
  3. Click the Line tab in the Property Manager.
  4. Click in the Color column field and select the column containing your desired colors.
  5. Click the Symbol tab.
  6. Click in the Symbol variable field and select the column containing your desired symbol indexes.
  7. Check the box next to Use plot line color.

Each symbol will now use the defined color and symbol from the worksheet.

 

 

To define the symbol and color in a single column and apply these to the plot, complete the steps below.

  1. First, define each symbol color using the math text syntax for text colors.

        \black                   \blue                     \green                 
        \cyan                    \red                      \magenta
        \yellow                  \white                   \gray
        \rgbrX                   \rgbgX                  \rgbbX                  \color(r,g,b,a)

  1.  Next, the symbol character must be added to the same worksheet cell with a space between the color and the character. To determine which characters are available as symbols, you can use the Windows character map:
    1. Click the Windows start button and type charmap in the search box.
    2. In the Character Map dialog, change the Font to the desired symbol set, such as GSI Default Symbols.
    3. Select the symbol shape you want and click the Select and Copy buttons.
    4. In Grapher’s worksheet, click on the cell that should contain the symbol in the appropriate location (after the space after the color name).
    5. Click the Home | Clipboard | Paste command or press CTRL+V on the keyboard. The appropriate keyboard character for the symbol is added to the cell.
  2. Select the line/scatter plot in the Object Manager.
  3. On the Symbol page in the Property Manager, change the Symbol frequency to 0.
  4. On the Labels page, change the Label column to the column with the symbols and colors defined.
  5. Set both the Horizontal alignment and the Vertical alignment to Center, so the label appears right where the symbol was.
  6. Verify the X offset and Y offset are set to 0.
  7. In the Label Format section, expand Font and set the Face to the symbol set you picked your symbols from in the character map. So, if you used GSI Default Symbols there, set the Face here to GSI Default Symbols.

 

Updated September 24, 2018

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.