Auto-format
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
8010fdf453
commit
e8a9d13d6a
@ -400,7 +400,7 @@ const _series_defaults = KW(
|
|||||||
:stride => (1, 1), # array stride for wireframe/surface, the first element is the row stride and the second is the column stride.
|
:stride => (1, 1), # array stride for wireframe/surface, the first element is the row stride and the second is the column stride.
|
||||||
:connections => nothing, # tuple of arrays to specifiy connectivity of a 3d mesh
|
:connections => nothing, # tuple of arrays to specifiy connectivity of a 3d mesh
|
||||||
:z_order => :front, # one of :front, :back or integer in 1:length(sp.series_list)
|
:z_order => :front, # one of :front, :back or integer in 1:length(sp.series_list)
|
||||||
:permute => :none, # tuple of two symbols to be permuted
|
:permute => :none, # tuple of two symbols to be permuted
|
||||||
:extra_kwargs => Dict(),
|
:extra_kwargs => Dict(),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
const _deprecated_attributes = Dict{Symbol, Symbol}(:orientation => :permute)
|
const _deprecated_attributes = Dict{Symbol,Symbol}(:orientation => :permute)
|
||||||
const _all_defaults = KW[_series_defaults, _plot_defaults, _subplot_defaults]
|
const _all_defaults = KW[_series_defaults, _plot_defaults, _subplot_defaults]
|
||||||
|
|
||||||
const _initial_defaults = deepcopy(_all_defaults)
|
const _initial_defaults = deepcopy(_all_defaults)
|
||||||
|
|||||||
@ -351,11 +351,12 @@ function RecipesPipeline.add_series!(plt::Plot, plotattributes)
|
|||||||
sp = _prepare_subplot(plt, plotattributes)
|
sp = _prepare_subplot(plt, plotattributes)
|
||||||
if plotattributes[:permute] != :none
|
if plotattributes[:permute] != :none
|
||||||
letter1, letter2 = plotattributes[:permute]
|
letter1, letter2 = plotattributes[:permute]
|
||||||
if plotattributes[:markershape] == :hline && (plotattributes[:permute] == (:x, :y) ||
|
if plotattributes[:markershape] == :hline &&
|
||||||
plotattributes[:permute] == (:y, :x))
|
(plotattributes[:permute] == (:x, :y) || plotattributes[:permute] == (:y, :x))
|
||||||
plotattributes[:markershape] = :vline
|
plotattributes[:markershape] = :vline
|
||||||
elseif plotattributes[:markershape] == :vline && (plotattributes[:permute] == (:x, :y) ||
|
elseif plotattributes[:markershape] == :vline && (
|
||||||
plotattributes[:permute] == (:y, :x))
|
plotattributes[:permute] == (:x, :y) || plotattributes[:permute] == (:y, :x)
|
||||||
|
)
|
||||||
plotattributes[:markershape] = :hline
|
plotattributes[:markershape] = :hline
|
||||||
end
|
end
|
||||||
plotattributes[letter1], plotattributes[letter2] =
|
plotattributes[letter1], plotattributes[letter2] =
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user