fix !==
This commit is contained in:
parent
f12f6db310
commit
0950c738e3
@ -620,7 +620,7 @@ end
|
||||
|
||||
function gr_set_gradient(series::Series)
|
||||
color = gr_get_color(series)
|
||||
color !=== nothing && gr_set_gradient(color)
|
||||
color !== nothing && gr_set_gradient(color)
|
||||
end
|
||||
|
||||
function gr_get_color(series::Series)
|
||||
|
||||
@ -560,18 +560,18 @@ function colorbar_style(series::Series)
|
||||
elseif iscontour(series)
|
||||
cbar_lines
|
||||
elseif series[:seriestype] ∈ (:heatmap,:surface) ||
|
||||
any(series[z] !=== nothing for z ∈ [:marker_z,:line_z,:fill_z])
|
||||
any(series[z] !== nothing for z ∈ [:marker_z,:line_z,:fill_z])
|
||||
cbar_gradient
|
||||
else
|
||||
nothing
|
||||
end
|
||||
end
|
||||
|
||||
hascolorbar(series::Series) = colorbar_style(series) !=== nothing
|
||||
hascolorbar(series::Series) = colorbar_style(series) !== nothing
|
||||
hascolorbar(sp::Subplot) = sp[:colorbar] != :none && any(hascolorbar(s) for s in series_list(sp))
|
||||
|
||||
iscontour(series::Series) = series[:seriestype] == :contour
|
||||
isfilledcontour(series::Series) = iscontour(series) && series[:fillrange] !=== nothing
|
||||
isfilledcontour(series::Series) = iscontour(series) && series[:fillrange] !== nothing
|
||||
|
||||
function contour_levels(series::Series, clims)
|
||||
iscontour(series) || error("Not a contour series")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user