InĀ [1]:
# Import libraries
from cycler import cycler
from matplotlib import pyplot as plt
import numpy as np
import pandas as pd
import scipy as sp
from datetime import datetime as dt

# Check versions
from matplotlib import __version__ as mpl_version
from cycler import __version__ as cycler_version
print('Pandas:    ', pd.__version__)
print('Matplotlib:', mpl_version)
print('Cycler:    ', cycler_version)
print('Numpy:     ', np.__version__)
print('Scipy:     ', sp.__version__)

# Define custom colors
blue = '#2343aa88'
red = '#c80533d1'
green = '#23aa4388'
black = '#000000'
orange = '#ff7f2abb'

# Setup colors and linestyles for figures
linestyles = ['-', '--', ':','-.']
colors = [blue, green, red, black]

color_cycle = []
for color in colors:
    color_cycle.extend([color]*len(linestyles))
linestyle_cycle = linestyles * len(colors)

plt.rc('axes', prop_cycle=(cycler('color', color_cycle) + cycler('linestyle', linestyle_cycle)))

# Set default figure size
plt.rcParams["figure.figsize"] = (7,4)

# Print compile date:
print('')
print(f'Notebook version: {dt.now()}')
Pandas:     2.1.4
Matplotlib: 3.8.2
Cycler:     0.12.1
Numpy:      1.26.3
Scipy:      1.11.4

Notebook version: 2024-01-14 18:35:30.535607