Skip to content

Commit

Permalink
Merge pull request #12 from musoke/resol-size
Browse files Browse the repository at this point in the history
fix: `resolution` -> `size`
  • Loading branch information
liuyxpp authored May 10, 2024
2 parents 2437f79 + 2e51672 commit 1f5df1e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ MathTeXEngine = "0a4f8689-d25c-4efe-a92b-7142dfc1aa53"
[compat]
ColorSchemes = "3.14"
Colors = "0.12"
Makie = "0.18, 0.19, 0.20"
Makie = "0.20"
MathTeXEngine = "0.5"
julia = "1.6"
2 changes: 1 addition & 1 deletion src/acs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ function theme_acs(;
bold_italic=texfont(:bolditalic))

theme_args = (figure_padding=0,
resolution=figsize(width, heightwidthratio),
size=figsize(width, heightwidthratio),
colgap=8,
rowgap=8,
# font="Helvetica",
Expand Down
2 changes: 1 addition & 1 deletion src/web.jl
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ function theme_web(;
palette = isnothing(palette) ? pal : palette

return Theme(#figure_padding=0,
resolution=(width, width * heightwidthratio),
size=(width, width * heightwidthratio),
# font="Helvetica",
palette=palette,
Axis=axis_theme,
Expand Down
6 changes: 3 additions & 3 deletions test/Makie_style.jl
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ function theme_acs(width=3.25, colors=ColorSchemes.glasbey_hv_n256.colors)
pal = (color=colors,)

return Theme(figure_padding=2,
resolution=figsize(width),
size=figsize(width),
# font="Helvetica",
palette=pal,
Axis=axis_theme,
Expand Down Expand Up @@ -171,7 +171,7 @@ function test_color_cycle(colors)
newtheme = Theme(figure_padding=2, Scatter=(cycle=Cycle([:color, :marker], covary=true), markersize=7), palette=(color=colors,))
set_theme!(newtheme)

fig = Figure(resolution=figsize(3.25), font = "Helvetica")
fig = Figure(size=figsize(3.25), font = "Helvetica")
ax = Axis(fig, xlabel = L"x", ylabel = L"J_{\nu}(x)",
# xlabel="x coord", ylabel="Bessel function",
xlabelsize=9, ylabelsize=9,
Expand Down Expand Up @@ -221,7 +221,7 @@ save("test.pdf", fig, pt_per_unit=1.0)

# ╔═╡ b7f1f7c9-4d61-4b1a-b75a-5115d3f286e2
function default_color_cycle()
fig = Figure(resolution = (600,400), font = "Helvetica")
fig = Figure(size = (600,400), font = "Helvetica")
ax = Axis(fig, xlabel = L"x", ylabel = L"J_{\nu}(x)", ylabelsize = 22,
xlabelsize= 22, xgridstyle=:dash, ygridstyle=:dash, xtickalign = 1,
xticksize=10, ytickalign=1, yticksize=10, xlabelpadding = -10)
Expand Down

0 comments on commit 1f5df1e

Please sign in to comment.