from mpl_bsic import apply_bsic_style, apply_bsic_logo

import matplotlib.pyplot as plt

x = np.linspace(0, 5, 100)
y = np.cos(x)

fig, ax = plt.subplots(1, 1)
ax.set_title('Cos(x)') # set the title before applying the style
apply_bsic_style(fig, ax)
apply_bsic_logo(
    fig,
    ax,
    location='bottom left',
    scale=0.05,
    logo_type='square', # use the square logo
    closeness_to_border=25 # make the logo closer to the border
)

ax.plot(x,y)
run_animations(fig) # only needed for the docs, don't call in the actual code