plotly_matlab
plotly_matlab copied to clipboard
Saving figures in offline mode
It seems that it is not possible to save figures to SVG/PDF/PNG in offline mode:
plot(1:10); plotlyfig = fig2plotly(gcf, 'offline', true); saveplotlyfig(plotlyfig,'myPlotlyFig','pdf');
Gives the following output:
Error using response_handler (line 29) Aw, snap! We don't have an account for . Want to try again? Sign in is not case sensitive.
Error in plotlygenimage (line 63) response_handler(response_string, extras);
Error in plotlyfig/saveas (line 332) plotlygenimage(imgfig, filename, varargin{:});
Error in saveplotlyfig (line 68) p.saveas(filename, varargin{:});
Is there a way to save the Plotly Plot as JSON
file?
Something like in the Python API?