8000
trying to save an UpSet figure, using the example from the documentation page:
from upsetplot import generate_counts from upsetplot import plot from matplotlib import pyplot
example = generate_counts() plot(example) pyplot.show() pyplot.savefig("myplot.png")
The resulting file is blank.
Swap savefig and show:
savefig
show
plot(example) pyplot.savefig("myplot.png") pyplot.show()
Some more details on why are at https://stackoverflow.com/a/9012749.
Activity
cardi commentedon May 23, 2025
Swap
savefigandshow:Some more details on why are at https://stackoverflow.com/a/9012749.