You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ChartVisualizer.render() calls internally FigureCanvasAgg.tostring_rgb() which has been removed in matplotlib 3.10. In previous versions it was deprecated and it was proposed to use FigureCanvasAgg.buffer_rgba() instead, maybe this is the solution?
This is a minimal example of code failing with matplotlib 3.10 and pyrddlgym 2.1:
pyRDDLGym.core.visualizer.chart.render() use a deprecated method which
is even not exising anymore starting from matplotlib==3.10.
And this is used by default when rendering the RDDLDomain wrapping
pyRDDLGym environments.
See issue pyrddlgym-project/pyRDDLGym#270
pyRDDLGym.core.visualizer.chart.render() use a deprecated method which
is even not exising anymore starting from matplotlib==3.10.
And this is used by default when rendering the RDDLDomain wrapping
pyRDDLGym environments.
See issue pyrddlgym-project/pyRDDLGym#270
I think I have fixed this issue, by switching to the buffering in the io package instead of the matplotlib one. I will need to do a little more testing before I merge though. You are welcome to check out the new PR and let me know if that fixes your problem if you have the time. Thanks.
ChartVisualizer.render()
calls internallyFigureCanvasAgg.tostring_rgb()
which has been removed in matplotlib 3.10. In previous versions it was deprecated and it was proposed to useFigureCanvasAgg.buffer_rgba()
instead, maybe this is the solution?This is a minimal example of code failing with matplotlib 3.10 and pyrddlgym 2.1:
The text was updated successfully, but these errors were encountered: