Davide-sd / sympy-plot-backends

An improved plotting module for SymPy
BSD 3-Clause "New" or "Revised" License
42 stars 9 forks source link

Plotly backend width and height #15

Closed GitHunter0 closed 1 year ago

GitHunter0 commented 1 year ago

Congratulations for this amazing module. I could not find a way to control the width an height of the plotly plot, is there an option to do that? Thank you

Davide-sd commented 1 year ago

Hello @GitHunter0 , thanks for the kind words.

You can use the size keyword argument, for example:

plot(cos(x), backend=PB, size=(400, 200))

the first number is the width, the second is the height. For Plotly, both numbers represent pixels.

GitHunter0 commented 1 year ago

Excellent, thank you @Davide-sd