Here’s the solution I came up with:
import mplfinance as mpf
from matplotlib import pyplot as plt
# Data reading and processing steps omitted
fig, axlist = mpf.plot(data, type='line', returnfig=True)
ax = axlist[0]
ax.set_yscale('log')
plt.show()
CLICK HERE to find out more related problems solutions.