Try using all mathtext fontset in python and matplotlib.pyplot


The result (computer modern: cm) is:

Try using all mathtext fontset in python and matplotlib.pyplot

In this page, I try using all mathtext fontset in python and matplotlib.pyplot. It seems that the resulting text of \mathbb{hogehoge}, \mathrm{\mathbb{hogehgoe}}, \mathfrak{hogehoge}, \mathsf{hogehoge}, and \mathrm{\mathsf{hogehoge}} are same.

Generate average image using Python and PIL (Python Image Library)


Generate average image using Python and PIL (Python Image Library)

This page shows how to generate an average image of the image arrays using python and PIL (python image library) module.
It is easy to do by converting the image to the numpy.array.


Combine 3D and two 2D animations in one figure using python, matplotlib.pyplot and animation.ArtistAnimation


The result is:


This page shows how to combine 3D and 2D animations in one figure using python, matplotlib.pyplot, and animation.artistanimation function.

Combine 3D and two 2D animations in one figure using python, matplotlib.pyplot and animation.timedanimation


The result is:

Combine 3D and two 2D animations in one figure using python, matplotlib.pyplot and animation.timedanimation

This page shows how to combine 3D and 2D animations in one figure using python, matplotlib.pyplot, and animation.timedanimation function.

Combine two 2D animations in one figure using python, matplotlib.pyplot and animation.artistanimation


The result is:

Combine two 2D animations in one figure using python, matplotlib.pyplot and animation.artistanimation

This code shows how to combine two 2D animations in one figure using python, matplotlib.pyplot, and matplotlib.animation.


Combine two 2D animations in one figure using python, matplotlib.pyplot and animation.timedanimation


The result is:

Combine two 2D animations in one figure using python, matplotlib.pyplot and animation.timedanimation

This code shows how to combine two 2D animations in one figure using python, matplotlib.pyplot, and matplotlib.animation.

Plot three wave in one plot; PWM wave as example


The result is:


This page shows an example of a plot with three waves in one axes using offsets. The PWM wave is the objective.

Draw axes in axes using zoomed_inset_axes, python and matplotlib.pyplot


The result is:


This page shows how to draw an axes in another axes using zoomed_insed_axes of the matplotlib toolkits.

Change hatch density in barplot of Python Matplotlib.pyplot


The result is:

Change hatch density of barplot python matolotlib pyplot

This page shows how to increase the hatch density in barplot of matplotlib.
By changing the hatch string, you can change the hatch density.

Try all legend options in Python Matplotlib.pyplot


The default legend is:

Try all legend options - default result -

In this page, all legend options are tried.