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:
on | off
Whether to show color legend, when coloring is set to colortable.
The color table to use when colormethod is set to colortable. See Color Tables for a list of color tables.
on | off
Whether to reverse to color table when colormethod is set to colortable.
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 | manual | none
auto if the title contribution should be computed automatically, possibly using the group’s customization. custom if the title contribution should be computed automatically, but customized. manual if the manual title contribution should be used (the title property). none if no title contribution should be used.
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, AuroraBorealis, Cyclic, Disco, DiscoLight, GrayPrint, GrayScale, HeatCamera, HeatCameraLight, JupiterAuroraBorealis, Rainbow, RainbowLight, Spectrum, Thermal, ThermalEquidistant, ThermalLight, 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, Contour, Isosurface, Particle, ParticleMass, Streamline