Change size of matplotlib fig
So I am using Mesa so create a simulation. In order to visualize it I am using the build in SolaraViz library to visualize the simulation.
However I am facing a problem, the matplotlib graph that is being used to plot the simulation is too small. I've tried to scale the graph without success so far.
The code used looks as following:
This creates the following dashboard (see included image)
All I want is to make the matplotlib part (the part with the gray background and red hexagons) larger.
Any help would be appriciated!
5 Replies
Hi! can you create a reporducible example at https://py.cafe ? That saves us a lot of time to reproduce what you have
PyCafe: Create & Share Streamlit, Dash and Python Apps Online.
Playground for Python web frameworks. Run and edit Python code snippets for web frameworks in a web browser.
For sure, once I am back at my pc I'll create a example
PyCafe - Solara - Car Simulation with Mesa and Solara
Create & Share Streamlit, Dash and Python Apps Online.
This affects the image.. but making it larger does not make the figure size larger. I think you have to ask the mesa team for this.
Mmmh thanks!
So I just tried it and it seems it is what we wanted! Thanks again!