Using plotly to display svgs. This allows us the define titles in the same way as the other figures, keeps formatting consistent, and simplifies the layout specification.
I've also made it so the whole figure updates every iteration rather than just the dots representing agents/EVs as before. This is just to simplify the layout specification as it allows us to use a single figure object rather than multiple objects per figure. Presumably this could be addressed with partial property updates (https://dash.plotly.com/partial-properties), but as I don't see any noticeable performance issues I'll leave this for now.
Close #95
Type of change
[ ] New feature (non-breaking change which adds functionality)
[ ] Optimization (non-breaking, back-end change that speeds up the code)
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] Breaking change (whatever its nature)
Key checklist
[ ] All tests pass (python -m pytest)
[ ] Pre-commit hooks run successfully (pre-commit run --all-files)
Yeah this is easy to adjust by increasing the sizex and sizey parameters in the figure functions. I'll leave it for now though as we still haven't finalised the layout for this page
Description
Using plotly to display svgs. This allows us the define titles in the same way as the other figures, keeps formatting consistent, and simplifies the layout specification.
I've also made it so the whole figure updates every iteration rather than just the dots representing agents/EVs as before. This is just to simplify the layout specification as it allows us to use a single figure object rather than multiple objects per figure. Presumably this could be addressed with partial property updates (https://dash.plotly.com/partial-properties), but as I don't see any noticeable performance issues I'll leave this for now.
Close #95
Type of change
Key checklist
python -m pytest
)pre-commit run --all-files
)