reduce number of exported names

This commit is contained in:
t-bltg 2021-08-03 11:12:41 +02:00
parent c4681682a1
commit 8f85c1559b
3 changed files with 49 additions and 66 deletions

View File

@ -4,7 +4,9 @@ if isdefined(Base, :Experimental) && isdefined(Base.Experimental, Symbol("@optle
@eval Base.Experimental.@optlevel 1
end
const _current_plots_version = VersionNumber(split(first(filter(line -> occursin("version", line), readlines(normpath(@__DIR__, "..", "Project.toml")))), "\"")[2])
const _current_plots_version = VersionNumber(
split(first(filter(line -> occursin("version", line), readlines(normpath(@__DIR__, "..", "Project.toml")))), "\"")[2]
)
using Reexport
@ -26,38 +28,30 @@ import JSON
using Requires
export
grid,
bbox,
plotarea,
@layout,
KW,
wrap,
theme,
plot,
plot!,
attr!,
plot3d,
plot3d!,
current,
default,
with,
twinx,
pie,
pie!,
plot3d,
plot3d!,
OHLC,
annotate!,
title!,
attr!,
xlabel!,
ylabel!,
xlims!,
ylims!,
zlims!,
xticks!,
yticks!,
annotate!,
xflip!,
yflip!,
xaxis!,
@ -68,32 +62,28 @@ export
xlims,
ylims,
zlims,
xlims!,
ylims!,
zlims!,
savefig,
png,
gui,
inline,
closeall,
inline,
png,
pdf,
gui,
backend,
backends,
backend_name,
backend_object,
backend_name,
backends,
backend,
aliases,
Shape,
arrow,
text,
font,
stroke,
brush,
Surface,
OHLC,
arrow,
Segments,
Formatted,
Animation,
frame,
gif,
mov,
mp4,
@ -102,17 +92,6 @@ export
@animate,
@gif,
test_examples,
iter_segments,
coords,
translate,
translate!,
rotate,
rotate!,
center,
BezierCurve,
plotattr,
scalefontsize,
scalefontsizes,
@ -139,8 +118,8 @@ ignorenan_extrema(x) = Base.extrema(x)
# commented out on the insistence of the METADATA maintainers
#Base.transpose(x::Symbol) = x
#Base.transpose(x::String) = x
# Base.transpose(x::Symbol) = x
# Base.transpose(x::String) = x
# ---------------------------------------------------------
@ -231,10 +210,12 @@ let PlotOrSubplot = Union{Plot, Subplot}
global zlims!(plt::PlotOrSubplot, zmin::Real, zmax::Real; kw...) = plot!(plt; zlims = (zmin,zmax), kw...)
global xticks!(plt::PlotOrSubplot, ticks::TicksArgs; kw...) = plot!(plt; xticks = ticks, kw...)
global yticks!(plt::PlotOrSubplot, ticks::TicksArgs; kw...) = plot!(plt; yticks = ticks, kw...)
global xticks!(plt::PlotOrSubplot,
ticks::AVec{T}, labels::AVec{S}; kw...) where {T<:Real,S<:AbstractString} = plot!(plt; xticks = (ticks,labels), kw...)
global yticks!(plt::PlotOrSubplot,
ticks::AVec{T}, labels::AVec{S}; kw...) where {T<:Real,S<:AbstractString} = plot!(plt; yticks = (ticks,labels), kw...)
global xticks!(plt::PlotOrSubplot, ticks::AVec{T}, labels::AVec{S}; kw...) where {T<:Real,S<:AbstractString} = (
plot!(plt; xticks = (ticks,labels), kw...)
)
global yticks!(plt::PlotOrSubplot, ticks::AVec{T}, labels::AVec{S}; kw...) where {T<:Real,S<:AbstractString} = (
plot!(plt; yticks = (ticks,labels), kw...)
)
global xgrid!(plt::PlotOrSubplot, args...; kw...) = plot!(plt; xgrid = args, kw...)
global ygrid!(plt::PlotOrSubplot, args...; kw...) = plot!(plt; ygrid = args, kw...)
global annotate!(plt::PlotOrSubplot, anns...; kw...) = plot!(plt; annotation = anns, kw...)

View File

@ -1,4 +1,5 @@
using Plots, Test
import Plots: Shape
@testset "Shapes" begin
@testset "Type" begin

View File

@ -1,4 +1,5 @@
using Plots, Test
import Plots: Shape
pgfplotsx()
function create_plot(args...; kwargs...)