Python visual in Power BI - plot is too small

315 Views Asked by At

I have several Python visuals in Power BI. The plots are always too small: the space is not utilized and therefore the plot is too small.

Tried to adjust the figure size, no effects

plt.figure(figsize=(18, 15))

Tried to reduce the padding, no effect

plt.tight_layout(pad=0, w_pad=0, h_pad=0)

Any advice?

enter image description here

1

There are 1 best solutions below

0
On

This works:

plt.rcParams["figure.figsize"] = [15,5]
plt.plot(....plot your data....)
plt.tight_layout()
plt.show()

PowerBI Python Visual