Contents - Index


$ModifyAxis

 

$ModifyAxis X Name='my Plot' Min=100 Max=600 Int=100 AutoScale=On Linear Grids=On Ticks=4  Ticks239=On Showscale=Off Size=16 Style=BoldItalic Format=A3 Color=Black

 

The $ModifyAxis directive allows the scaling and characteristics of an axis of an existing plot to be changed.  The first parameter indicates the axis (X, Y or Y2).   The plot window is specified by providing the name of the plot window tab in after the Name= keyword. The plot tab name must be either a string constant within single quotes or a predefined EES string variable.    Alternatively, the number of the plot can be provided in place of the plot name, with 1 being the first plot. All other keywords are optional.

 

This command allows the axis scaling to be changed to the specified minimum, maximum and interval in linear or log coordinates.  AutoScale can be set to On or Off.  If AutoScale=On, do not provide Min, Max or Int.  The scale numbers are shown in bold italic with font size 16 using automatic format. The grid lines and scale can be turned on or off.  The number following the optional Ticks= keyword is the number of minor tick marks between the major tick marks.  The default is 4.  Ticks239 specifies whether ticks are shown at locations 2, 3, ..9 on a logarithmic scale.  Use Y for the left Y axis and Y2 for the right Y axis.  Color controls the color of the plot text and it must be recognized color name.   

 

 

Example:

 

X[1..10]=[1,2,3,4,5,6,7,8,9,10]

Duplicate i=1,10

y[i]=x[i]^2

End

$NewPlot Name='myPlot' Table=ARR  X=X[i] Y=Y[i]

$ModifyAxis X Name='myPlot'  Grids=On Color=red

$ModifyAxis Y Name='myPlot'  Grids=On Color=blue

 

 

See also: $NewPlot  

               $OverlayPlot

               $ModifyPlot