Giter Site home page Giter Site logo

Comments (5)

philippjfr avatar philippjfr commented on August 22, 2024

Thanks for reporting this, seems as if the indices are getting reversed. I'll push a fix in the next few minutes.

from holoviews.

jbednar avatar jbednar commented on August 22, 2024

That was definitely something I was worried about, because our tested notebooks nearly all use square plots by default. Not sure how to test this better in general, without supplying non-square dimensions explicitly to every example...

from holoviews.

philippjfr avatar philippjfr commented on August 22, 2024

It's taking a bit longer as Raster and Image obviously have different coordinate spaces. I'll think about it a bit more tonight and hopefully come up with a clean fix by tomorrow.

from holoviews.

philippjfr avatar philippjfr commented on August 22, 2024

Just pushed a fix for this, sampling of non-square Raster and Image Elements is now handled correctly. In fact the problem went a lot deeper than it appeared. Indexing of our Elements always happens by the order of dimensions so when indexing into a Raster type, the first index will map onto the x-axis. This was previously inverted. Additionally the xdensity and ydensity on Images was also inverted resulting in the index errors you see above. This should all be fixed now, the Continuous_Coordinates tutorial is updated and I added a few unit tests.

from holoviews.

philippjfr avatar philippjfr commented on August 22, 2024

Once the associated Travis tests for these commits pass I will close this issue.

from holoviews.

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.