Simple way to draw 3D random walk using Python and Matplotlib.pyplot


The result is:

Simple way to draw 3D random walk using Python and Matplotlib.pyplot


This code shows the simple way to dray 3D random walk with colored line using python.

Make figures changing math font in Python Matplotlib.pyplot


The example of the result (computer modern font) is:


This page shows how to change text font of the labels, ticks and mathtext.

Write \mu (Greek letter, Symbol) in Python Matplotlib.pyplot


The results are:
Write \mu (Greek letter, Symbol) in Python Matplotlib.pyplot times
Write \mu (Greek letter, Symbol) in Python Matplotlib.pyplot arial

This page shows how to write μ:mu, \mu in the matplotlib. By specifying the Unicode, you can add arbitrary character to the plot.

How to set the aspect ratio of the figure in Python Matplotlib.pyplot


The result is:


This page show how to set the aspect ratio of the figure in the python and matplotlib.pyplot. By adding set_aspect function, you can set the aspect ratio ot equal.