Franklin + PyPlot

Using Franklin with PyPlot is pretty straightforward but it's always nice to have a few examples especially for the paths.

NOTE: if you have lots of plots on a page, it may happen that you see a warning like:

RuntimeWarning: More than 20 figures have been opened. Figures created through
the pyplot interface (`matplotlib.pyplot.figure`) are retained until explicitly
closed and may consume too much memory. (To control this warning, see the
rcParam `figure.max_open_warning`).

In such a case, consider killing the server, calling using PyPlot; PyPlot.close_figs() and restarting the server (you don't need to do this, but it will make the error go away and possibly avoid slowdown.).

Examples

Sincs

// Image matching '/assets/pyplot/code/sinc' not found. //

Koch

Original script

// Image matching '/assets/pyplot/code/koch' not found. //

Scatterplot + histogram

Original file

// Image matching '/assets/pyplot/code/schist.svg' not found. //

CC BY-SA 4.0 The Oracle. Last modified: June 05, 2025. Website built with Franklin.jl and the Julia programming language.