Plot logarithmic axes with matplotlib in python
You can use the Axes.set_yscale method. That allows you to change the scale after the Axes object is created. That would also allow you to build a control to let the user pick the scale if you needed to. The relevant line to add is: You can use ‘linear’ to switch back to a linear scale. Here’s what your code would … Read more