Skip to content

Commit

Permalink
Fix for the figure order issue Calysto#134, copied from @robjhornby
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Vaillant authored and Marc Vaillant committed Apr 3, 2020
1 parent f439f96 commit bdf0c4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions matlab_kernel/kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ def do_execute_direct(self, code):
try:
self._matlab.eval(
"arrayfun("
"@(h, i) print(h, sprintf('{}/%i', i), '-d{}', '-r{}'),"
"get(0, 'children'), (1:{})')".format(
"@(h, i) print(h, sprintf('{}/%06i', i), '-d{}', '-r{}'),"
"get(0, 'children'), ({}:-1:1)')".format(
'/'.join(tmpdir.split(os.sep)),
settings["format"],
settings["resolution"],
Expand Down

0 comments on commit bdf0c4b

Please sign in to comment.