You are currently viewing the new Anvil Editor Docs.
Switch to the Classic Editor Docs
You are currently viewing the Classic Editor Docs.
Switch to the new Anvil Editor Docs

anvil.mpl_util Module

Functions

plot_image

Functions

plot_image([dpi=], [facecolor=], [edgecolor=], [format=], [transparent=], [frameon=], [bbox_inches=], [pad_inches=], [filename=]) → anvil.Media instance

Return the current Matplotlib figure as an PNG image. Returns an Anvil Media object that can be displayed in Image components.

Optional arguments have the same meaning as for ‘savefig()’



    Do you still have questions?

    Our Community Forum is full of helpful information and Anvil experts.


    anvil.mpl_util