GR.jl
GR.jl copied to clipboard
barplot doesn't work with GR.jl
using GR
julia> barplot([1.4,2.3,3.1,5.67])
ERROR: TypeError: in cfunction, expected Nothing, got a value of type Int32
Stacktrace:
[1] axeslbl(x_tick::Int64, y_tick::Float64, x_org::Float64, y_org::Float64, major_x::Int64, major_y::Int64, tick_size::Float64, fx::Function, fy::GR.jlgr.var"#10#11"{typeof(identity)})
@ GR ~/.julia/packages/GR/G9I5v/src/GR.jl:2208
[2] draw_axes(kind::Symbol, pass::Int64)
@ GR.jlgr ~/.julia/packages/GR/G9I5v/src/jlgr.jl:467
[3] draw_axes(kind::Symbol)
@ GR.jlgr ~/.julia/packages/GR/G9I5v/src/jlgr.jl:430
[4] plot_data(flag::Bool)
@ GR.jlgr ~/.julia/packages/GR/G9I5v/src/jlgr.jl:1160
[5] plot_data
@ ~/.julia/packages/GR/G9I5v/src/jlgr.jl:1097 [inlined]
[6] barplot(labels::Vector{String}, heights::Vector{Float64}; kv::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ GR.jlgr ~/.julia/packages/GR/G9I5v/src/jlgr.jl:1848
[7] barplot
@ ~/.julia/packages/GR/G9I5v/src/jlgr.jl:1834 [inlined]
[8] barplot(heights::Vector{Float64}; kv::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ GR.jlgr ~/.julia/packages/GR/G9I5v/src/jlgr.jl:1851
[9] barplot
@ ~/.julia/packages/GR/G9I5v/src/jlgr.jl:1851 [inlined]
[10] #barplot#10
@ ~/.julia/packages/GR/G9I5v/src/GR.jl:3497 [inlined]
[11] barplot(args::Vector{Float64})
@ GR ~/.julia/packages/GR/G9I5v/src/GR.jl:3497
[12] top-level scope
@ REPL[12]:1
Thank you for the hint. The problem is now fixed in 205e1e2.