djwooten / synergy

Python library for calculting synergy of drug combinations using several drug synergy frameworks
GNU General Public License v3.0
30 stars 6 forks source link

no save figure option #3

Closed menchant closed 3 years ago

menchant commented 3 years ago

great tool for synergy analysis. I'm wondering how to export figures as png or pdf etc. after the model.plot_heatmap.

genevievebo commented 3 years ago

You can pass a filename to plot_heatmap() via the parameter fname. For example,
model.plot_heatmap(d1, d2, fname='figure.png')

plot_heatmap uses matplotlib to create the graph. Passing a filename will use the matplotlib.pyplot function plt.savefig(). I'm using version 0.4.1.

menchant commented 3 years ago

You can pass a filename to plot_heatmap() via the parameter fname. For example, model.plot_heatmap(d1, d2, fname='figure.png')

plot_heatmap uses matplotlib to create the graph. Passing a filename will use the matplotlib.pyplot function plt.savefig(). I'm using version 0.4.1.

thank you very much!