This is just a short example showing how to custom the background colour of your Venn diagram.
# Library from matplotlib import pyplot as plt from matplotlib_venn import venn2 # Basic Venn v = venn2( (10, 20, 10), alpha = 1 ) # Change Backgroud plt.gca().set_axis_bgcolor('skyblue') plt.gca().set_axis_on() # Show it plt.show()
set_axis_bgcolor has been removed
https://matplotlib.org/api/prev_api_changes/api_changes_2.2.0.html?highlight=set_axis_bgcolor#modules-methods-and-functions