JuliaPy / JuliaPy/PyPlot.jl

how to set xdate format from " May 6 2008" to "2008-05-06"?

Open
#235 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
488
Forks
90
PR merge metrics
No merged PRs in 30d

Description

```
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.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the Julia snippet in the issue and inspect PyPlot's date-axis handling and the underlying matplotlib date-formatting documentation. Done means the x-axis labels render dates in the requested YYYY-MM-DD format without breaking the plotted Date values.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia, matplotlib
Domain
data-visualization
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.