plotly_matlab icon indicating copy to clipboard operation
plotly_matlab copied to clipboard

Saving figures in offline mode

Open GorgiAstro opened this issue 6 years ago • 1 comments

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{:});

GorgiAstro avatar Feb 21 '19 16:02 GorgiAstro

Is there a way to save the Plotly Plot as JSON file? Something like in the Python API?

RoyiAvital avatar Jan 09 '21 13:01 RoyiAvital