How can I show datetime rather than just date in x value in plot
As is shown in the attached image, how can I show the detailed time in "x=" stuff, like, "x=2019-05-15 09:30:00", which can be useful especially in backtests with minutes data.
Pablo Reyes Almagro last edited by
You should be able to set the strftime format with the params
cerebro.plot( # Format string for the display of ticks on the x axis fmt_x_ticks = '%Y-%b-%d %H:%M', # Format string for the display of data points values fmt_x_data = '%Y-%b-%d %H:%M' )
You should be getting something like this:
@Pablo-Reyes-Almagro It works! thx!