Comments (1)
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)
- bug: gridintersect does not work for rotated vertex grids
- bug: Stack trace terminated abnormally. HOT 2
- bug: MF6 does not recognize the option name "BUDGETCSV" in LAK package written by FloPy (odd whitespace characters?) HOT 4
- bug: gwf.modeltime.steady_state inconsistent with input/output HOT 2
- bug: mf6 package name alters behavior with flopy HOT 1
- feat: support kper column in stress period recarray/dataframe input data
- bug: irch for rch and evt packages HOT 1
- bug: possible error detected in cvfd_utils cell centroids function shapefile_to_xcyc HOT 7
- bug: Grid intersect taking excessively long on simple voronoi grid HOT 6
- NumPy 2.0 compatibility HOT 2
- feat: list all simulation files
- feature: flopy.discretization.unstructuredgrid.intersect...but in 3D!? HOT 4
- bug: Plotting water table for Unstructured Grid HOT 3
- bug: check.py inconsistancies/errors
- feature: speed-up resample_to_grid HOT 2
- bug: get_transmissivities() does not work with MODFLOW 6 models
- bug: cannot pull CellBudgetFile records for a single package instance when there are multiple packages of the same type HOT 2
- bug: Model name in tutorial too long HOT 2
- bug: pandas read in `mfdataplist` throwing a warning HOT 1
- bug: load_only missing from Mt3dms load function for Seawat models
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flopy.