![]() ![]() It will change the scale of the y-axis of the histogram to the log scale with default base 10. We can change the scale of the axes of the histogram in python by specifying the value True to the argument log in the () function. Read: What is matplotlib inline Matplotlib log log histogram # Changing to the log ticks at x and y axis using loglog Plt.xlabel('log(x) base 10', fontsize=13) Plt.title('loglog linear plot with y-axis log base 2', fontsize=15) Let’s implement the 2nd method through an example: # Importing necessary libraries
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |