VisualAttributes¶
-
class
glue.core.visual.
VisualAttributes
(parent=None, washout=False, color=None, alpha=None)[source]¶ Bases:
glue.external.echo.HasCallbackProperties
This class is used to define visual attributes for any kind of objects
The essential attributes of a VisualAttributes instance are:
- Parameters
color – A matplotlib color string
alpha – Opacity (0-1)
linewidth – The linewidth (float or int)
linestyle – The linestyle (
'solid' | 'dashed' | 'dash-dot' | 'dotted' | 'none'
)marker – The matplotlib marker shape (
'o' | 's' | '^' | etc
)markersize – The size of the marker (int)
Attributes Summary
Transparency, given as a floating point value between 0 and 1.
Color specified using Matplotlib notation
The line style, which can be one of ‘solid’, ‘dashed’, ‘dash-dot’, ‘dotted’, or ‘none’.
The line width, in points.
The marker symbol.
Methods Summary
copy
(self[, new_parent])Create a new instance with the same visual properties
set
(self, other)Update this instance’s properties based on another VisualAttributes instance.
Attributes Documentation
-
color
[source]¶ Color specified using Matplotlib notation
Specifically, it can be:
A string with a common color (e.g. ‘black’, ‘red’, ‘orange’)
A string containing a float in the rng [0:1] for a shade of gray (‘0.0’ = black,‘1.0’ = white)
A tuple of three floats in the rng [0:1] for (R, G, B)
An HTML hexadecimal string (e.g. ‘#eeefff’)
-
linestyle
[source]¶ The line style, which can be one of ‘solid’, ‘dashed’, ‘dash-dot’, ‘dotted’, or ‘none’.
Methods Documentation