Merge 8f85c1559b574cc52e0283c1ea52de80fabac2fb into 13141feb4f3a7a950ba0e471b11617ecd1d8f6a2

This commit is contained in:
t-bltg 2021-08-04 13:12:34 +02:00 committed by GitHub
commit 4d4bb11b05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 @eval Base.Experimental.@optlevel 1
end 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 using Reexport
@ -26,38 +28,30 @@ import JSON
using Requires using Requires
export export
grid,
bbox,
plotarea,
@layout, @layout,
KW,
wrap,
theme, theme,
plot, plot,
plot!, plot!,
attr!, plot3d,
plot3d!,
current, current,
default, default,
with,
twinx, twinx,
pie, pie,
pie!, pie!,
plot3d, OHLC,
plot3d!,
annotate!,
title!, title!,
attr!,
xlabel!, xlabel!,
ylabel!, ylabel!,
xlims!,
ylims!,
zlims!,
xticks!, xticks!,
yticks!, yticks!,
annotate!,
xflip!, xflip!,
yflip!, yflip!,
xaxis!, xaxis!,
@ -68,32 +62,28 @@ export
xlims, xlims,
ylims, ylims,
zlims, zlims,
xlims!,
ylims!,
zlims!,
savefig, savefig,
png,
gui,
inline,
closeall, closeall,
inline,
png,
pdf,
gui,
backend,
backends,
backend_name,
backend_object, backend_object,
backend_name,
backends,
backend,
aliases, aliases,
Shape, arrow,
text, text,
font, font,
stroke,
brush,
Surface,
OHLC,
arrow,
Segments,
Formatted,
Animation, Animation,
frame,
gif, gif,
mov, mov,
mp4, mp4,
@ -102,17 +92,6 @@ export
@animate, @animate,
@gif, @gif,
test_examples,
iter_segments,
coords,
translate,
translate!,
rotate,
rotate!,
center,
BezierCurve,
plotattr, plotattr,
scalefontsize, scalefontsize,
scalefontsizes, scalefontsizes,
@ -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 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 xticks!(plt::PlotOrSubplot, ticks::TicksArgs; kw...) = plot!(plt; xticks = ticks, kw...)
global yticks!(plt::PlotOrSubplot, ticks::TicksArgs; kw...) = plot!(plt; yticks = ticks, kw...) global yticks!(plt::PlotOrSubplot, ticks::TicksArgs; kw...) = plot!(plt; yticks = ticks, kw...)
global xticks!(plt::PlotOrSubplot, global xticks!(plt::PlotOrSubplot, ticks::AVec{T}, labels::AVec{S}; kw...) where {T<:Real,S<:AbstractString} = (
ticks::AVec{T}, labels::AVec{S}; kw...) where {T<:Real,S<:AbstractString} = plot!(plt; xticks = (ticks,labels), kw...) 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 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 xgrid!(plt::PlotOrSubplot, args...; kw...) = plot!(plt; xgrid = args, kw...)
global ygrid!(plt::PlotOrSubplot, args...; kw...) = plot!(plt; ygrid = args, kw...) global ygrid!(plt::PlotOrSubplot, args...; kw...) = plot!(plt; ygrid = args, kw...)
global annotate!(plt::PlotOrSubplot, anns...; kw...) = plot!(plt; annotation = anns, kw...) global annotate!(plt::PlotOrSubplot, anns...; kw...) = plot!(plt; annotation = anns, kw...)

View File

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

View File

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