Fix matplotlib support

This commit is contained in:
allegroai 2019-08-07 00:38:58 +03:00
parent 66515eab14
commit f22278b233

View File

@ -183,7 +183,10 @@ class PatchedMatplotlib:
plotly_fig = None
image_format = 'jpeg'
fig_dpi = 300
if not force_save_as_image:
if force_save_as_image:
# if this is an image, store as is.
fig_dpi = None
else:
image_format = 'svg'
# noinspection PyBroadException
try: