SimonBiggs / scriptedforms

Quickly create live-update GUIs for Python packages using Markdown and simple HTML elements.
Apache License 2.0
509 stars 34 forks source link

Plots to fill page width #113

Closed robmarkcole closed 6 years ago

robmarkcole commented 6 years ago

Is it possible to set the default size of plots to be the width of the page? They look a bit puny

image

SimonBiggs commented 6 years ago

Write

plt.figure(figsize=(20,20))
plt.plot(data)

Scaling of the plot on the web interface side will make it look pixelated.

robmarkcole commented 6 years ago

Thinking more about it, we don't want to change the default figure size as this would mean people couldn't just copy paste from their existing notebooks

SimonBiggs commented 6 years ago

I could make it however that plots are centred...