Open jackylawtrading opened 3 years ago
same here, any solution?
Removing every sharex=ax_rolling_returns
from def create_returns_tear_sheet
fixed this for me.
I am having the same issue.
You can downgrade matplotlib.
pip install matplotlib==2.2.5
Or patch it as below, by following the wisdom of : https://stackoverflow.com/questions/51553545/matplotlib-tick-labels-disappeared-after-set-sharex-in-subplots
stock_rets = pf.utils.get_symbol_rets('FB')
fig = pf.create_returns_tear_sheet(stock_rets, return_fig=True)
for ax in fig.axes:
ax.tick_params(
axis='x', # changes apply to the x-axis
which='both', # both major and minor ticks are affected
bottom=True,
top=False,
labelbottom=True) # labels along the bottom edge are on
(tested with matplotlib: 3.4.2)
Problem Description
I am not able to display the date as x-axis when using "create_returns_tear_sheet". All of the plots can only display their y-labels but not for x-labels (blank there).