matplotlib dark_background code example Example: matplotlib dark mode import matplotlib.pyplot as plt plt.style.use('dark_background')