# AoG: MethodError: no method matching compute\_axes\_grid(::Layers, ::AlgebraOfGraphics.Scales; axis::Dictionaries.Dictionary{Symbol, Any})

**URL:** https://discourse.julialang.org/t/aog-methoderror-no-method-matching-compute-axes-grid-layers-algebraofgraphics-scales-axis-dictionaries-dictionary-symbol-any/117415
**Category:** General Usage
**Created:** [July 24, 2024, 11:49am UTC](https://discourse.julialang.org/t/aog-methoderror-no-method-matching-compute-axes-grid-layers-algebraofgraphics-scales-axis-dictionaries-dictionary-symbol-any/117415 "2024-07-24T11:49:14Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![vladdez](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vladdez/32/45806_2.png) [@vladdez](https://discourse.julialang.org/u/vladdez)
#### Post date: [July 24, 2024, 11:49am UTC](https://discourse.julialang.org/t/aog-methoderror-no-method-matching-compute-axes-grid-layers-algebraofgraphics-scales-axis-dictionaries-dictionary-symbol-any/117415/1 "2024-07-24T11:49:14Z")

</div>

I updated AoG from 0.6 version to 0.7 and all my tests failed with the same error mentioned in a title:

```julia
ERROR: MethodError: no method matching compute_axes_grid(::Layers, ::AlgebraOfGraphics.Scales; axis::Dictionaries.Dictionary{Symbol, Any})

Closest candidates are:
  compute_axes_grid(::Any, ::AlgebraOfGraphics.AbstractDrawable, ::AlgebraOfGraphics.Scales; axis)
   @ AlgebraOfGraphics ~/.julia/packages/AlgebraOfGraphics/gJmTR/src/algebra/layers.jl:202
  compute_axes_grid(::Any, ::AlgebraOfGraphics.AbstractDrawable; ...)
   @ AlgebraOfGraphics ~/.julia/packages/AlgebraOfGraphics/gJmTR/src/algebra/layers.jl:202

Stacktrace:
  [1] compute_axes_grid(fig::GridPosition, d::Layers, scales::AlgebraOfGraphics.Scales; axis::Dictionaries.Dictionary{…})
    @ AlgebraOfGraphics ~/.julia/packages/AlgebraOfGraphics/gJmTR/src/algebra/layers.jl:205
  [2] (::AlgebraOfGraphics.var"#700#701"{Dictionaries.Dictionary{…}, Layers, AlgebraOfGraphics.Scales})(f::GridPosition)
    @ AlgebraOfGraphics ~/.julia/packages/AlgebraOfGraphics/gJmTR/src/draw.jl:20
  [3] update(f::AlgebraOfGraphics.var"#700#701"{…}, fig::GridPosition)
    @ AlgebraOfGraphics ~/.julia/packages/AlgebraOfGraphics/gJmTR/src/draw.jl:10
  [4] plot!(fig::GridPosition, d::Layers, scales::AlgebraOfGraphics.Scales; axis::Dictionaries.Dictionary{Symbol, Any})
    @ AlgebraOfGraphics ~/.julia/packages/AlgebraOfGraphics/gJmTR/src/draw.jl:20
  [5] (::AlgebraOfGraphics.var"#712#713"{…})(f::GridPosition)
    @ AlgebraOfGraphics ~/.julia/packages/AlgebraOfGraphics/gJmTR/src/draw.jl:98
  [6] update(f::AlgebraOfGraphics.var"#712#713"{…}, fig::GridPosition)
    @ AlgebraOfGraphics ~/.julia/packages/AlgebraOfGraphics/gJmTR/src/draw.jl:10
  [7] _draw!(fig::GridPosition, d::Layers, scales::AlgebraOfGraphics.Scales; axis::Dictionaries.Dictionary{…}, facet::Dictionaries.Dictionary{…})
    @ AlgebraOfGraphics ~/.julia/packages/AlgebraOfGraphics/gJmTR/src/draw.jl:97
  [8] draw!(fig::GridPosition, d::Layers, scales::AlgebraOfGraphics.Scales; axis::@NamedTuple{…}, facet::@NamedTuple{}, palette::Nothing)
    @ AlgebraOfGraphics ~/.julia/packages/AlgebraOfGraphics/gJmTR/src/draw.jl:93
  [9] plot_erp!(f::Figure, plot_data::DataFrame; positions::Nothing, labels::Nothing, categorical_color::Bool, categorical_group::Bool, stderror::Bool, pvalue::Nothing, mapping::@NamedTuple{}, kwargs::@Kwargs{})
    @ UnfoldMakie /store/users/mikheev/projects/unfold_dev/dev/UnfoldMakie/src/plot_erp.jl:138
 [10] plot_erp(plot_data::DataFrame; kwargs::@Kwargs{stderror::Bool})
    @ UnfoldMakie /store/users/mikheev/projects/unfold_dev/dev/UnfoldMakie/src/plot_erp.jl:40
 [11] top-level scope
    @ REPL[33]:2
Some type information was truncated. Use `show(err)` to see complete types.

```

The code is breaking here:

```julia
    plot_equation = basic * mapp
    f_grid = f[1, 1:4]
    drawing = draw!(f_grid, plot_equation; axis = config.axis)

```

Full code is here: [UnfoldMakie.jl/src/plot\_erp.jl at ploterp · unfoldtoolbox/UnfoldMakie.jl · GitHub](https://github.com/unfoldtoolbox/UnfoldMakie.jl/blob/ploterp/src/plot_erp.jl)  
Any ideas what to change? I looked at breaking changes but wasn’t able to figure out what is the problem.

---

<div class="post-metadata">

### Author: ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://discourse.julialang.org/u/jules)
#### Post date: [July 24, 2024, 2:11pm UTC](https://discourse.julialang.org/t/aog-methoderror-no-method-matching-compute-axes-grid-layers-algebraofgraphics-scales-axis-dictionaries-dictionary-symbol-any/117415/2 "2024-07-24T14:11:56Z")

</div>

Not sure, this works for me which repeats the main parts of your code. Can you try to make a reproducible MWE?

```julia
spec = data((;x = 1:10, y = 1:10)) * mapping(:x, :y) * visual(Scatter)
f = Figure()
f_grid = f[1, 1:4]
draw!(f_grid, spec; axis = (; xscale = log10))
f

```

 ![image](https://global.discourse-cdn.com/julialang/original/3X/b/f/bf1dbb6486dc814dbcf74b3f9c87cf6d356b8873.png)
