Basic: Hiding subsets based on size or degreeΒΆ

This illustrates the use of min_subset_size, max_subset_size, min_degree or max_degree.

from matplotlib import pyplot as plt

from upsetplot import generate_counts, plot

example = generate_counts()

plot(example, show_counts=True)
plt.suptitle("Nothing hidden")
plt.show()
Nothing hidden
plot(example, show_counts=True, min_subset_size=100)
plt.suptitle("Small subsets hidden")
plt.show()
Small subsets hidden
plot(example, show_counts=True, max_subset_size=500)
plt.suptitle("Large subsets hidden")
plt.show()
Large subsets hidden
plot(example, show_counts=True, min_degree=2)
plt.suptitle("Degree <2 hidden")
plt.show()
Degree <2 hidden
plot(example, show_counts=True, max_degree=2)
plt.suptitle("Degree >2 hidden")
plt.show()
Degree >2 hidden

Total running time of the script: ( 0 minutes 1.042 seconds)

Gallery generated by Sphinx-Gallery