When the data ranges from very small values to very large values, plotting it on a linear scale may not give the right intuition of the relative size of the data points. In such cases, a logarithmic scale is used.
Logarithmic scale
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
How to do it...
The following code block plots three graphs, one on a linear scale and the other two on a logarithmic scale. The two logarithmic...