plotly / plotly/plotly_matlab

Saving figures in offline mode

未关闭
#144 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
MATLAB
星标
413
派生
166
PR 合并指标
30 天内没有已合并 PR

描述

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

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

使用 plot、fig2plotly 和 saveplotlyfig 重现离线示例,然后通过 plotlyfig/saveas、plotlygenimage 和 response_handler 跟踪报告的路径。确定离线导出为何仍会为 PDF 请求账户,并验证无需账户即可保存为 PDF、SVG 和 PNG。

由索引模型根据 Issue 内容生成。

评估

技术栈
matlab
领域
data-visualization
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。