Get the height/width of JUST the plot portion of the chart, not entire chart

I’m trying to get the height of the actual plot area of the chart, so I can change the y-tick values and text (to divide the visual plot area into -for example - percents of 0-100.)

fig.layout.height seems to give the height fo the entire plot, including the modebar and whitescape around the chart.

This did not work?

So in layout, there is the margin that will do the work.

margin=dict(t=0, l=0, r=0, b=0, pad = 0).

1 Like

Sorry, I posted them at the same time -because I was replying to a comment from 2016. I wasn’t sure anyone would get notified :slight_smile: I’ll need to try the solution this week and see how it does.