Skip to content

WQ Henry example fails at plotting #340

Open
@Manangka

Description

@Manangka

In GitLab by @JoerivanEngelen on Mar 29, 2023, 14:30

Apparently with the deltaforge 0.2.0 installation:

runfile('C:/Users/schadt/training/iMOD_python_examples/henry/Henry.py', wdir='C:/Users/schadt/training/iMOD_python_examples/henry')
Traceback (most recent call last):
  File "C:\Users\schadt\AppData\Local\deltaforge\lib\site-packages\spyder_kernels\py3compat.py", line 356, in compat_exec
    exec(code, globals, locals)
  File "c:\users\schadt\training\imod_python_examples\henry\henry.py", line 150, in <module>
    conc.plot(levels=range(0, 35, 5), yincrease=False, ax=ax)
  File "C:\Users\schadt\AppData\Local\deltaforge\lib\site-packages\xarray\plot\accessor.py", line 46, in __call__
    return dataarray_plot.plot(self._da, **kwargs)
  File "C:\Users\schadt\AppData\Local\deltaforge\lib\site-packages\xarray\plot\dataarray_plot.py", line 312, in plot
    return plotfunc(darray, **kwargs)
  File "C:\Users\schadt\AppData\Local\deltaforge\lib\site-packages\xarray\plot\dataarray_plot.py", line 717, in hist
    primitive = ax.hist(no_nan, **kwargs)
  File "C:\Users\schadt\AppData\Local\deltaforge\lib\site-packages\matplotlib\__init__.py", line 1423, in inner
    return func(ax, *map(sanitize_sequence, args), **kwargs)
  File "C:\Users\schadt\AppData\Local\deltaforge\lib\site-packages\matplotlib\axes\_axes.py", line 6890, in hist
    p._internal_update(kwargs)
  File "C:\Users\schadt\AppData\Local\deltaforge\lib\site-packages\matplotlib\artist.py", line 1186, in _internal_update
    return self._update_props(
  File "C:\Users\schadt\AppData\Local\deltaforge\lib\site-packages\matplotlib\artist.py", line 1160, in _update_props
    raise AttributeError(
AttributeError: Rectangle.set() got an unexpected keyword argument 'levels'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdocumentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions