To apply log, symmetric log and logistic scales we will go through the steps as follows:
- Plot the numbers from 0 to 10 against the power of 10, as shown:
# Log axesplt.plot(nums, np.power(10,10*nums))plt.gca().grid(True)
Following is the output of the preceding code:
In the preceding output, we can see that the plot is not very good for actually viewing these numbers, since the end of the data range is much bigger than the beginning of the data range.
- We can transform this into something that will fill the space, so that we are not left with an empty space, by using an algorithm. ...