defaults plt_attributes

This command allows the user to control various global attributes for XY plots.

Format:

 
defaults plt_attributes
grid_visibility =
on_off
secondary_grid_visibility =
on_off
tic_visibility =
on_off
legend_visibility =
on_off
simulation_legend_visibility =
on_off
legend_border_visibility =
on_off
simulation_legend_border_visibility =
on_off
axis_label_visibility =
on_off
symbol_visibility =
on_off
border_line_type =
line_style
border_thickness =
real
title_color =
an existing color
subtitle_color =
an existing color
haxis_label_color =
an existing color
vaxis_label_color =
an existing color
axis_numbers_color =
an existing color
grid_color =
an existing color
secondary_grid_color =
an existing color
tic_color =
an existing color
border_color =
an existing color
legend_border_color =
an existing color
simulation_legend_border_color =
an existing color
axis_color =
an existing color
scientific_notation =
integer
trailing_zeros =
on_off
decimal_places =
integer
legend_placement =
plot_legend_place
simulation_legend_placement =
plot_legend_place
legend_fill =
on_off
simulation_legend_fill =
on_off
legend_border_color =
 
simulation_legend_border_color =
 
legend_border_line_type =
line_style
simulation_legend_border_line_type =
line_style
graph_area =
real
title_font_size =
real
subtitle_font_size =
real
legend_font_size =
real
strip_chart_font_size =
real
zero_line =
on_off

Example:

 
defaults plt_attributes &
grid_visibility =
on &
secondary_grid_visibility =
off &
tic_visibility =
on &
legend_visibility =
on &
simulation_legend_visibility =
on &
legend_border_visibility =
on &
simulation_legend_border_visibility =
off &
axis_label_visibility =
on &
symbol_visibility =
on &
border_line_type =
solid &
border_thickness =
0.2 &
title_color =
RED &
subtitle_color =
GREEN &
haxis_label_color =
BLACK &
vaxis_label_color =
BLACK &
axis_numbers_color =
BLUE &
grid_color =
YELLOW &
secondary_grid_color =
NO_COLOR &
tic_color =
NO_COLOR &
border_color =
BLACK &
legend_border_color =
NO_COLOR &
simulation_legend_border_color =
NO_COLOR &
axis_color =
BLACK &
scientific_notation =
-5 , 5 &
trailing_zeros =
on &
decimal_places =
4 &
legend_placement =
top_right &
simulation_legend_placement =
top_left &
legend_fill =
on &
simulation_legend_fill =
off &
use_matlab =
no &
legend_border_line_type =
solid

Description:

 
Parameter
Value Type
Description
grid_visibility
On_off
The GRID_VISIBILITY parameter provides control over the visibility of the grid of a given view.
secondary_grid_visibility
On_off
 
tic_visibility
On_off
This parameter controls the default visibility of axis tic marks for all subsequently created XY plots.Tic marks are the small lines intersecting the axis.
legend_visibility
On_off
This parameter controls the default visibility of legends for all subsequently created XY plots.
simulation_legend_visibility
On_off
 
legend_border_visibility
On_off
 
simulation_legend_border_visibility
On_off
 
axis_label_visibility
On_off
This parameter controls the default visibility of axis labels for all subsequently created XY plots.
symbol_visibility
On_off
This parameter controls the default visibility of xy_plot curve symbols for all subsequently created XY plots.
border_line_type
Line_style
 
border_thickness
Real
 
title_color
An Existing Color
This parameter controls the default color of the title for all subsequently created XY plots.
subtitle_color
An Existing Color
This parameter controls the default color of the subtitle for all subsequently created XY plots.
haxis_label_color
An Existing Color
This parameter controls the default color of the horizontal axis label for all subsequently created XY plots.
vaxis_label_color
An Existing Color
This parameter controls the default color of the vertical axis label for all subsequently created XY plots.
axis_numbers_color
An Existing Color
This parameter controls the default color of the axis numbers for all subsequently created XY plots.
grid_color
An Existing Color
This parameter controls the default color of the plot grid for all subsequently created XY plots.
secondary_grid_color
An Existing Color
 
tic_color
An Existing Color
 
border_color
An Existing Color
 
legend_border_color
An Existing Color
 
simulation_legend_border_color
An Existing Color
 
axis_color
An Existing Color
This parameter controls the default color of the axis line for all subsequently created plot axes.
scientific_notation
Integer
This controls the lower and upper powers of ten where the format for real numbers switches from a fixed point format to scientific notation.
trailing_zeros
On_off
This controls whether or not trailing zeros are printed for real numbers.
decimal_places
Integer
This controls how many places are written after the decimal point for real numbers. The default value is ten decimal places.
legend_placement
Plot_legend_place
This parameter controls the default placement of legends for all subsequently created XY plots. Legends may be placed at the top,bottom, or right side of a plot.
simulation_legend_placement
Plot_legend_place
 
legend_fill
On_off
 
simulation_legend_fill
On_off
 
legend_border_color
An Existing Color
 
simulation_legend_border_color
An Existing Color
 
legend_border_line_type
Line_style
 
simulation_legend_border_line_type
Line_style
 
graph_area
Real
Specifies the size and shape of the graph for all subsequently created plots. The four graph area values are the x, y coordinates of the lower left and upper right corners of the graph.
title_font_size
Real
 
subtitle_font_size
Real
 
legend_font_size
Real
 
strip_chart_font_size
Real
 
zero_line
On_off
 

Extended Definition:

1. The attributes set using this command will be used for any subsequently created plots. The attributes that may be controlled are:
VISIBILITY for grid lines, tic marks, legends, axis labels, and plot curve symbols.
COLOR for the plot title, plot subtitle, horizontal and vertical axis labels, axis numbers, plot grid, tic marks, and plot border.
NUMERICAL_FORMAT for controlling the limits for displaying numerical values in scientific notation, whether trailing zeroes are displayed, and how many decimal places to display.
CONFIGURATION for the placement of legends and whether or not to display the zero line.
2. You may modify these attributes on an existing plot with the XY_PLOTSATTRIBUTES command.
3. Symbols are the graphic markers on a curve identifying the data points.
4. The default values for the scientific_notation parameter are -4 and 5, meaning that any number less than or equal to 1.0E-04 or greater than or equal to 1.0E+05will be written in scientific notation.
5. When the trailing_zeros parameter is enabled, all the digits after the decimal point will be printed, whether they are zero or not. When disabled, any zeros at the end of the fractional part of the number will be dropped, leaving the last digit as a non-zero digit.