Skip to content

Commit 9abe18a

Browse files
author
Steven Silvester
authored
Merge pull request #139 from kb1ooo/figure-order-fix
Fix for the figure order issue #134, copied from @robjhornby
2 parents f439f96 + bdf0c4b commit 9abe18a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

matlab_kernel/kernel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ def do_execute_direct(self, code):
108108
try:
109109
self._matlab.eval(
110110
"arrayfun("
111-
"@(h, i) print(h, sprintf('{}/%i', i), '-d{}', '-r{}'),"
112-
"get(0, 'children'), (1:{})')".format(
111+
"@(h, i) print(h, sprintf('{}/%06i', i), '-d{}', '-r{}'),"
112+
"get(0, 'children'), ({}:-1:1)')".format(
113113
'/'.join(tmpdir.split(os.sep)),
114114
settings["format"],
115115
settings["resolution"],

0 commit comments

Comments
 (0)