TRACEc
|
plt(...,'TRACEc',ct);
Specify trace colors. Usually you will have at least as many rows in ct as there
are traces, however if ct doesn't have enough rows, plt will start over from
the beginning. For example if you specify:
TRACEc,[1 0 0; 1 1 0; 1 1 1]
then plt will use red, yellow, and white respectively for traces 1,2,
and 3. If you had a fourth trace, plt would use red for that trace and so
on. If ct is a single 3 element vector, plt will use that color for all
traces. If the TRACEc parameter is not included and color files are not
being used (see
'ColorFile' below), then the following default
colors are used:
Default (for up to 34 lines):
ct =
[ 0 1 0; 1 0 1; 0 1 1;
1 0 0;
.2 .6 1;
1 1 1; 1 .6 .2; 0 0
1; 1 .2 .6; .2 1 .6;
.6 1 .2;
.6 .2 1; 1 1 0; 0 .6 0; .6 0 .6;
0 .6 .6;
.6 .6 0; .7 .7 .7; .6 0 0; .2 .2 .7;
.5 .5 .5; .7 .2 .2; .2 .7 .2; 0 0 .6;
.3 .3 .3;
0 .9 .4; 0 .4 .9; .9 .4 0; .4 .9
0; .9 0 .4;
.4 0 .9; .8 .5 .5; .5 .8 .5; .5 .5 .8];If the number of lines (=N) is more than 34, ct is expanded via:
for k=35:N ct = [ct; .75 * ct(k-34,:)]; end;
This makes each successive group of 34 traces 25% dimmer than the
previous group. This creation of default colors continues only up to 99
colors. If you have more than 99 traces, plt will start assigning colors
cyclically as described above. |
|
CURSORc
|
plt(...,'CURSORc',rgb);
Specify the cursor color.
Here, and on the rest of this
page,
rgb must be a 3 element row or column vector.
| Defaults: |
Only one trace
(dark plot backgrounds) |
[1 1 .5] |
| |
Only one trace
(light plot backgrounds) |
[0 0 .5] |
| |
More than one trace |
Cursor color is set to match trace color |
|
DELTAc
|
plt(...,'DELTAc',rgb);
Specify color indicating the delta cursor.
Default:
[1 0 0]
|
PltBKc
|
plt(...,'PltBKc',rgb);
Specify the plot area background color.
Default:
[0 0 0]
|
FigBKc
|
plt(...,'FigBKc',rgb);
Specify the figure window background color .
Default:
[.25 .15 .15]
|
xyAXc
|
plt(...,'xyAXc',rgb);
Specify the color of the x and y axes.
Default:
[1 1 1]
|
xyLBLc
|
plt(...,'xyLBLc',rgb);
Specify the color of the x and y axis labels.
Default:
[.64 .78 .94]
|
GRIDc
|
plt(...,'GRIDc',rgb);
Specify the color of the grid lines. Normally the grid lines are drawn in
normal erase mode, however if any of the rgb values are negative (e.g.
'GRIDc',[0 -.2 .4] ), then the grids are drawn in exclusive-or mode
(which is occasionally preferable). The actual grid color used in the above
example is [0 .2 .4]).
Default: [.3 .3 .3]
|
COLORdef
|
plt(...,'COLORdef',c);
Sets the PltBKc, FigBKc, xyAXc, and xyLBLc colors mentioned above to be
consistent with Matlab's current default colors. Trace colors are set as
follows:
| c = 0 or 'default' |
Matlab's current default trace colors are
used.
i.e. TRACEc = get(0,'DefaultAxesColorOrder') |
| c is a 3 column array |
c is appended to the default trace colors
property.
i.e. TRACEc = [get(0,'DefaultAxesColorOrder')
c]
(useful if Matlab doesn't have enough default trace colors) |
If TRACEc so defined has fewer rows than the
number of traces to be plotted the the colors will be used cyclically as
described above. |
ColorFile
|
plt(...,'ColorFile','filename');
The normal behavior of plt (i.e. when the
ColorFile argument is not included) is as
follows.
- If plt is called from the MatLab command line, when plt initializes
it looks for a file called
pltcolor.mat in the folder where you installed
plt. If this file isn't found, no action is taken. If it is found, the
file is loaded causing all the default colors and the colors specified by
all the other parameters shown on this page to be overwritten with the data
saved in the .mat file. When you select the "Save figure colors" selection
under the Color menu, plt saves the current colors to this same file (pltcolor.mat).
- If plt is called from a MatLab function or script file, the
behavior is similar except that the file name used is
fnameColor.mat where fname is the name of the top
level MatLab command or script. Again, plt looks for this file in the folder
containing the .m file defining fname (or in the folder containing
the fname.exe file for compiled applications).
When the
'ColorFile' parameter is included in the plt
argument list, the above behavior is modified as follows:
|
'ColorFile','filename' |
If the filename is specified without any path, plt uses
the specified file name both on startup (to load the color scheme) and
when "Save figure colors" is selected. plt looks for this file in the
folder containing the .m file defining fname (or in the folder
containing the fname.exe file for compiled applications). The extension
used is always
.mat and you may not include an extension or a
period in the filename string. |
|
'ColorFile', 'drive:\path\filename' |
As above, plt uses the specified file both on startup
(to load the color scheme) and when "Save figure colors" is selected.
However when path information is supplied, plt will look for the file
only in the location given. As before, you may not include an extension
in the filename string |
|
'ColorFile','' |
plt will use its default colors, and any colors
specified by the other parameters in this section. A color file will
never supersede them on startup, even if
fnameColor.mat exists. If you select "Save figure
colors", plt will allow you to save the current colors to any file of
your choosing (by opening a file selection box), but these colors will
not be loaded unless you change to one of the above
'ColorFile' options, or remove the
'ColorFile' parameter altogether. |
|