mirror of
https://github.com/vale981/hiroplotutils
synced 2025-03-04 09:01:40 -05:00
create correct dir
This commit is contained in:
parent
5f0fb5d9a5
commit
e5b55e4a30
1 changed files with 1 additions and 1 deletions
|
@ -154,7 +154,7 @@ def get_kwargs():
|
|||
def save_figure(fig, name, extra_meta=None, include_kwags=True, *args, **kwargs):
|
||||
import pickle
|
||||
|
||||
dir = pathlib.Path(f"./figs/")
|
||||
dir = pathlib.Path(f"./figs/{name}.pdf").parents[0]
|
||||
dir.mkdir(exist_ok=True)
|
||||
fig.tight_layout()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue