Create animation of plt.contourf for visualize air flow past three cylinders using Python Matplotlib.pyplot and Matplotlib.animation.ArtistAnimation


The result is:

This page shows my exercise to visualize air flow past three cylinders.
The flow is calculated by commercial finite elemental method software i.e. COMSOL Multiphysics.
In this code, matplotlib.animation.ArtistAnimation function is used.

Simple way to draw electric field lines using Plotly.offline; convert from Matplotlib.pyplot


The result is:


This page shows how to draw vector field (electric field lines) using plotly. The figure is converted from matplotlib.pyplot.

Draw cycloid animation using matplotlib.animation.ArtistAnimation


The result is:
Draw cycloid animation using matplotlib.animation.ArtistAnimation

In this page, an animation of cycloid is generated using ArtistAnimation function of matplotlib.animation.
The animation of cycloid is already generated in "Draw cycloid animation using matplotlib.animation.FuncAnimation".
Here, an altanative way for drawing animations that is matplotlib.animation.ArtistAnimation is used.
I think ArtistAnimation is easier to understand and write the code than FucAnimation.

Draw 3D line animation using Python Matplotlib.ArtistAnimation


The result is:

Draw 3D line animation using Python Matplotlib.ArtistAnimation

This page shows how to draw 3D line animation using python & matplotlib. Note that you must install ffmpeg and imagemagick to properly display the result.

Draw 3D line animation using Python Matplotlib.FuncAnimation


The result is:

Draw 3D line animation using Python Matplotlib.FuncAnimation

This page shows how to draw 3D line animation using python & matplotlib. Note that you must install ffmpeg and imagemagick to properly display the result.


Better way to chose numbers of x and y ticklabels in Python Matplotlib.pyplot


The result is:

Better way to chose numbers of x and y ticklabels in Python Matplotlib.pyplot

This page shows the better way to chose numbers of x and y ticklabels.

Arrange multiple images in one large image using Python PIL.Image


The results are:

Arrange multiple images in one large image using Python PIL.Image -1-

and

Arrange multiple images in one large image using Python PIL.Image -2-

This page shows how to arrange the images in one figure using Python & PIL.Image.

Draw electric field lines without Mayavi


The result is:

Draw electric field lines without Mayavi

Plot on an image using Python Matplotlib.pyplot


The result is:

Plot on an image using Python Matplotlib.pyplot

This page shows how to plot data on an image.
plt.plot and plt.scatter is used in this page as an example.
You can plot by mapping function that convert the point of the plotting data to that of the image.

Draw cycloid animation using matplotlib.animation.FuncAnimation


The result is:

Draw cycloid animation using matplotlib.animation.FuncAnimation

This page shows an example of the animation.FuncAnimation function. The theme is the animation of the cycloid.