remove @shorthands
This commit is contained in:
parent
40734bf90e
commit
554d7ab887
13
src/Plots.jl
13
src/Plots.jl
@ -30,9 +30,6 @@ export
|
|||||||
with,
|
with,
|
||||||
twinx,
|
twinx,
|
||||||
|
|
||||||
@userplot,
|
|
||||||
@shorthands,
|
|
||||||
|
|
||||||
pie,
|
pie,
|
||||||
pie!,
|
pie!,
|
||||||
plot3d,
|
plot3d,
|
||||||
@ -156,16 +153,6 @@ include("backends.jl")
|
|||||||
|
|
||||||
# ---------------------------------------------------------
|
# ---------------------------------------------------------
|
||||||
|
|
||||||
# define and export shorthand plotting method definitions
|
|
||||||
macro shorthands(funcname::Symbol)
|
|
||||||
funcname2 = Symbol(funcname, "!")
|
|
||||||
esc(quote
|
|
||||||
export $funcname, $funcname2
|
|
||||||
$funcname(args...; kw...) = plot(args...; kw..., seriestype = $(quot(funcname)))
|
|
||||||
$funcname2(args...; kw...) = plot!(args...; kw..., seriestype = $(quot(funcname)))
|
|
||||||
end)
|
|
||||||
end
|
|
||||||
|
|
||||||
@shorthands scatter
|
@shorthands scatter
|
||||||
@shorthands bar
|
@shorthands bar
|
||||||
@shorthands barh
|
@shorthands barh
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user