fix bug that cause SvgFigureHandler to fail if the target diractory doesn't already exist
This commit is contained in:
parent
7ba561eb98
commit
428651fa8a
|
@ -424,6 +424,7 @@ class SvgFigureHandler(IFigureHandler):
|
|||
self._out_svg_dir_path = out_svg_dir_path
|
||||
|
||||
def on_figure_ended(self, fig):
|
||||
os.makedirs(self._out_svg_dir_path, exist_ok=True)
|
||||
fig.savefig(self._out_svg_dir_path + '/' + fig.axes[0].get_title() + '.svg')
|
||||
|
||||
def on_finalize(self):
|
||||
|
|
Loading…
Reference in New Issue