Skip to content

Instantly share code, notes, and snippets.

@kescobo
Last active May 21, 2017 20:28
Show Gist options
  • Save kescobo/05dc86ef903afa0164a1f95c6ea1709e to your computer and use it in GitHub Desktop.
Save kescobo/05dc86ef903afa0164a1f95c6ea1709e to your computer and use it in GitHub Desktop.
Plots error
_
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: https://docs.julialang.org
_ _ _| |_ __ _ | Type "?help" for help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.6.0-rc1.0 (2017-05-07 00:00 UTC)
_/ |\__'_|_|_|\__'_| |
|__/ | x86_64-apple-darwin16.5.0
julia> using Plots
WARNING: deprecated syntax "typealias BBox Measures.Absolute2DBox" at /Users/ksb/.julia/v0.6/Plots/src/Plots.jl:112.
Use "const BBox = Measures.Absolute2DBox" instead.
WARNING: deprecated syntax "typealias AVec AbstractVector" at /Users/ksb/.julia/v0.6/Plots/src/types.jl:6.
Use "const AVec = AbstractVector" instead.
WARNING: deprecated syntax "typealias AMat AbstractMatrix" at /Users/ksb/.julia/v0.6/Plots/src/types.jl:7.
Use "const AMat = AbstractMatrix" instead.
WARNING: deprecated syntax "typealias KW Dict{Symbol,Any}" at /Users/ksb/.julia/v0.6/Plots/src/types.jl:8.
Use "const KW = Dict{Symbol,Any}" instead.
WARNING: deprecated syntax "abstract AbstractBackend" at /Users/ksb/.julia/v0.6/Plots/src/types.jl:12.
Use "abstract type AbstractBackend end" instead.
WARNING: deprecated syntax "abstract AbstractPlot{T<:AbstractBackend}" at /Users/ksb/.julia/v0.6/Plots/src/types.jl:13.
Use "abstract type AbstractPlot{T<:AbstractBackend} end" instead.
WARNING: deprecated syntax "abstract AbstractLayout" at /Users/ksb/.julia/v0.6/Plots/src/types.jl:14.
Use "abstract type AbstractLayout end" instead.
WARNING: deprecated syntax "typealias SubplotMap Dict{Any,Subplot}" at /Users/ksb/.julia/v0.6/Plots/src/types.jl:66.
Use "const SubplotMap = Dict{Any,Subplot}" instead.
WARNING: deprecated syntax "typealias P2 FixedSizeArrays.Vec{2,Float64}" at /Users/ksb/.julia/v0.6/Plots/src/components.jl:4.
Use "const P2 = FixedSizeArrays.Vec{2,Float64}" instead.
WARNING: deprecated syntax "typealias P3 FixedSizeArrays.Vec{3,Float64}" at /Users/ksb/.julia/v0.6/Plots/src/components.jl:5.
Use "const P3 = FixedSizeArrays.Vec{3,Float64}" instead.
WARNING: deprecated syntax "abstract AbstractSurface" at /Users/ksb/.julia/v0.6/Plots/src/components.jl:511.
Use "abstract type AbstractSurface end" instead.
WARNING: deprecated syntax "typealias FuncOrFuncs{F} Union{F,Vector{F},Matrix{F}}" at /Users/ksb/.julia/v0.6/Plots/src/series.jl:10.
Use "FuncOrFuncs{F} = Union{F,Vector{F},Matrix{F}}" instead.
WARNING: deprecated syntax "function Base..*(...)".
Use "function Base.broadcast(::typeof(Base.*), ...)" instead.
WARNING: deprecated syntax "function Base..*(...)".
Use "function Base.broadcast(::typeof(Base.*), ...)" instead.
WARNING: deprecated syntax "_ as an rvalue around /Users/ksb/.julia/v0.6/Plots/src/subplots.jl:35".
julia> scatter(1:3, xticks = (1:3, ["a","b","c"]))
WARNING: Base.cycle is deprecated, use Base.Iterators.cycle instead.
likely near no file:0
WARNING: Base.cycle is deprecated, use Base.Iterators.cycle instead.
likely near no file:0
WARNING: Base.cycle is deprecated, use Base.Iterators.cycle instead.
likely near no file:0
WARNING: Base.cycle is deprecated, use Base.Iterators.cycle instead.
likely near no file:0
WARNING: Base.cycle is deprecated, use Base.Iterators.cycle instead.
likely near no file:0
WARNING: Array{T}(::Type{T}, m::Int) is deprecated, use Array{T}(m) instead.
Stacktrace:
[1] depwarn(::String, ::Symbol) at ./deprecated.jl:64
[2] Array(::Type{Float64}, ::Int64) at ./deprecated.jl:51
[3] indices at ./abstractarray.jl:57 [inlined]
[4] indices1 at ./abstractarray.jl:64 [inlined]
[5] linearindices at ./abstractarray.jl:92 [inlined]
[6] endof at ./abstractarray.jl:127 [inlined]
[7] optimize_ticks_typed(::Float64, ::Float64, ::Bool, ::Array{Tuple{Float64,Float64},1}, ::Int64, ::Int64, ::Int64, ::Float64, ::Float64, ::Float64, ::Float64, ::Bool, ::Void) at /Users/ksb/.julia/v0.6/PlotUtils/src/ticks.jl:162
[8] (::PlotUtils.#kw##optimize_ticks)(::Array{Any,1}, ::PlotUtils.#optimize_ticks, ::Float64, ::Float64) at ./<missing>:0
[9] optimal_ticks_and_labels(::Plots.Axis, ::Void) at /Users/ksb/.julia/v0.6/Plots/src/axes.jl:185
[10] get_ticks(::Plots.Axis) at /Users/ksb/.julia/v0.6/Plots/src/axes.jl:228
[11] tick_padding(::Plots.Axis) at /Users/ksb/.julia/v0.6/Plots/src/backends.jl:71
[12] _update_min_padding!(::Plots.Subplot{Plots.GRBackend}) at /Users/ksb/.julia/v0.6/Plots/src/backends.jl:101
[13] _collect(::Array{Plots.AbstractLayout,2}, ::Base.Generator{Array{Plots.AbstractLayout,2},Plots.#_update_min_padding!}, ::Base.EltypeUnknown, ::Base.HasShape) at ./array.jl:442
[14] _update_min_padding!(::Plots.GridLayout) at /Users/ksb/.julia/v0.6/Plots/src/layouts.jl:302
[15] prepare_output(::Plots.Plot{Plots.GRBackend}) at /Users/ksb/.julia/v0.6/Plots/src/plot.jl:254
[16] display at /Users/ksb/.julia/v0.6/Plots/src/output.jl:133 [inlined]
[17] gui at /Users/ksb/.julia/v0.6/Plots/src/output.jl:123 [inlined]
[18] display(::Base.REPL.REPLDisplay{Base.REPL.LineEditREPL}, ::MIME{Symbol("text/plain")}, ::Plots.Plot{Plots.GRBackend}) at /Users/ksb/.julia/v0.6/Plots/src/output.jl:138
[19] display(::Base.REPL.REPLDisplay{Base.REPL.LineEditREPL}, ::Plots.Plot{Plots.GRBackend}) at ./REPL.jl:125
[20] display(::Plots.Plot{Plots.GRBackend}) at ./multimedia.jl:194
[21] eval(::Module, ::Any) at ./boot.jl:235
[22] print_response(::Base.Terminals.TTYTerminal, ::Any, ::Void, ::Bool, ::Bool, ::Void) at ./REPL.jl:144
[23] print_response(::Base.REPL.LineEditREPL, ::Any, ::Void, ::Bool, ::Bool) at ./REPL.jl:129
[24] (::Base.REPL.#do_respond#16{Bool,Base.REPL.##26#36{Base.REPL.LineEditREPL,Base.REPL.REPLHistoryProvider},Base.REPL.LineEditREPL,Base.LineEdit.Prompt})(::Base.LineEdit.MIState, ::Base.AbstractIOBuffer{Array{UInt8,1}}, ::Bool) at ./REPL.jl:645
[25] eval(::Module, ::Any) at ./boot.jl:235
[26] run_interface(::Base.Terminals.TTYTerminal, ::Base.LineEdit.ModalInterface) at ./LineEdit.jl:1583
[27] run_frontend(::Base.REPL.LineEditREPL, ::Base.REPL.REPLBackendRef) at ./REPL.jl:942
[28] run_repl(::Base.REPL.LineEditREPL, ::Base.##507#508) at ./REPL.jl:180
[29] _start() at ./client.jl:413
while loading no file, in expression starting on line 0
Error showing value of type Plots.Plot{Plots.GRBackend}:
ERROR: Unknown ticks type in get_ticks: Tuple{UnitRange{Int64},Array{String,1}}
Stacktrace:
[1] get_ticks(::Plots.Axis) at /Users/ksb/.julia/v0.6/Plots/src/axes.jl:236
[2] tick_padding(::Plots.Axis) at /Users/ksb/.julia/v0.6/Plots/src/backends.jl:71
[3] _update_min_padding!(::Plots.Subplot{Plots.GRBackend}) at /Users/ksb/.julia/v0.6/Plots/src/backends.jl:104
[4] _collect(::Array{Plots.AbstractLayout,2}, ::Base.Generator{Array{Plots.AbstractLayout,2},Plots.#_update_min_padding!}, ::Base.EltypeUnknown, ::Base.HasShape) at ./array.jl:442
[5] _update_min_padding!(::Plots.GridLayout) at /Users/ksb/.julia/v0.6/Plots/src/layouts.jl:302
[6] prepare_output(::Plots.Plot{Plots.GRBackend}) at /Users/ksb/.julia/v0.6/Plots/src/plot.jl:254
[7] display at /Users/ksb/.julia/v0.6/Plots/src/output.jl:133 [inlined]
[8] gui at /Users/ksb/.julia/v0.6/Plots/src/output.jl:123 [inlined]
[9] display(::Base.REPL.REPLDisplay{Base.REPL.LineEditREPL}, ::MIME{Symbol("text/plain")}, ::Plots.Plot{Plots.GRBackend}) at /Users/ksb/.julia/v0.6/Plots/src/output.jl:138
[10] display(::Base.REPL.REPLDisplay{Base.REPL.LineEditREPL}, ::Plots.Plot{Plots.GRBackend}) at ./REPL.jl:125
[11] display(::Plots.Plot{Plots.GRBackend}) at ./multimedia.jl:194
[12] eval(::Module, ::Any) at ./boot.jl:235
[13] print_response(::Base.Terminals.TTYTerminal, ::Any, ::Void, ::Bool, ::Bool, ::Void) at ./REPL.jl:144
[14] print_response(::Base.REPL.LineEditREPL, ::Any, ::Void, ::Bool, ::Bool) at ./REPL.jl:129
[15] (::Base.REPL.#do_respond#16{Bool,Base.REPL.##26#36{Base.REPL.LineEditREPL,Base.REPL.REPLHistoryProvider},Base.REPL.LineEditREPL,Base.LineEdit.Prompt})(::Base.LineEdit.MIState, ::Base.AbstractIOBuffer{Array{UInt8,1}}, ::Bool) at ./REPL.jl:645
julia> Pkg.status()
6 required packages:
- Atom 0.5.10
- Bio 0.4.7
- DataFrames 0.10.0
- GR 0.20.0
- Plots 0.11.2
- StatPlots 0.3.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment