Answers for "matoplotlib set white background"

0

plt text matplotlib white background

import numpy as np
import matplotlib.pyplot as plt
plt.figure()
ax = plt.subplot(111)
plt.plot(np.linspace(1,0,1000))
t = plt.text(0.03,.95,'text',transform=ax.transAxes,backgroundcolor='0.75',alpha=.5)
plt.show()
Posted by: Guest on December-14-2020
0

matoplotlib set white background

import matplotlib.pyplot as plt
plt.style.use('dark_background')
Posted by: Guest on April-11-2022

Code answers related to "matoplotlib set white background"

Python Answers by Framework

Browse Popular Code Answers by Language