Skip to content

Commit 3d428f4

Browse files
authored
fix #294
fix #294 by passing filepath from `save` to `get_tikz_code`
1 parent 0ea7930 commit 3d428f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

matplotlib2tikz/save.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ def save(filepath, *args, encoding=None, **kwargs):
245245
For supported values: see ``codecs`` module.
246246
:returns: None
247247
"""
248-
code = get_tikz_code(*args, **kwargs)
248+
code = get_tikz_code(*args, filepath=filepath, **kwargs)
249249
file_handle = codecs.open(filepath, "w", encoding)
250250
try:
251251
file_handle.write(code)

0 commit comments

Comments
 (0)