There's one in this issue
(https://github.com/dcjones/Gadfly.jl/issues/462), where the small
example is pulled from an older issue
(https://github.com/dcjones/Gadfly.jl/issues/189) that seems to
indicate that the same syntax worked ok in February.
The issue also has version information, in case we're using different
versions (but I updated and re-ran the test case before filing the
issue, so that seems unlikely).
There's another bug here (or maybe another symptom of the same bug)
which I find to be pretty weird. If I run Pkg.status() after having
run the test case in that issue, I get this error:
julia> Pkg.status()
ERROR: `convert` has no method matching convert(::Type{UTF8String},
::ASCIIString)
in convert at base.jl:13
in dir at pkg/git.jl:10
in git at pkg/git.jl:16
in success at pkg/git.jl:27
in iscommit at pkg/git.jl:44
in installed_version at ./pkg/read.jl:65
in installed at ./pkg/read.jl:122
in status at pkg/entry.jl:107
in anonymous at pkg/dir.jl:28
in cd at ./file.jl:20
in cd at pkg/dir.jl:28
in status at pkg.jl:28 (repeats 2 times)
That doesn't happen if I run Pkg.status() before I use `plot`, though.
So, plotting somehow redefines convert? If github's code search can be
believed, Gadfly never defines a convert method, so it's not through a
means that 's super obvious to me.
On Fri, Oct 17, 2014 at 10:40 PM, Iain Dunning <[email protected]> wrote:
> Would be good to have reproducible test case, I've been plotting dates in
> Gadfly quite happily.
>
> On Friday, October 17, 2014 6:09:52 PM UTC-4, Dan Luu wrote:
>>
>> I independently ran into this. I was just doing exploratory stuff and
>> didn't care if my plot looked good, so I just converted dates to unix
>> times and plotted against those. That might not be so great if you
>> care about having a pretty plot, though.
>>
>> On Tue, Oct 7, 2014 at 7:56 PM, Arshak Navruzyan <[email protected]> wrote:
>> > I am getting an error trying to plot a date type. I've tried both Dates
>> > package and Datetime
>> >
>> >
>> > df[:datetime]
>> >
>> > 31371-element DataArray{DateTime{ISOCalendar,Zone109},1}:
>> > 2014-10-06T22:40:00 PDT
>> > 2014-10-06T22:40:01 PDT
>> > 2014-10-06T22:40:02 PDT
>> >
>> >
>> > p3 = plot(df,
>> > layer(x=:datetime, y=:left, Geom.line, color=:state)
>> > )
>> >
>> >
>> > `one` has no method matching one(::Type{DateTime{ISOCalendar,Zone109}})
>> >
>> > in optimize_ticks_typed at
>> > /Users/arshakn/.julia/v0.3/Gadfly/src/ticks.jl:67
>> > in optimize_ticks at /Users/arshakn/.julia/v0.3/Gadfly/src/ticks.jl:62
>> > in apply_statistic at
>> > /Users/arshakn/.julia/v0.3/Gadfly/src/statistics.jl:615
>> > in apply_statistics at
>> > /Users/arshakn/.julia/v0.3/Gadfly/src/statistics.jl:37
>> > in render at /Users/arshakn/.julia/v0.3/Gadfly/src/Gadfly.jl:673
>> > in writemime at /Users/arshakn/.julia/v0.3/Gadfly/src/Gadfly.jl:802
>> > in sprint at iostream.jl:229
>> > in display_dict at
>> > /Users/arshakn/.julia/v0.3/IJulia/src/execute_request.jl:31
>> >
>> >