Merge 8f85c1559b574cc52e0283c1ea52de80fabac2fb into 13141feb4f3a7a950ba0e471b11617ecd1d8f6a2
This commit is contained in:
commit
4d4bb11b05
71
src/Plots.jl
71
src/Plots.jl
@ -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,
|
||||
@ -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...)
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
using Plots, Test
|
||||
import Plots: Shape
|
||||
|
||||
@testset "Shapes" begin
|
||||
@testset "Type" begin
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
using Plots, Test
|
||||
import Plots: Shape
|
||||
pgfplotsx()
|
||||
|
||||
function create_plot(args...; kwargs...)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user