About matplotlib.finance

Hi, I’ve seen some examples with it, but I couldn’t find any docs about it, Is there any? If not Where Can I get the source code for it to take a look?
Another thing, what about this example: http://matplotlib.sourceforge.net/examples/pylab_examples/plotfile_demo.html Where can I get the csv files used on it ?

Thanks!

···


David Anderson Lino de Sousa
Undergraduate in Computer Science - http://ccc.ufcg.edu.br/index.php/Main_Page

Embedded Systems and Pervasive Computing Lab - http://embedded.ufcg.edu.br

Systems and Computing Department - http://www.dsc.ufcg.edu.br

Federal University of Campina Grande - http://www.ufcg.edu.br

Welcome! Not to be too blunt, but if you click on the “documentation” link on page you gave, you’d get a link here, which is the main documentation page: http://matplotlib.sourceforge.net/contents.html

Also, you can take the page you gave and click on the “matplotlib home” link, you’d see you can get the source here: http://sourceforge.net/projects/matplotlib

Ryan

···

On Tue, May 19, 2009 at 1:33 PM, David Anderson <zerty.david@…287…> wrote:

Hi, I’ve seen some examples with it, but I couldn’t find any docs about it, Is there any? If not Where Can I get the source code for it to take a look?
Another thing, what about this example: http://matplotlib.sourceforge.net/examples/pylab_examples/plotfile_demo.html Where can I get the csv files used on it ?

Thanks!


Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma
Sent from Norman, Oklahoma, United States

In the documentation page there’s no info about .finance, even looking on the search tool I couldn’t find anything: http://matplotlib.sourceforge.net/search.html?q=finance&check_keywords=yes&area=default

About the code, I found it =)

···

On Tue, May 19, 2009 at 4:05 PM, Ryan May <rmay31@…287…> wrote:

On Tue, May 19, 2009 at 1:33 PM, David Anderson <zerty.david@…287…> wrote:

Hi, I’ve seen some examples with it, but I couldn’t find any docs about it, Is there any? If not Where Can I get the source code for it to take a look?
Another thing, what about this example: http://matplotlib.sourceforge.net/examples/pylab_examples/plotfile_demo.html Where can I get the csv files used on it ?

Thanks!

Welcome! Not to be too blunt, but if you click on the “documentation” link on page you gave, you’d get a link here, which is the main documentation page: http://matplotlib.sourceforge.net/contents.html

Also, you can take the page you gave and click on the “matplotlib home” link, you’d see you can get the source here: http://sourceforge.net/projects/matplotlib

Ryan


Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma
Sent from Norman, Oklahoma, United States


David Anderson Lino de Sousa
Undergraduate in Computer Science - http://ccc.ufcg.edu.br/index.php/Main_Page

Embedded Systems and Pervasive Computing Lab - http://embedded.ufcg.edu.br

Systems and Computing Department - http://www.dsc.ufcg.edu.br

Federal University of Campina Grande - http://www.ufcg.edu.br

I wrote the finance module a long time ago to make some basic
financial charts, but I haven't updated it and I don't think it is the
best way to go. But when I wrote it I wasn't in the financial
industry and now I am so maybe my standards are higher :slight_smile:

You can get help from matplotlib.finance -- we haven't uploaded all
the module docs to the site documentation yet because there are some
formatting issues with the docstrings nad we are doing them as we get
to them. In the meantime, use the ipython shell

  import matplotlib.finance
  help matplotlib.finance

Also, see the code examples

  http://matplotlib.sourceforge.net/search.html?q=finance+codex

JDH

···

On Tue, May 19, 2009 at 2:09 PM, David Anderson <zerty.david@...287...> wrote:

In the documentation page there's no info about .finance, even looking on
the search tool I couldn't find anything:
http://matplotlib.sourceforge.net/search.html?q=finance&check_keywords=yes&area=default

About the code, I found it =)

Nice, and thanks, I’m making the charts just to my own purposes, and
hopelly use it as my Graduation ending job (I don’t know ow to say this
in english, basically is the app that you deliver before getting the
degree), and I wish to improve the api, by now this is the best api to
plot financial charts in python, do you know any better? I Want to make
something like the www.advfn.com,
but leave to the user to add it’s own studies. I am brazilian, and
yahoo finances don’t give historical quotes for my country, I’ll
have to adapt to get the quotes from a bunch of csv files. Can you suggest
anything to me? =) Thanks!

···

On Tue, May 19, 2009 at 4:21 PM, John Hunter <jdh2358@…287…> wrote:

On Tue, May 19, 2009 at 2:09 PM, David Anderson <zerty.david@…287…> wrote:

In the documentation page there’s no info about .finance, even looking on

the search tool I couldn’t find anything:

http://matplotlib.sourceforge.net/search.html?q=finance&check_keywords=yes&area=default

About the code, I found it =)

I wrote the finance module a long time ago to make some basic

financial charts, but I haven’t updated it and I don’t think it is the

best way to go. But when I wrote it I wasn’t in the financial

industry and now I am so maybe my standards are higher :slight_smile:

You can get help from matplotlib.finance – we haven’t uploaded all

the module docs to the site documentation yet because there are some

formatting issues with the docstrings nad we are doing them as we get

to them. In the meantime, use the ipython shell

import matplotlib.finance

help matplotlib.finance

Also, see the code examples

http://matplotlib.sourceforge.net/search.html?q=finance+codex

JDH


David Anderson Lino de Sousa
Undergraduate in Computer Science - http://ccc.ufcg.edu.br/index.php/Main_Page

Embedded Systems and Pervasive Computing Lab - http://embedded.ufcg.edu.br

Systems and Computing Department - http://www.dsc.ufcg.edu.br

Federal University of Campina Grande - http://www.ufcg.edu.br

I don't know a better package for plotting financial data -- mpl works
just fine. It's just that the API for the matplotlib.finance module
could be better. I would prefer something designed around record
arrays with attrs 'date', 'open', 'high', 'low', 'close', 'volume'.

Take a look at the examples I pointed you to - some of them make
financial graphs w/o using the finance module.

As for CSV files, take a look at matplotlib.mlab.csv2rec (see also the
examples at)

http://matplotlib.sourceforge.net/search.html?q=codex+csv2rec

JDH

···

On Tue, May 19, 2009 at 2:33 PM, David Anderson <zerty.david@...287...> wrote:

Nice, and thanks, I'm making the charts just to my own purposes, and hopelly
use it as my Graduation ending job (I don't know ow to say this in english,
basically is the app that you deliver before getting the degree), and I wish
to improve the api, by now this is the best api to plot financial charts in
python, do you know any better? I Want to make something like the
www.advfn.com, but leave to the user to add it's own studies. I am
brazilian, and yahoo finances don't give historical quotes for my country,
I'll have to adapt to get the quotes from a bunch of csv files. Can you
suggest anything to me? =) Thanks!