I position row total annotations at the end of horizontal bar plots, using the row total as x position value and left-aligning the string. Iโd like to keep a gap, so the numbers stand a bit apart from the bars for legibility. This is possible by prepending 1-2 spaces to the annotation. When using fig.show()
or pio.show(fig, "svg")
, it displays as expected.
However, when using pio.write_image(fig, filename)
, leading spaces in the annotation string are missing.
And to add, I surround the annotation string with <b>...</b>
and spaces both before and after the initial <b>
are ignored.
Any tricks to circumvent this, or a place to report this? It seems like undesired behavior.
Cheers