Skip to content

Commit c30c9fa

Browse files
authored
plotlyoffline: fix when filename is returned as a cellstr
In some cases, the filename is obtained as a cellstr. This edit converts to a valid char filename to be used for local storage.
1 parent 146808b commit c30c9fa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

plotly/plotly_offline_aux/plotlyoffline.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
% template entire script
7272
offline_script = [dep_script env_script plotly_script];
7373
filename = plotlyfig.PlotOptions.FileName;
74+
if iscellstr(filename), filename = sprintf('%s ', filename{:}); end
7475

7576
% remove the whitespace from the filename
7677
clean_filename = filename(filename~=' ');

0 commit comments

Comments
 (0)