PyPlot.jl icon indicating copy to clipboard operation
PyPlot.jl copied to clipboard

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

Open songroom2016 opened this issue 9 years ago • 0 comments
trafficstars

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.

songroom2016 avatar Jul 31 '16 15:07 songroom2016