Changing Plot Symbols


How do you change plot symbols and symbol size?


This is changed by changing the marker attribute in the graphics method object. If you have a graphics method my_gm, the assignment statement:

my_gm.marker = 4

sets the plot symbol to a circle. You can find a list of symbols here.

Symbol size is set by the markersize attribute in the graphics method object:

my_gm.markersize = 5

The units for markersize seem arbitrary, like the values for text height. Through trial-and-error, it appears that 1 markersize unit equals 2 text height units, i.e. a plot symbol of markersize = 20 is around the same size as text of height = 40.

Notes: This discussion applies to CDAT 3.3.

Return to the Tips and Examples index page.

Updated: December 5, 2003 by Johnny Lin <email address>. License.