Skip to content

Commit 4c8e07f

Browse files
committed
update recipes to 0.24.1
1 parent ea692ab commit 4c8e07f

File tree

2 files changed

+19
-22
lines changed

2 files changed

+19
-22
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ Makie = "ee78f7c6-11fb-53f2-987a-cfe4a2b5a57a"
88
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
99

1010
[compat]
11-
julia = "1.10"
1211
Makie = "0.24.1"
12+
julia = "1.10"
1313

1414
[extras]
1515
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"

src/Recipes.jl

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,15 @@ fig
2929
```
3030
3131
"""
32-
@recipe(SmithPlot, z) do scene
33-
Attributes(
34-
color=:teal,
35-
colormap=:viridis,
36-
line_width=2.8,
37-
linestyle=:solid,
38-
label=nothing,
39-
reflection=false,
40-
freq = Float64[],
41-
cycle=[:color]
42-
)
32+
@recipe SmithPlot (z, ) begin
33+
color=:teal
34+
colormap=:viridis
35+
line_width=2.8
36+
linestyle=:solid
37+
label=nothing
38+
reflection=false
39+
freq = Float64[]
40+
cycle=[:color]
4341
end
4442

4543
Makie.preferred_axis_type(plot::SmithPlot) = SmithAxis
@@ -74,17 +72,15 @@ fig
7472
7573
7674
"""
77-
@recipe(SmithScatter, z) do scene
78-
Attributes(
79-
color=:teal,
80-
colormap=:viridis,
81-
marker=:circle,
82-
markersize=9,
83-
label="",
84-
reflection=false,
85-
freq = Float64[],
75+
@recipe SmithScatter (z, ) begin
76+
color=:teal
77+
colormap=:viridis
78+
marker=:circle
79+
markersize=9
80+
label=""
81+
reflection=false
82+
freq = Float64[]
8683
cycle=[:color]
87-
)
8884
end
8985

9086
Makie.preferred_axis_type(plot::SmithScatter) = SmithAxis
@@ -209,6 +205,7 @@ end
209205

210206

211207
function Makie.plot!(sc::SmithScatter)
208+
@show sc.attributes
212209
z = sc[1]
213210
color = sc[:color]
214211
markersize = sc[:markersize]

0 commit comments

Comments
 (0)