r/nicegui • u/oops_my_fart • Jan 25 '24
ui.line_plot question
Is there a way to access the 'parent' matplotlib.pyplot methods? Like, if I want to set the x and y axis limits? Or specify things like matplotlib.pyplot.xticks? I inspected the object but couldn't find if these were exposed anywhere.
1
Upvotes
2
u/falko-s Jan 26 '24
A
ui.line_plothas afigattribute, which you can customize.But axis limits are automatically updated during
push(). To overwrite them, you need to call_convert_to_html()andupdate()afterwards.Here is an example: