numeric[2]
The centering attribute of a graduation determines where the center of a non-linear graduation is in relation to the area being filled.
It is an array of 2 numeric values, each with a range -1 through 1 indicating a factor of the maximum bounding rectangle of the area being filled. 0,0 (the default) imples the center, -1,-1 is the top left corner, +1,+1 is the bottom right corner.
Here are some examples of non-linear graduations with non-default centering:
Automatic (.shape=1) Circular (.shape=2)
Square (.shape=3)
The commands to create these graduations are as follows:
graduation mygrad,-rgb=<brown.rgb,yellow.rgb>,-sh=1,-cen=<0.25,0.25> graduation mygrad,-rgb=<brown.rgb,yellow.rgb>,-sh=2,-cen=<-1,0> graduation mygrad,-rgb=<brown.rgb,yellow.rgb>,-sh=3,-cen=<0,-1>
For more information about non-linear shapes refere to graduation.shape.
Commands: |
|