fix tests
This commit is contained in:
parent
5cd139720d
commit
1740d5a38a
@ -305,8 +305,9 @@ const _plot_defaults = KW(
|
|||||||
:dpi => DPI, # dots per inch for images, etc
|
:dpi => DPI, # dots per inch for images, etc
|
||||||
:thickness_scaling => 1,
|
:thickness_scaling => 1,
|
||||||
:display_type => :auto,
|
:display_type => :auto,
|
||||||
|
:warn_on_unsupported => true,
|
||||||
:extra_plot_kwargs => Dict(),
|
:extra_plot_kwargs => Dict(),
|
||||||
:extra_kwargs => :series # directs collection of extra_kwargs
|
:extra_kwargs => :series, # directs collection of extra_kwargs
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@ -1123,9 +1124,6 @@ const _already_warned = Dict{Symbol,Set{Symbol}}()
|
|||||||
const _to_warn = Set{Symbol}()
|
const _to_warn = Set{Symbol}()
|
||||||
|
|
||||||
function warn_on_unsupported_args(pkg::AbstractBackend, plotattributes)
|
function warn_on_unsupported_args(pkg::AbstractBackend, plotattributes)
|
||||||
if !get(plotattributes, :warn_on_unsupported, _plot_defaults[:warn_on_unsupported])
|
|
||||||
return
|
|
||||||
end
|
|
||||||
empty!(_to_warn)
|
empty!(_to_warn)
|
||||||
bend = backend_name(pkg)
|
bend = backend_name(pkg)
|
||||||
already_warned = get!(_already_warned, bend, Set{Symbol}())
|
already_warned = get!(_already_warned, bend, Set{Symbol}())
|
||||||
@ -1141,7 +1139,8 @@ function warn_on_unsupported_args(pkg::AbstractBackend, plotattributes)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if !isempty(_to_warn)
|
if !isempty(_to_warn) &&
|
||||||
|
!get(plotattributes, :warn_on_unsupported, _plot_defaults[:warn_on_unsupported])
|
||||||
for k in sort(collect(_to_warn))
|
for k in sort(collect(_to_warn))
|
||||||
push!(already_warned, k)
|
push!(already_warned, k)
|
||||||
@warn("Keyword argument $k not supported with $pkg. Choose from: $(supported_attrs(pkg))")
|
@warn("Keyword argument $k not supported with $pkg. Choose from: $(supported_attrs(pkg))")
|
||||||
|
|||||||
BIN
tmpplotsave.hdf5
Normal file
BIN
tmpplotsave.hdf5
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user