In [1]:
import matplotlib.pyplot as plt
import numpy as np
import mpls

%matplotlib inline


def sinplot(flip=1):
    x = np.linspace(0, 14, 100)
    for i in range(1, 7):
        plt.plot(x, np.sin(x + i * .5) * (7 - i) * flip)

In [2]:
mpls.use(context='water_resour_res', style='water_resour_res', palette='rwth-ci')
sinplot()



In [3]:
with mpls.temp(context='a5'):
    sinplot()



In [4]:
# mixed use of matplotlib styles and mpls styles
mpls.use('default', 'dark_background', context='a5')
sinplot()



In [5]:
with mpls.temp(context='a5-landscape', reset=True):
    sinplot()



In [ ]: