Git Product home page Git Product logo

Comments (7)

alex-s-gardner avatar alex-s-gardner commented on June 3, 2024 1

It did indeed !

from tyler.jl.

SimonDanisch avatar SimonDanisch commented on June 3, 2024

You need to pass an axis, and not a gridlayout slot!

from tyler.jl.

SimonDanisch avatar SimonDanisch commented on June 3, 2024

I think you may be able to pass the ga to figure though, at least if you do fig[1:2, 1]

from tyler.jl.

alex-s-gardner avatar alex-s-gardner commented on June 3, 2024

🤦 ..... well that should have been obvious..

just to close out:

This works

f = Figure(resolution=(1912 * scale, 2284 * scale))
ax = Axis(f[1:2, 1])
m = Tyler.Map(extent; provider, figure = f, axis = ax);

while this does not work

f = Figure(resolution=(1912 * scale, 2284 * scale))
m = Tyler.Map(extent; provider, figure = f[1:2, 1]);

from tyler.jl.

rafaqz avatar rafaqz commented on June 3, 2024

@alex-s-gardner I think that autolimitaspect getproperty is actually your code too 😂

from tyler.jl.

alex-s-gardner avatar alex-s-gardner commented on June 3, 2024

So @rafaqz that error was only kicked cuz I was trying to ignoratly pass a gridlayout as an axis 🤦.

m = Tyler.Map(extent; provider, figure = f[1:2, 1]);

returns a different error related to the "title" keyword

ERROR: MethodError: no method matching display(::GridPosition; title::String)

Closest candidates are:
  display(::Any) got unsupported keyword argument "title"
   @ Base multimedia.jl:336
  display(::Union{Figure, Makie.FigureAxisPlot, Scene}; backend, update, screen_config...)
   @ Makie ~/.julia/packages/Makie/Iqcri/src/display.jl:110
  display(::GLMakie.Screen, ::Scene; connect) got unsupported keyword argument "title"
   @ GLMakie ~/.julia/packages/GLMakie/XSSSf/src/display.jl:1

from tyler.jl.

rafaqz avatar rafaqz commented on June 3, 2024

I know I just thought that doing that hits the line where you set ax.autolimitaspect = 1 but maybe thats not true either

from tyler.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.