how to set xdate format from " May 6 2008" to "2008-05-06"?
未关闭
还没有人认领这个 Issue。
- 主要语言
- Julia
- 星标
- 488
- 派生
- 90
- PR 合并指标
- 30 天内没有已合并 PR
描述
```
using PyPlot;
clf();
close();
fig =figure();
ax = fig[:add_subplot](111)
x = [Date(now()) + Dates.Day(i) for i in collect(1:100)]
y = rand(100)
ax[:plot](x,y, color="red", linewidth=2.0, linestyle="-")
```
but i get x autofmt_xdate ,format such as " May 6 2008"
how to set xdate format as "2008-05-06"?
thanks.
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
复现 issue 中的 Julia 代码片段,并检查 PyPlot 对日期轴的处理方式以及 matplotlib 底层的日期格式化文档。完成的标准是:x 轴标签以所要求的 YYYY-MM-DD 格式渲染日期,同时不破坏绘制的 Date 值。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- julia, matplotlib
- 领域
- data-visualization
- Issue 类型
- 文档
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100