I am using cufflinks for plotting candlestick charts in jupyter notebook. How to remove gaps of non trading days in chart. In plotly we can update layout ['xaxis']['type'] to 'category'. How can we update the same for a QuantFig in cufflinks. Follwowing is my code.
import cufflinks as cf
import pandas as pd
import plotly
from plotly import tools
from plotly.offline import download_plotlyjs, init_notebook_mode, plot, iplot
print("List of Cufflinks Themes : ", cf.getThemes())
cf.set_config_file(theme='pearl',sharing='public',offline=True)
daily = pd.read_csv('data.csv',index_col=0,parse_dates=True)
qf=cf.QuantFig(daily,title='my test chart',legend='left',name='Test')
qf.add_volume()
qf.iplot()
This did the trick for me:
(described here: https://plotly.com/python/time-series/#hiding-weekends-and-holidays)