plotly / plotly/plotly_matlab

Saving figures in offline mode

Open
#144 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
MATLAB
Stars
413
Forks
166
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the offline example with plot, fig2plotly, and saveplotlyfig, then trace the reported path through plotlyfig/saveas, plotlygenimage, and response_handler. Determine why offline export still requests an account for PDF, and verify that saving to PDF, SVG, and PNG works without an account.

Written by the indexing model from the issue text.

Assessment

Tech stack
matlab
Domain
data-visualization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.