moshi4/pyMSAviz

Showing figure title

Closed this issue · 2 comments

If I try to add a title with .suptitle(), it does not render correctly:
image

I narrowed it down to the call

gs.update(left=0, right=1, bottom=0, top=1, hspace=0, wspace=0)

but I am not sure what could be done with it...

Are you setting the y argument for fig.suptitle() method?

Code Example

from pymsaviz import MsaViz, get_msa_testdata

msa_file = get_msa_testdata("HIGD2A.fa")
mv = MsaViz(msa_file, wrap_length=60, show_count=True)

fig = mv.plotfig()
fig.suptitle("pyMSAviz title", y=1.15, size=15, color="black")

fig.savefig("result.png")

result.png

result

That solves the issue, thanks!