UpSetPlot icon indicating copy to clipboard operation
UpSetPlot copied to clipboard

saved images in juypter notebook have a gray background

Open aedavids opened this issue 3 years ago • 0 comments

Great package. Really fast and easy

My plots look great in juypter notebook. All the plots have a white background however when I save it to disk them to disk the intersection size plot has a white background as expected. The other plots are grey?

fig = plt.figure(figsize=(figureWidthInInches,figureHeightInInches))
pltDict = UpSet(geneSetsUpsetPlotData, show_counts=True, min_degree=4).plot(fig)
aedwipFile = "aedwip.png"

fig.savefig(aedwipFile, dpi=300, bbox_inches='tight')

If I set facecolor all the plots have the expected white background

fig = plt.figure(figsize=(figureWidthInInches,figureHeightInInches))
pltDict = UpSet(geneSetsUpsetPlotData, show_counts=True, min_degree=4).plot(fig)
aedwipFile = "aedwip.png"

fig.savefig(aedwipFile, dpi=300, bbox_inches='tight', facecolor='white')

p.s. you might want to add some sort of FAQ . how to save image in juypter notebook,

Kind regards

Andy

aedavids avatar Jul 31 '22 21:07 aedavids