Get rid of whitespace either side of plot (inside axis)

03
As can be seen in the image above, there is a white space in-between the actual bars/lines of the plot and the axis.

I’ve looked through the options and it seems that padding is the closest option I can find, but it is already set to 0. Is there anything that can be done to amend this?

Please & thank you.

I think you’re looking for xaxis.range or maybe margin.l and margin.r.

@etienne Ahh, xaxis.range. I’ll give that a god thanks!

I’ve tried changing the margins (Y)

xaxis.range worked perfectly, thanks!

Hello, jmoir. I have a similar issue with my graphs. Could you potentially share the xaxis.range code you used that fixed the issue? As trivial as it is, I’m encountering issues getting it to work.

I will bring back this issue instead of creating a new one, since I have a similar issue: When I add markers, the graph has the white spaces on the edges (which does not happen when I use type: line). I can fix that with the xaxis.range, but when I zoom and then double click, it goes back to the case with white spaces. Is there any solution to set the “home” zoom as the one without the whitespaces?

1 Like