Color
Add a color expression attribute to add a coloring to the shapes defined by a plot.
Syntax
model.result(<pgtag>).feature(<ftag>).create(<atag>,"Color");
model.result(<pgtag>).feature(<ftag>).feature(<atag>).set(property, <value>);
Description
model.result(<pgtag>).feature(<ftag>).create(<atag>,"Color") creates a color expression attribute named <atag> belonging to the plot feature <ftag>.
Use color expressions to add a coloring to the shapes defined by a plot. Color expressions can be added to surface plots, line plots, volume plots, arrow plots, contour plots, isosurface plots, particle tracing plots, and streamline plots.
The following properties are available:
colortable | gradient
on | off
The color table to use. See Color Tables for a list of color tables.
on | off
on | off
The description of the expression in expr. Is used in the automatic title.
on | off
on | off
linpoint | harmonic | lintotal | lintotalavg | lintotalrms | lintotalpeak
on | off
on | off
Whether to use the manual color range specified in rangecolormin and rangecolormax. The color range specifies the minimum and maxim value in the plotted colors. Default is the minimum and maximum data values.
on | off
Whether to use the manual data range specified in rangedatamin and rangedatamax. Values outside the data range are not plotted.
The title to use when titletype is manual.
auto | custom | label | manual | none
auto, if the title should be computed automatically. custom, if the title should be computed automatically, but customized. label, if the title should be the plot group’s label. manual, if the manual title should be used (the title property). none, if no title should be displayed.
on | off
The unit to use for the expression in expr. If the old unit is not valid when the expression changes, the unit property is reset to default.
on | off
Color Tables
The following color tables are available for use with the colortable property here and in other types of plots: AuroraAustralis, AuroraAustralisDark, AuroraBorealis, Cividis, Cyclic, Disco, DiscoLight, GrayPrint, GrayScale, HeatCamera, HeatCameraLight, JupiterAuroraBorealis, Rainbow, RainbowLight, Spectrum, Thermal, ThermalEquidistant, ThermalLight, ThermalNarrow, Traffic, TrafficLight, Twilight, Wave, and WaveLight. See the COMSOL Multiphysics Reference Manual for more information about the color tables.
See Also
Deform, Height, AberrationHeight, HistogramHeight, TableHeight, ArrowVolume, ArrowSurface, ArrowLine, ArrowPoint, Contour, Isosurface (Plot), Particle, ParticleMass, Streamline