3

I am using Pandas dataframe to manipulate a financial time series consists of closing prices and time. I would like to display the results in Point and Figure chart of Xs and Os. However, I can't find any visualization package in Python to do so.

Does anyone have experience in plotting Point and Figure charts with Python?

Thanks in advance.

Daniel Goldfarb
  • 6,937
  • 5
  • 29
  • 61

2 Answers2

2

I am quite late to the party but there is a package called mplfinance.

pip install --upgrade mplfinance
import mplfinance as mpf
#df is the dataframe
mpf.plot(df,type='pnf')
0

Pandas has pandas.DataFrame.plot that enables to plot your dataframe. You can find the documentation here:

The pandas doc provides an excellent tutorial on visualization of pandas dataframe and series in this link:

Mohamed Ali JAMAOUI
  • 14,275
  • 14
  • 73
  • 117
  • Hi, thanks. I have visited both sites but can't find anything "convenient" to plot Point and Figure given a pandas dataframe consisting financial time series data. – Rolloticker Jul 28 '17 at 01:19
  • @Rolloticker can you link to an image give an example of the graph you are trying to draw? – Mohamed Ali JAMAOUI Jul 29 '17 at 07:13
  • Hi MedAli, an example image [link](http://d.stockcharts.com/school/data/media/chart_school/what_are_charts/chart-6-pnf.gif) – Rolloticker Jul 29 '17 at 14:42