<jupyter_start><jupyter_text>---  Issue156 Title ruins tight_layout---<jupyter_code># This allows multiple outputs from a single jupyter notebook cell:
from IPython.core.interactiveshell import InteractiveShell
InteractiveShell.ast_node_interactivity = "all"
%matplotlib inline
import pandas as pd
daily = pd.read_csv('../../data/SPY_20110701_20120630_Bollinger.csv',index_col=0,parse_dates=True)
daily.index.name = 'Date'
daily.shape
daily.head(2)
daily.tail(2)
import mplfinance as mpf
mpf.__version__
df = daily.iloc[40:110]
mpf.plot(df,type='candle',title='Title1',style='nightclouds')
mpf.plot(df,type='candle',title='Title1\nTitle2',style='nightclouds')
mpf.plot(df,type='candle',title='Title1\nTitle2\nTitle3\nTitle4',style='nightclouds')
mpf.plot(df,type='candle',title='Title',style='nightclouds',tight_layout=True)
mpf.plot(df,type='candle',title='Title\nTitle2',style='nightclouds',tight_layout=True)
mpf.plot(df,type='candle',title='Title\nTitle2\nTitle3\nTitle4',style='nightclouds',tight_layout=True)
mpf.plot(df.iloc[0:20],type='candle',title='Title1',style='nightclouds',saxbelow=False)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.16431095406360424, 'fraction_numerical': 0.037102473498233215, 'mean_word_length': 11.053191489361701, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '326029', 'license': 'Apache-2.0', 'n_tokens_mistral': 461, 'n_tokens_neox': 431, 'n_words': 48, 'path': 'examples/scratch_pad/issues/Issue156_title_ruins_tight_layout.ipynb', 'repo_name': 'fadeawaylove/stock-trade-system', 'size': '1132'}