Forum Discussion

mjo31's avatar
mjo31
Frequent Visitor
5 years ago
Solved

Python Visual :Increase the size of the visual

Hi,

I am trying to generate a python visual from power BI. I was able to generate a line chart. But I am unable to increase the size of the visual in power BI.Its always fixed.

Code: Output is a dataframe with Actual and Optimized Budget.I used matplotlib to plot line chart

 

import matplotlib.pyplot as plt
output[['Actual Budget','Optimized Budget']].plot()
#plt.figure(frameon=False,dpi=200)
#plt.figure(figsize=(20,18))
plt.rcParams["figure.figsize"]=(80,50)
plt.show()
 
Below is visual.As you can see the python visual size is fixed, and unable to increase the size of visual.
 

Any help would be greatly appreciated.

2 Replies