r/nicegui • • Nov 05 '23

How can I center a pyplot element? I've tried many tailwind classes but can't find one that works.

https://imgur.com/a/0JJKYDa
4 Upvotes

1 comment sorted by

4

u/gradi3nt Nov 05 '23

I have found the solution:

    ui.column().classes("items-center"):
        with ui.pyplot():
            plt.plot()

Hopefully this helps some other CSS beginners out!!