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.

1
  • Please check my answer below, otherwise, could be more clear on what you mean by point and figure charts? Commented Jul 27, 2017 at 22:45

2 Answers 2

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')
Sign up to request clarification or add additional context in comments.

Comments

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:

3 Comments

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 can you link to an image give an example of the graph you are trying to draw?
Hi MedAli, an example image link

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.