Apply suggestions from code review
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
08dbb4f512
commit
c65cffff2a
@ -54,17 +54,14 @@ const _all_magic_args =
|
|||||||
Set(union(_magic_axis_args, _magic_series_args, _magic_subplot_args))
|
Set(union(_magic_axis_args, _magic_series_args, _magic_subplot_args))
|
||||||
|
|
||||||
const _all_axis_args = union(_axis_args, _magic_axis_args)
|
const _all_axis_args = union(_axis_args, _magic_axis_args)
|
||||||
const _lettered_all_axis_args = Set([Symbol(letter, kw) for letter in (:x, :y, :z) for kw in _all_axis_args])
|
const _lettered_all_axis_args =
|
||||||
|
Set([Symbol(letter, kw) for letter in (:x, :y, :z) for kw in _all_axis_args])
|
||||||
const _all_subplot_args = union(_subplot_args, _magic_subplot_args)
|
const _all_subplot_args = union(_subplot_args, _magic_subplot_args)
|
||||||
const _all_series_args = union(_series_args, _magic_series_args)
|
const _all_series_args = union(_series_args, _magic_series_args)
|
||||||
const _all_plot_args = _plot_args
|
const _all_plot_args = _plot_args
|
||||||
|
|
||||||
const _all_args = union(
|
const _all_args =
|
||||||
_lettered_all_axis_args,
|
union(_lettered_all_axis_args, _all_subplot_args, _all_series_args, _all_plot_args)
|
||||||
_all_subplot_args,
|
|
||||||
_all_series_args,
|
|
||||||
_all_plot_args,
|
|
||||||
)
|
|
||||||
|
|
||||||
# add all pluralized forms to the _keyAliases dict
|
# add all pluralized forms to the _keyAliases dict
|
||||||
for arg in _all_args
|
for arg in _all_args
|
||||||
|
|||||||
@ -10,7 +10,7 @@ using Plots, Test
|
|||||||
end
|
end
|
||||||
|
|
||||||
@testset "Axis Attributes" begin
|
@testset "Axis Attributes" begin
|
||||||
pl = @test_nowarn plot(; tickfont=font(10,"Times"))
|
pl = @test_nowarn plot(; tickfont = font(10, "Times"))
|
||||||
for axis in (:xaxis, :yaxis, :zaxis)
|
for axis in (:xaxis, :yaxis, :zaxis)
|
||||||
@test pl[1][axis][:tickfontsize] == 10
|
@test pl[1][axis][:tickfontsize] == 10
|
||||||
@test pl[1][axis][:tickfontfamily] == "Times"
|
@test pl[1][axis][:tickfontfamily] == "Times"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user