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