Line coloring types
|Objects||LineColorType Default Values|
|plot::Arc3d, plot::Conformal, plot::Curve2d, plot::Curve3d, plot::Cylindrical, plot::Dodecahedron, plot::Ellipse3d, plot::Function2d, plot::Function3d, plot::Hexahedron, plot::Icosahedron, plot::Implicit2d, plot::Implicit3d, plot::Integral, plot::Listplot, plot::Matrixplot, plot::Octahedron, plot::Polar, plot::Polygon2d, plot::Polygon3d, plot::Prism, plot::Pyramid, plot::Rootlocus, plot::Sequence, plot::Spherical, plot::Streamlines2d, plot::Sum, plot::Surface, plot::SurfaceSet, plot::SurfaceSTL, plot::Sweep, plot::Tetrahedron, plot::Tube, plot::VectorField2d, plot::VectorField3d, plot::Waterman, plot::XRotate, plot::ZRotate||Flat|
LineColorType controls the type of line coloring used. With the exception of Flat and Functional, the coloring schemes depend on the height, i.e., the z or y value (in 2D or 3D, respectively) of points on the line, relative to the extension of the viewing box.
By default, lines are drawn in the color set by the attribute LineColor. This is caused by the setting LineColorType = Flat. The other possible values for LineColorType mean:
The color of a point on a line depends on its height, with the lowest point using LineColor2, the highest one using LineColor, and all other points using a linear interpolation in RGB color space.
The line is drawn with LineColor. No blend is used.
The line is drawn with a blend from LineColor to a dimmed version of LineColor.
This setting is technically similar to Dichromatic, but the effect is vastly different, since interpolation takes place in HSV color space. This creates a "rainbow effect", which mostly conforms with a physical rainbow for suitable choices of colors.
Both LineColor and LineColor2 are ignored; the color scheme is derived from LineColorFunction. See ?LineColorFunction for details (which depend on the object type). If no color function is given, the object will be rendered with LineColorType = Flat.
By default, lines are drawn in one flat color:
plot(plot::Polygon2d([[-1,-1], [1,-1], [1,1], [-1,1]], Closed = TRUE, Filled = FALSE))
Using LineColorType = Dichromatic, Monochrome, or Rainbow causes a height-dependent color effect:
plotfunc2d(sin(x), LineColorType = Rainbow)
Note that height coloring depends on the height of the whole scene, not only on that of individual objects:
plot( plot::Function2d(sin(x) + 0.2, LineColorType = Dichromatic), plot::Function2d(sin(x) + 0.0, LineColorType = Monochrome), plot::Function2d(sin(x) - 0.2, LineColorType = Rainbow), LineColor = RGB::Red, LineColor2 = RGB::Blue )