Skip to main content

Power BI

New

pass the correct figure size to the python visualization

Vote (12) Share
's profile image

on 14 Dec 2018 00:08:32

Currently PowerBI passes a figure size to the Python visualization (e.g. "matplotlib.pyplot.figure(figsize=(5.55555555555556,4.16666666666667))" on my instance). The dimensions don't appear to be dynamic with the actual size of the visualization, thus the resulting python plot does not fill the visualization frame. I haven't been able resolve this in the python code - ie the size appears to be hard-wired/unchangeable). Seems like it would be better if Python received the actual viz, not a system default. The R visualization features the desired behavior (ie resulting image scales with container size)