Reputation: 3582
I'm new to bqplot. Trying to figure out how to resize a figure. I tried both of the following, lightly modifying example code:
fig = Figure(marks=[line], axes=[ax_x, ax_y], title='Security 1')
fig.height = 100
and
fig = Figure(marks=[line], axes=[ax_x, ax_y], title='Security 1', height = 100)
Neither of these is showing any effect. Is there a way to change the size of a bqplot
?
Upvotes: 2
Views: 2122
Reputation: 3236
You can also adjust the margins using fig_margin, ie:
Figure(marks=[graph], fig_margin={'top':30, 'bottom':30, 'left':0, 'right':0})
Upvotes: 0
Reputation: 3479
Use the layout object. Height must be expressed as a str with either 'px' or '%'. See example below.
fig = Figure(marks=[line], axes=[ax_x, ax_y], title='Security 1')
fig.layout.height = '100px'
Upvotes: 3