Announcing Dash Bio 1.0.0 🎉 : a one-stop-shop for bioinformatics and drug development visualizations.

How to display matplotlib graphs in dash

hi all , I am new to Dash and have a simple dataframe and want to display a normal matplotlib graph in my dash screen directlly , I don’t want any input and want to display same graph always any suggestions

If you really need to use a matplotlib graph, you can export the generated image from matplotlib to base64 and use anhtml.Img component in your layout, filling out the src key with the string that is the base64 encoded image.


Note that the Dash Graph component doesn’t need to be interactive so can definitely be used for static plots.

1 Like