displayConfig#
- class mrinufft.trajectories.display.displayConfig(**kwargs)[source]#
Bases:
object
A container class used to share arguments related to display.
The values can be updated either directy (and permanently) or temporarily by using a context manager.
Examples
>>> from mrinufft.trajectories.display import displayConfig >>> displayConfig.alpha 0.2 >>> with displayConfig(alpha=0.5): print(displayConfig.alpha) 0.5 >>> displayConfig.alpha 0.2
Methods
__init__
Update the display configuration.
Extract a list of colors from a matplotlib palette.
Restore the display configuration.
Update the display configuration.
Attributes
Transparency used for area plots, by default
0.2
.Font size for most labels and texts, by default
18
.Matplotlib color for gradient constraint points, by default
"r"
(red).Width for lines or curves, by default
2
.Number of colors to use in the color cycle, by default
10
.Matplotlib color for the highlighted shot, by default
"k"
(black).Name of the color palette to use, by default
"tab10"
.Size for points used to show constraints, by default
10
.Matplotlib color for slew rate constraint points, by default
"b"
(blue).Font size for smaller texts, by default
14
.- nb_colors = 10#
Number of colors to use in the color cycle, by default
10
.
- palette: str = 'tab10'#
Name of the color palette to use, by default
"tab10"
. This can be any of the matplotlib colormaps, or a list of colors.
- gradient_point_color: str = 'r'#
Matplotlib color for gradient constraint points, by default
"r"
(red).
- slewrate_point_color: str = 'b'#
Matplotlib color for slew rate constraint points, by default
"b"
(blue).