GithubHelp home page GithubHelp logo

Comments (1)

wpbonelli avatar wpbonelli commented on June 1, 2024

mpl's ContourSet is now a Collection with a single path for each level. Paths may contain disconnected components. So it looks like this needs modification (possibly similar for contourf too)

Edit

The root issue here was that export_contours/f() made an unsafe assumption that some matplotlib behavior was part of the stable API. Calling .get_paths() on a collection of contours now returns one path per layer, possibly containing multiple components, where previously a separate path was returned for each disjoint contour component. The export functions previously expected to straightforwardly convert paths to linestrings — now, traversing the path and checking path codes is necessary to determine connectivity and split in the right locations.

Another consideration is that filled contour interior polygons (i.e. holes) can no longer be extracted from paths.

Noting that with the change of behaviour of .collections no longer returning information about the relationship between filled polygons and their holes, we will find out who has been using mpl to obtain such information rather than just render filled contours.

Given this, we will likely want to mention in the next release notes that filled contours exported with mpl >= 3.8 will no longer contain any interior (hole) polygons.

More info:

from flopy.

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.