Re: [Matplotlib-users] matplotlib finance

2015-01-31 Thread Marcel Milcent
Even deprecated, mpl.finance can do some of  the things you need.
Check these tutotials, and others, here:
https://www.youtube.com/playlist?list=PLQVvvaa0QuDc2QjQOkZ4rtLYZVll_sZFZ
There is also something about live stream and memory usage concern with
matplotlib when reloading the charts, somewhere.
Regards,
Milcent


Em Fri Jan 30 2015 at 21:03:56, Benjamin Root  escreveu:

> To be clear, most of what was in finance.py were convenience functions for
> parsing through stock data from the yahoo interface, and for plotting.
> Taking a quick look, perhaps it might make sense to pull out a couple
> fundamental chart types, but most of the code are just simply convenience
> wrappers, and largely outdated now.
>
> The problem we are having is that users would file bug reports saying that
> we were doing a particular chart incorrectly, and none of us had any domain
> knowledge to know if that was the truth, false, or just a matter of opinion
> in the field. Matplotlib is also intended to be a general-purpose plotting
> library. It really shouldn't be doing much of the data preparatory work.
> You should just tell it what to plot and let it crank. If that data
> happened to have used a moving window, it wouldn't matter if it was an
> average, median, or what-have-you. Matplotlib is fairly low-level, and
> works very well that way. For example, there isn't an
> "streamed_data_plot()" function. You have to do the streaming yourself and
> update the plot.
>
> For data wrangling, I would suggest using Pandas. It interfaces quite
> nicely (mostly) with matplotlib, and it is considered the de facto tool to
> use for time series statistical analyses. Once the data is mashed into the
> form you need, then you can plot it however you like.
>
> If you really want to keep finance.py alive, then all we are looking for
> is someone knowledgable to stand up and take responsibility for it. It is
> mostly self-contained, so it is even possible to spin it off as its own
> mpl_toolkit managed separately from matplotlib.
>
> I mean, let's face it... do you really want your finances managed by a
> bunch of meteorologists and astrophysicists?  ;-P
>
> Cheers!
> Ben Root
>
>
> On Fri, Jan 30, 2015 at 1:30 PM, Thomas Caswell 
> wrote:
>
>> Boris,
>>
>> Please direct such questions to the user list in the future (I have
>> included the list on my reply).  You may need to join the list to be able
>> to post.
>>
>> The reason that mpl.finance was deprecated is that none of the current
>> core developers work in finance and hence do not have the domain expertise
>> to maintain the module.  We are currently looking for a volunteer to take
>> responsibility for that bit of code.
>>
>> I have no experience with plotting financial data and am hesitant to
>> speculate about performance, but have gotten 20-30 fps out of mpl on other
>> applications.
>>
>> Tom
>>
>> On Fri Jan 30 2015 at 1:19:47 PM tbad  wrote:
>>
>>> Hello Thomas,
>>>
>>> - You write in Github that matplotlib finance is deprecated since
>>> matplotlib 1.4. What is instead of it?
>>> - Can you please advice on what to use if i want to use matplotlib for
>>> charting stocks, volume in different formats like candlesticks, tick
>>> charts, bar charts with technical analysis add-ons like moving averages
>>> etc.? I want to have charts with intra-day real time streaming with a lot
>>> of stocks (i have a data feed provider). Or the only way is to do
>>> everything manually?
>>> - And will matplotlib be capable of streaming a lot of stocks tick by
>>> tick without delays?
>>> - Also maybe there are other python packages useful for trading purposes?
>>>
>>> Thank you for any answers beforehand,
>>> Best regards,
>>> Boris
>>>
>>
>>
>> --
>> Dive into the World of Parallel Programming. The Go Parallel Website,
>> sponsored by Intel and developed in partnership with Slashdot Media, is
>> your
>> hub for all things parallel software development, from weekly thought
>> leadership blogs to news, videos, case studies, tutorials and more. Take a
>> look and join the conversation now. http://goparallel.sourceforge.net/
>> ___
>> Matplotlib-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>>
> 
> --
> Dive into the World of Parallel Programming. The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot Media, is
> your
> hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials and more. Take a
> look and join the conversation now. http://goparallel.sourceforge.net/
> ___
> Matplotlib-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/

Re: [Matplotlib-users] using it in a Qt5-Widget

2015-01-31 Thread Benjamin Root
By the way, soon I will have a book out on creating interactive
applications using matplotlib. I devote an entire chapter to clearly (I
hope!) demonstrating how to use particular GUI toolkits with matplotlib. It
is currently going through the final pre-publishing steps, so I should be
announcing its release fairly soon.

Cheers!
Ben Root


On Wed, Jan 28, 2015 at 2:42 PM, Sterling Smith 
wrote:

> Did you come across
> http://matplotlib.org/examples/user_interfaces/embedding_in_qt4.html
> ?
> -Sterling
>
> On Jan 28, 2015, at 11:38AM, [email protected] wrote:
>
> > On 2015-01-28 16:25 Thomas Caswell  wrote:
> >> It should be exactly the same as for Qt4, just importing from the Qt5
> >> version
> >
> > Sorry, but my question was to unspecific.
> >
> > I don't know how it worked with Qt4.
> >
> > I need to know I can "draw" a plot into a QWidget or something else. I
> > couldn't find an example or documentation about it.
> >
> >
> --
> > Dive into the World of Parallel Programming. The Go Parallel Website,
> > sponsored by Intel and developed in partnership with Slashdot Media, is
> your
> > hub for all things parallel software development, from weekly thought
> > leadership blogs to news, videos, case studies, tutorials and more. Take
> a
> > look and join the conversation now. http://goparallel.sourceforge.net/
> > ___
> > Matplotlib-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
>
> --
> Dive into the World of Parallel Programming. The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot Media, is
> your
> hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials and more. Take a
> look and join the conversation now. http://goparallel.sourceforge.net/
> ___
> Matplotlib-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
--
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/___
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users