#174 Change background colour of Venn diagram

 

 

 

 

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()

Leave a Reply

Your email address will not be published.