Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError: key :textsize not found when running doc examples #165

Closed
jchitpin opened this issue Dec 5, 2023 · 2 comments
Closed

KeyError: key :textsize not found when running doc examples #165

jchitpin opened this issue Dec 5, 2023 · 2 comments

Comments

@jchitpin
Copy link

jchitpin commented Dec 5, 2023

I get the following error when running the GraphMakie examples on the docs. Did the textsize parameter change or get renamed by chance?

(Julia v1.9.3, GraphMakie v0.5.8 and Graphs v1.9.0.)

using CairoMakie
using GraphMakie
using Graphs

g = wheel_graph(10)
f, ax, p = graphplot(g)

ERROR: KeyError: key :textsize not found
Stacktrace:
  [1] getindex(h::Dict{Symbol, Observable}, key::Symbol)
    @ Base ./dict.jl:484
  [2] getindex
    @ ~/.julia/packages/MakieCore/UWcwm/src/attributes.jl:106 [inlined]
  [3] getproperty(x::Attributes, key::Symbol)
    @ MakieCore ~/.julia/packages/MakieCore/UWcwm/src/attributes.jl:86
  [4] (::GraphMakie.var"#15#16")(scene::Scene)
    @ GraphMakie ~/.julia/packages/GraphMakie/su35G/src/recipes.jl:121
  [5] default_theme
    @ ~/.julia/packages/MakieCore/UWcwm/src/recipes.jl:177 [inlined]
  [6] apply_theme!(scene::Scene, plot::Plot{GraphMakie.graphplot, Tuple{SimpleGraph{Int64}}})
    @ Makie ~/.julia/packages/Makie/6NLuU/src/interfaces.jl:267
  [7] connect_plot!(parent::Scene, plot::Plot{GraphMakie.graphplot, Tuple{SimpleGraph{Int64}}})
    @ Makie ~/.julia/packages/Makie/6NLuU/src/interfaces.jl:234
  [8] plot!
    @ ~/.julia/packages/Makie/6NLuU/src/interfaces.jl:260 [inlined]
  [9] plot!(ax::Axis, plot::Plot{GraphMakie.graphplot, Tuple{SimpleGraph{Int64}}})
    @ Makie ~/.julia/packages/Makie/6NLuU/src/figureplotting.jl:291
 [10] plot!(fa::Makie.FigureAxis, plot::Plot{GraphMakie.graphplot, Tuple{SimpleGraph{Int64}}})
    @ Makie ~/.julia/packages/Makie/6NLuU/src/figureplotting.jl:288
 [11] _create_plot(F::Function, attributes::Dict{Symbol, Any}, args::SimpleGraph{Int64})
    @ Makie ~/.julia/packages/Makie/6NLuU/src/figureplotting.jl:250
 [12] #graphplot#13
    @ ~/.julia/packages/MakieCore/UWcwm/src/recipes.jl:175 [inlined]
 [13] graphplot(args::SimpleGraph{Int64})
    @ GraphMakie ~/.julia/packages/MakieCore/UWcwm/src/recipes.jl:175
 [14] top-level scope
    @ REPL[5]:1

@hexaeder
Copy link
Collaborator

hexaeder commented Dec 6, 2023

Cannot reproduce, I just tried it in a new environment as everything works as expected:

using Pkg
pkg"activate --temp"
pkg"add GraphMakie@0.5.8, CairoMakie, Graphs"
using Graphs, GraphMakie, CairoMakie

g = wheel_graph(10)
f, ax, p = graphplot(g)

Something seems wrong with your env. Can you show the full output of ] st? textsize is the old name for fontsize, it changed in Makie@0.19, that lead to a breaking change from GraphMakie@0.4 to GraphMakie@0.5 where we renamed everything to fontsize.

@hexaeder
Copy link
Collaborator

hexaeder commented Mar 21, 2024

I'll close this issue, it was probably a problem with versions. Feel free to reopen if it persists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants