Skip to content

Commit

Permalink
Removed deprecated keyword from plotting (#50)
Browse files Browse the repository at this point in the history
* removed deprecated keyword resolution in favor of size

* bump compat for CairoMakie
  • Loading branch information
andrewwinters5000 authored Apr 4, 2024
1 parent c55aa26 commit c7f497f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/Viz/VizProject.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Contents are overlaid in the order: GRID, MESH, MODEL, REFINEMENTS
function plotProject!(proj::Project, plotOptions::Int = 0)

if isnothing(proj.plt)
proj.plt = Figure(resolution = (1000, 1000))
proj.plt = Figure(size = (1000, 1000))
end
plt = proj.plt
ax = plt[1,1] = Axis(plt)
Expand Down Expand Up @@ -120,7 +120,7 @@ This version replots the figure with the current options. Legacy.
"""
function updatePlot!(proj::Project)
if !isnothing(proj.plt)
proj.plt = Figure(resolution = (1000, 1000))
proj.plt = Figure(size = (1000, 1000))
plotOptions = proj.plotOptions
plotProject!(proj, plotOptions)
end
Expand All @@ -138,7 +138,7 @@ Example: updatePlot!(p, MESH + MODEL)
"""
function updatePlot!(proj::Project, plotOptions::Int)
if !isnothing(proj.plt)
proj.plt = Figure(resolution = (1000, 1000))
proj.plt = Figure(size = (1000, 1000))
plotProject!(proj, plotOptions)
end
end
Expand Down
2 changes: 1 addition & 1 deletion test/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[compat]
AbaqusReader = "0.2.5"
CairoMakie = "0.6, 0.7, 0.8"
CairoMakie = "0.11"

0 comments on commit c7f497f

Please sign in to comment.