首页 > 解决方案 > 当使用 fig2plotly 函数生成绘图图表时,当我的 MATLAB 绘图的轴是日期时间变量时它失败了

问题描述

使用 fig2plotly 函数生成绘图图表时,当我的 MATLAB 绘图的轴是日期时间变量时,它会失败。如果我用数字变量替换轴,它工作正常。此错误的任何修复?

以下是错误:

使用 response_handler 时出错(第 31 行)嗯... Plotly 在解码您的“args”时遇到了一些麻烦。您确定您的数据或样式对象的格式正确吗?查看 https://plotly.com/api上的示例以获取指导。

需要帮忙?请尝试搜索 Plotly 的 http://stackoverflow.com/questions/tagged/plotly'>Stack Overflow 频道。

makecall 出错(第 32 行) response_handler(resp);

plotly 错误(第 28 行) response = makecall(args, origin, structargs);

plotlyfig/plotly 错误(第 437 行)响应 = plotly(obj.data,args);

fig2plotly 中的错误(第 49 行)p.plotly;

creatplot4googlesites_usingploty 中的错误(第 29 行)resp = fig2plotly(fig);

标签: matlab

解决方案


推荐阅读