visualize_5_18.py 266 B

123456789
  1. def get_figure(show, r, figtype, fig_name, theme):
  2. if show:
  3. plt.show()
  4. else:
  5. plt.savefig(fig_name+'.'+figtype, format=figtype, bbox_inches='tight', dpi=r)
  6. if theme == 'dark':
  7. plt.style.use('default')
  8. plt.clf()
  9. plt.close()