Plotting with generated dataΒΆ

This example illustrates basic plotting functionality using generated data.

  • ../_images/sphx_glr_plot_generated_001.png
  • ../_images/sphx_glr_plot_generated_002.png
  • ../_images/sphx_glr_plot_generated_003.png

Out:

set0   set1   set2
False  False  False      56
              True      283
       True   False    1279
              True     5882
True   False  False      24
              True       90
       True   False     429
              True     1957
Name: value, dtype: int64

from matplotlib import pyplot as plt
from upsetplot import generate_data, plot

example = generate_data(aggregated=True)
print(example)

plot(example)
plt.suptitle('Ordered by degree')
plt.show()

plot(example, sort_by='cardinality')
plt.suptitle('Ordered by cardinality')
plt.show()

plot(example, show_counts='%d')
plt.suptitle('With counts shown')
plt.show()

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

Gallery generated by Sphinx-Gallery