oda-hub / oda-bot

0 stars 0 forks source link

picture size on frontend #33

Closed andriineronov closed 10 months ago

andriineronov commented 10 months ago

The .png figure that looks good in the notebook appears truncated in the frontend window. On occasion, here the "y label" of the picture in Gaia orbit-folded lightcurve disappeared (see screenshot below). Is there a way to "fit" the picture in the frontend picture display window?

PastedGraphic-2
dsavchenko commented 10 months ago

@andriineronov could you check that the actual .png created in renku is not truncated? It is a common problem with matplotlib when what you save is not always what you see in nb.

andriineronov commented 10 months ago

Sorry, the screenshot was not illustrative. The correct picture (in the notebook on renkulab) is

image

The picture displayed at the frontend is like this:

image
andriineronov commented 10 months ago

It worked, thanks! I added bbox_inches="tight" to plt.savefig, to get the png image right.

andriineronov commented 10 months ago

that was fast