Skip to content

Commit

Permalink
fix for Makie 0.15
Browse files Browse the repository at this point in the history
  • Loading branch information
j-fu committed Jul 18, 2021
1 parent 8b2a3fa commit e296e71
Show file tree
Hide file tree
Showing 2 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
@@ -1,7 +1,7 @@
name = "GridVisualize"
uuid = "5eed8a63-0fb0-45eb-886d-8d5a387d12b8"
authors = ["Juergen Fuhrmann <[email protected]>"]
version = "0.2.10"
version = "0.2.11"

[deps]
ColorSchemes = "35d6a980-a343-548e-a6ea-1d62b119f2f4"
Expand Down
10 changes: 5 additions & 5 deletions src/makie.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ function initialize!(p::GridVisualizer,::Type{MakieType})
Makie=p.context[:Plotter]

# Check for version compatibility
version_min=v"0.13"
version_max=v"0.13.99"
version_min=v"0.15"
version_max=v"0.15.99"

version_installed=PkgVersion.Version(Makie.Makie)

Expand Down Expand Up @@ -432,7 +432,7 @@ This uses a gridlayout and its protrusion capabilities.
"""
function makescene2d(ctx)
Makie=ctx[:Plotter]
GL=Makie.GridLayout(parent=ctx[:figure])
GL=Makie.GridLayout(ctx[:figure])
GL[1,1]=ctx[:scene]
if ctx[:colorbar]==:vertical
GL[1,2]=Makie.Colorbar(ctx[:figure],ctx[:poly],width=15, textsize=0.5*ctx[:fontsize],ticklabelsize=0.5*ctx[:fontsize])
Expand All @@ -444,7 +444,7 @@ end

function makescene2d_grid(ctx)
Makie=ctx[:Plotter]
GL=Makie.GridLayout(parent=ctx[:figure])
GL=Makie.GridLayout(ctx[:figure])
GL[1,1]=ctx[:scene]
ncol=length(ctx[:cmap])
if ctx[:colorbar]==:vertical
Expand Down Expand Up @@ -635,7 +635,7 @@ This uses a gridlayout and its protrusion capabilities.

function makescene3d(ctx)
Makie=ctx[:Plotter]
GL=Makie.GridLayout(parent=ctx[:figure],default_rowgap=0)
GL=Makie.GridLayout(ctx[:figure];default_rowgap=0)
if ctx[:scene3d]=="LScene"
# LScene has no title, put the title into protrusion space on top of the scene
GL[1,1,Makie.Top()]=Makie.Label(ctx[:figure],
Expand Down

2 comments on commit e296e71

@j-fu
Copy link
Member Author

@j-fu j-fu commented on e296e71 Jul 18, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/41121

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.2.11 -m "<description of version>" e296e710930d2277f4c2a8a000cfadf047776190
git push origin v0.2.11

Please sign in to comment.