Issue plotting contour levels #317
-
I have encountered an issue with plotting contour levels. This occurs in both the version of the package available on pip and the development version on GitHub. When using the “contourf” option with levels, the colour shading is incorrect. If I set e.g. “levels = [0,1,250, 2000]”, all values less than 1 are shown with the shading for the 1-250 category. I have verified this by checking values in the original file using MIKE Data Manager, and also by generating a DataArray class with zeros everywhere (as below) - in addition to other values less than 1, or even negative. Code to create this behaviour is given below (uses DataArray class from development version). Note that the data (sedMean2) used to construct the DataArray below is 0 everywhere, but the map shows 1 everywhere. The same thing occurs when using the old “dfs.plot()” method. I'm interested to understand what I’m missing – or whether there is a bug. I can't attach the source DFSU file here but presume the same behaviour would be seen using another domain, as I'm only using it to set the geometry. Thanks Example code: dfs = Dfsu('meanDep.dfsu') da = mikeio.DataArray(data=sedMean2, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Have just installed and tested latest updates (version 1.0b0) and confirm this has now been resolved - thanks! |
Beta Was this translation helpful? Give feedback.
Have just installed and tested latest updates (version 1.0b0) and confirm this has now been resolved - thanks!