mesa icon indicating copy to clipboard operation
mesa copied to clipboard

JupyterViz: Allow user to specify space figure output format in svg/png & savefig kwargs

Open rht opened this issue 2 years ago • 0 comments

Currently, it is hardcoded to be png, because png is much faster. According to https://github.com/projectmesa/mesa/pull/1819#issuecomment-1733624072, we should allow user to pass in extra arguments to solara.FigureMatplotlib. According to https://solara.dev/api/matplotlib, the kwargs is for extra arguments to Matplotlib's savefig, i.e. Solara renders a figure by doing a savefig operation.

cc: @ankitk50. This doesn't require agreement/consensus on the design of how this is going to implemented, and so there shouldn't be any blocker.

rht avatar Sep 26 '23 13:09 rht