domplotlib.styles
¶
Each of these styles expose plt
, which is an alias of matplotlib.pyplot
. Importing one of these styles configures matplotlib to use the desired style.
The styles currently available are:
default
– The default matplotlib style. Forces the backend to beTkAgg
iftkinter
is available.domdf
– A theme adapted fromSolarize_Light2
.
Note
Importing a style for a second time will not change the current style.
Use importlib.reload()
to reload the module after importing to ensure the style is correctly set.