Matplotlib 3.0 Cookbook
上QQ阅读APP看书,第一时间看更新

Getting ready

For this example, we will use some dummy data to demonstrate the difference between a linear scale and a logarithmic scale.

Import the required library:

import matplotlib.pyplot as plt