Setting themes
by: Kevin Broløs
(Feyn version 3.0 or newer)
In some situations, such as if you're running in a dark mode editor, or if you're looking to publish your results in a journal, you might want to use a different theme.
import feyn
from feyn.plots import Theme
ql = feyn.QLattice()
models = ql.sample_models(['Hello'], 'World')
We have four themes available: Default, Dark, Monochrome and Monochrome Dark
Theme.set_theme('default')
models[0]
These themes also apply to our plots and graphs. We've made a comparison to the stylesheet reference in matplotlib down below, and also showcase some colormaps that are registered with matplotlib.
Theme.set_theme('dark')
models[0]
These themes also apply to our plots and graphs. We've made a comparison to the stylesheet reference in matplotlib down below, and also showcase some colormaps that are registered with matplotlib.



Theme.set_theme('mono')
models[0]
These themes also apply to our plots and graphs. We've made a comparison to the stylesheet reference in matplotlib down below, and also showcase some colormaps that are registered with matplotlib.
Theme.set_theme('mono_dark')
models[0]
These themes also apply to our plots and graphs. We've made a comparison to the stylesheet reference in matplotlib down below, and also showcase some colormaps that are registered with matplotlib.



Full list of feyn colormaps: feyn
, feyn-diverging
, feyn-partial
, feyn-primary
, feyn-highlight
, feyn-secondary
, feyn-accent
.
This should help make our graphs a little easier on the eyes in different editors.