drop the remnants of v0.6 compatibility
This commit is contained in:
parent
f60ad6489c
commit
3f1ba33b36
1
REQUIRE
1
REQUIRE
@ -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
|
||||||
|
|||||||
10
src/Plots.jl
10
src/Plots.jl
@ -13,7 +13,6 @@ 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
|
||||||
@ -21,15 +20,8 @@ if VERSION >= v"0.7-"
|
|||||||
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
|
||||||
|
|||||||
@ -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)
|
||||||
|
|||||||
@ -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)]
|
||||||
),
|
),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user