ImperialCollegeLondon / gridlington-vis

BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Use plotly for SVGs #101

Closed tsmbland closed 10 months ago

tsmbland commented 10 months ago

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

tsmbland commented 10 months ago

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