plotly_matlab icon indicating copy to clipboard operation
plotly_matlab copied to clipboard

'/' in filename causes an issue in Offline Mode

Open yankev opened this issue 9 years ago • 1 comments

The following error is shown in the console, and no plot is generated.

screen shot 2016-05-30 at 12 24 09 pm

yankev avatar May 30 '16 16:05 yankev

The error occurred in the previous line (line 77) in plotlyoffline.m.

file_id = fopen(plotly_offline_file, 'w');

The file_id isreturned as -1 if the file was not created for writing. Then when fprintf is called on the next line, it causes the uninterpretable error. All the error from plotly is saying that the file didn't save.

I think what happened is that there is no such directory. Did you create the folder "test" in the pwd? You can check whether it will succeed by the command exist('test', 'dir'). The value should be 7, and if it's not, the call to fprint will fail. Manually create the folder and try again

twocs avatar Apr 08 '17 04:04 twocs