mplfinance Remove Price and Volume Y-Label

Nov 2, 2020
import yfinance as yfimport mplfinance as mpfticker_name = 'MSFT'yticker = yf.Ticker("MSFT")data = yticker.history(period="1y") # max# to avoid the volume notation in exponential form, such as 1e8data['Volume'] = data['Volume'] / 1000# ylabel is for price# ylabel_lower is for volumempf.plot(data, type='candle', style='yahoo', title=f"\n{ticker_name}", volume=True, ylabel='', ylabel_lower='')

mplfinance remove y-label

❤️ Is this article helpful?

Buy me a coffee ☕ or support my work via PayPal to keep this space 🖖 and ad-free.

Do send some 💖 to @d_luaz or share this article.

✨ By Desmond Lua

A dream boy who enjoys making apps, travelling and making youtube videos. Follow me on @d_luaz

👶 Apps I built

Travelopy - discover travel places in Malaysia, Singapore, Taiwan, Japan.