Charting Stocks/Forex for Technical Analysis Part 12 - Customizing Matplotlib Chart



This is the twelfth video in the series for stock price analysis, showing you how to highly customize your charts and graphs within matplotlib. The purpose of the videos in this series is to teach you how to program your own charting and analysis of stocks or Forex. This is beneficial for you if you plan to do any sort of algorithmic, high-frequency, or any sort of automated trading. Sentdex.com Facebook.com/sentdex Twitter.com/sentdex

Comments

  1. if you're getting an error you due to matplotlib.finance getting removed soon, but don't know what to do(error message instructions are unclear), you should:

    1) Go to https://github.com/matplotlib/mpl_finance to get the new finance module.

    2) Move mpl_finance.py(you don't need the other files) to site packages directory, which probably is C:\Python27\Lib\site-packages\matplotlib.

    3) Now you can use from matplotlib.mpl_finance import _candlestick. Take note of the syntax change, you need the underscore before "candlestick" now.
  2. These are great videos, but when you're completely zoomed out, the dates on the x-axis aren't aligned with their corresponding y values. How could we fix that?
  3. Hi, Harrison! Thanks for this great series! I try to change the facecolor just as you did with fig = plt.figure(facecolor='#07000d') on my Mac OSX 10.10.2,
    it did not work, why it could be?
  4. Hi, How can the candlestick2_ohlc chart? Since i view that chart for years, really need that kind style. Thanks!
  5. Harrison try
    matplotlib.rc('axes',edgecolor='#5998ff')
    This changes the global colors of the spines
  6. Are you running this in IDLE? Are you getting any errors? Try saving with JUST the file name. It should save in the directory of the script. Are you placing it in the same spot in the script as I am as well?
  7. hi : ) fig.savefig('example.png', facecolor= fig.get_facecolor()) #not working why it could be ? when I am closing the chart it does not saving the file . thanks


Additional Information:

Visibility: 6177

Duration: 16m 11s

Rating: 31