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, streamline multislice, and streamline surface plots.
The following properties are available:
expr | arrowlength
Whether to color the arrows using an expression in expr (set to expr) or using the arrow length (set to arrowlength). This property is only available if the Color attribute is added to an arrow plot or a trajectory plot where pointtype is set to arrow.
colortable | gradient
on | off
linear | linearsymmetric | logarithmic
The color table to use. See Color Tables for a list of color tables.
none | reverse | nonlinear | nonlinearsymmetric
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 reverse to color table or gradient when coloring is set to colortable or gradient and colortabletrans is set to nonlinear or nonlinearsymmetric.
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, CyclicClassic, Dipole, DipoleDark, Disco, DiscoClassic, DiscoDark, DiscoLight, DiscoLightClassic, Gaia, GaiaLight, GrayBody, GrayBodyLight, GrayPrint, GrayScale, HeatCamera, HeatCameraLight, Inferno, JupiterAuroraBorealis, Magma, Plasma, Prism, PrismDark, Rainbow, RainbowClassic, RainbowDark, RainbowLight, RainbowLightClassic, Spectrum, SpectrumClassic, SpectrumLight, Thermal, ThermalClassic, ThermalDark, ThermalLight, ThermalLightClassic, ThermalWave, ThermalWaveDark, Traffic, TrafficClassic, TrafficFlow, TrafficLight, TrafficLightClassic, Twilight, Viridis, Wave, WaveClassic, WaveLight, and WaveLightClassic. 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 (Plot), Isosurface (Plot), Particle, ParticleMass, Streamline