So here is the simple code that is producing a subplot with dark background:-
import matplotlib.pyplot as plt
fig, ax = plt.subplots(figsize=(6,6), facecolor='black')
ax.set_facecolor('black')
And I want this image which is in .svg
format to be added to the subplot. While using PIL's Image.open()
and plt.imread
I am getting UnidentifiedImageError
. What should I do to read in the .svg
file and add it to the subplot.