Add option field for data to compute extent
This commit is contained in:
parent
4bb43887a4
commit
41c5dbcf23
@ -371,6 +371,9 @@ const _suppress_warnings = Set{Symbol}([
|
||||
:x_discrete_indices,
|
||||
:y_discrete_indices,
|
||||
:z_discrete_indices,
|
||||
:x_extent_data,
|
||||
:y_extent_data,
|
||||
:z_extent_data,
|
||||
:subplot,
|
||||
:subplot_index,
|
||||
:series_plotindex,
|
||||
|
||||
@ -318,11 +318,16 @@ function expand_extrema!(sp::Subplot, d::KW)
|
||||
|
||||
# first expand for the data
|
||||
for letter in (:x, :y, :z)
|
||||
data = d[if vert
|
||||
letter_ = if vert
|
||||
letter
|
||||
else
|
||||
letter == :x ? :y : letter == :y ? :x : :z
|
||||
end]
|
||||
end
|
||||
|
||||
extent_key = Symbol(letter_, :_extent_data)
|
||||
# if there is extent_key, use it for calculating limits.
|
||||
data = get(d, extent_key, d[letter_])
|
||||
|
||||
axis = sp[Symbol(letter, "axis")]
|
||||
|
||||
if isa(data, Volume)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user