Python Maps with mplleaflet

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ต.ค. 2024

ความคิดเห็น • 18

  • @RyanNoonan
    @RyanNoonan  3 ปีที่แล้ว +5

    After upgrading to Matplotlib 3.3.3, I received the following error when trying to use mplleaflet:
    'XAxis' object has no attribute '_gridOnMajor'
    I was able to bypass the error by creating an Anaconda Package Environment and using matplotlib version 3.3.2.

  • @lucaseduardowichinevsky4963
    @lucaseduardowichinevsky4963 2 ปีที่แล้ว

    HI, great video, for the exemple of the scatter plot , can you plot the size of the cuntry_population inside the circle? I've been working with a similar exemple, and actualy I plot the text inside the circle but when I will put in the map this information disapere...

    • @RyanNoonan
      @RyanNoonan  2 ปีที่แล้ว

      Thanks. If I remember correctly, mplleaflet has trouble displaying text.

  • @aleksanderfidelus
    @aleksanderfidelus 5 ปีที่แล้ว

    If i generated points like you did in ~~ 4:00 can i somehow map them to the nearest street? ( I've picked coords around,but not exactly on my street )

    • @RyanNoonan
      @RyanNoonan  5 ปีที่แล้ว

      The only way I can think of currently is to get the exact coordinates (latitudes and longitudes).

  • @cristhiancastrochavez5962
    @cristhiancastrochavez5962 4 ปีที่แล้ว

    Hi. Great video!, one question. I have a lot of lat long points, so im trying to make a grid, maybe 50mx50m, to have a mean of this points into a grid. Do you know How can I make this? Thanks!

    • @RyanNoonan
      @RyanNoonan  4 ปีที่แล้ว

      Thanks. Are you trying to find the centroid?

  • @haronmaiden
    @haronmaiden 4 ปีที่แล้ว +1

    Thanks a lot

  • @ricardojunior9987
    @ricardojunior9987 4 ปีที่แล้ว

    The font code is available?

    • @RyanNoonan
      @RyanNoonan  4 ปีที่แล้ว

      Just posted the Jupyter Notebook on GitHub. See tutorial description.

  • @aleksanderfidelus
    @aleksanderfidelus 5 ปีที่แล้ว

    is there a way to save the map to a jpg or png?

    • @RyanNoonan
      @RyanNoonan  5 ปีที่แล้ว

      The quickest way is to probably take a screen shot. If I find another way using code and more options, I'll post in the comments.

  • @botman4566
    @botman4566 4 ปีที่แล้ว

    python version??

    • @RyanNoonan
      @RyanNoonan  4 ปีที่แล้ว +1

      Probably 3.6. Note, it can be tricky to get the geopandas examples to work.

    • @botman4566
      @botman4566 4 ปีที่แล้ว

      @@RyanNoonan mplleaflet fails to be imported in jupyter, it always throws and error no module named, but it doesn't give error if i run it using cmd,

    • @RyanNoonan
      @RyanNoonan  4 ปีที่แล้ว +1

      How did you install mplleaflet (i.e.-pip, conda)? Are you using the anaconda distribution?
      Sometimes, if I am having problems with a package/module, etc., I'll use a google colab jupyter notebook or a microsoft azure jupyter notebook. Many packages are ready to go and others can be pip installed (in the notebook) and everything seems to work well most of the time.

    • @botman4566
      @botman4566 4 ปีที่แล้ว

      @@RyanNoonan i have created a virtualenv for this purpose and installed it via pip install mplleaflet