drop the remnants of v0.6 compatibility

This commit is contained in:
Ralph A. Smith 2018-06-17 17:23:42 -04:00
parent f60ad6489c
commit 3f1ba33b36
4 changed files with 10 additions and 25 deletions

View File

@ -1,5 +1,4 @@
julia 0.7 julia 0.7
Compat 0.69
RecipesBase 0.2.3 RecipesBase 0.2.3
PlotUtils 0.4.1 PlotUtils 0.4.1
PlotThemes 0.1.3 PlotThemes 0.1.3

View File

@ -13,23 +13,15 @@ using Base.Meta
@reexport using PlotUtils @reexport using PlotUtils
@reexport using PlotThemes @reexport using PlotThemes
if VERSION >= v"0.7-" import Dates
import Dates using Dates: Date, DateTime
using Dates: Date, DateTime using Printf: @printf, @sprintf
using Printf: @printf, @sprintf using REPL: REPLDisplay
using REPL: REPLDisplay using Base64: base64encode
using Base64: base64encode using Base.Sys: isapple, islinux, iswindows, isbsd
using Base.Sys: isapple, islinux, iswindows, isbsd import Pkg
import Pkg using LinearAlgebra: Transpose
const euler_e = Base.MathConstants.e const euler_e = Base.MathConstants.e
else
using Compat
using Compat.Sys: isapple, islinux, iswindows, isbsd
import Compat: maximum
maximum(arg::Tuple) = Base.maximum(arg)
using Base.REPL: REPLDisplay
const euler_e = Base.e
end
import Showoff import Showoff
import StatsBase import StatsBase

View File

@ -14,7 +14,6 @@ backend_name() = CURRENT_BACKEND.sym
_backend_instance(sym::Symbol) = haskey(_backendType, sym) ? _backendType[sym]() : error("Unsupported backend $sym") _backend_instance(sym::Symbol) = haskey(_backendType, sym) ? _backendType[sym]() : error("Unsupported backend $sym")
# kludge while waiting for Pkg alternatives # kludge while waiting for Pkg alternatives
if VERSION >= v"0.7-"
function _findmod(f::Symbol) function _findmod(f::Symbol)
for (u,v) in Base.loaded_modules for (u,v) in Base.loaded_modules
(Symbol(v) == f) && return u (Symbol(v) == f) && return u
@ -26,11 +25,6 @@ function topimport(modname)
u = _findmod(modname) u = _findmod(modname)
@eval $modname = Base.loaded_modules[$u] @eval $modname = Base.loaded_modules[$u]
end end
else
function myimport(modname)
@eval import $modname
end
end
# end kludge # end kludge
macro init_backend(s) macro init_backend(s)

View File

@ -413,7 +413,7 @@ attribute. The default framestyle is `:axes`.
scatter(fill(randn(10), 6), fill(randn(10), 6), scatter(fill(randn(10), 6), fill(randn(10), 6),
framestyle = [:box :semi :origin :zerolines :grid :none], framestyle = [:box :semi :origin :zerolines :grid :none],
title = [":box" ":semi" ":origin" ":zerolines" ":grid" ":none"], title = [":box" ":semi" ":origin" ":zerolines" ":grid" ":none"],
color = RowVector(1:6), layout = 6, label = "", markerstrokewidth = 0, color = Transpose(1:6), layout = 6, label = "", markerstrokewidth = 0,
ticks = -2:2) ticks = -2:2)
end)] end)]
), ),