Skip to content

Commit

Permalink
Change deprecated textsize to fontsize (#21)
Browse files Browse the repository at this point in the history
* change textsize to fontsize in plot to work with newer Makie versions

* add warning for users of older Makie versions
  • Loading branch information
andrewwinters5000 committed Jan 19, 2023
1 parent c7f9ca8 commit 35e02a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/HOHQMesh.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ function __init__()
# Enable features that depend on the availability of the Makie package
@require Makie="ee78f7c6-11fb-53f2-987a-cfe4a2b5a57a" begin
using .Makie
if isdefined(Makie, :to_textsize)
@warn "You seem to be using an older version of Makie (< v0.19). Some plotting functions may not work."
end
include("Viz/VizProject.jl")
include("Viz/VizMesh.jl")
# Make the actual plotting routines available
Expand Down
2 changes: 1 addition & 1 deletion src/Viz/VizProject.jl
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ function plotCurve(plt, points::Matrix{Float64}, legendLabel::String, curveLabel
# theta = 0.0
# end
pp = (points[np,1],points[np,2])
text!(plt[1,1],curveLabel,textsize = 28, position = pp, align = (:center,:center) )
text!(plt[1,1],curveLabel, fontsize = 28, position = pp, align = (:center,:center) )
end


Expand Down

0 comments on commit 35e02a2

Please sign in to comment.