Tommy Grav | 1 Aug 04:39
Picon

AxesGrid question

i am trying to use the example at
http://matplotlib.sourceforge.net/examples/axes_grid/simple_axesgrid.html

but axes_grid is not in mpl_toolkits for the standard matplotlib  
build. Where
can I get the axes_grid tools?

Cheers
   Tommy

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
Andres Luhamaa | 1 Aug 11:32
Picon
Picon
Favicon

clabel and bbox

Hello!
Is it possible to add a bbox behind a clabel, like one can do with a 
plt.text or something that would look similar?

Best regards,
Andres

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
Jae-Joon Lee | 1 Aug 15:27
Picon
Gravatar

Re: AxesGrid question

The axes_grid toolkit is recently added to the matplotlib, and you
need to have development version of matplotlib.
You may try the matplotlib 0.99rc1 released a few days ago

http://www.nabble.com/matplotlib-0.99.0-rc1-%3A-call-for-testing-td24760373.html

or you may try to install from the svn

http://matplotlib.sourceforge.net/faq/installing_faq.html#install-svn

-JJ

On Fri, Jul 31, 2009 at 10:39 PM, Tommy Grav<tgrav <at> mac.com> wrote:
> i am trying to use the example at
> http://matplotlib.sourceforge.net/examples/axes_grid/simple_axesgrid.html
>
> but axes_grid is not in mpl_toolkits for the standard matplotlib
> build. Where
> can I get the axes_grid tools?
>
> Cheers
>   Tommy
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Matplotlib-users mailing list
(Continue reading)

Kaushik Ghose | 1 Aug 15:33
Picon
Favicon

Thanks!

Hi!

I would like to thank the matplotlib team for the new release. I haven't had the 
courage to deploy it on my main number crunching computer it but I have it on my 
regular computer and it's been fine.

I'm especially excited to see renewed work on the 3D plotting.

I have a quick question: what kind of improvements should I expect to see with 
the macos backend? I ran the 3D example with and without the backend, and things 
seemed qualitatively similar.

Best
-Kaushik

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
Jae-Joon Lee | 1 Aug 15:43
Picon
Gravatar

Re: clabel and bbox

The clable command returns a list of Text instances.
You need call set_bbox method for each of them.

tl = clabel(...)
for t in tl:
    t.set_bbox(dict(fc="y"))

For clabels, which are often rotated, it may better to use fancy box
style (the default bbox is not rotated even though the text is).

  t.set_bbox(dict(boxstyle="round",fc="y"))

Regards,

-JJ

On Sat, Aug 1, 2009 at 5:32 AM, Andres Luhamaa<andres.luhamaa <at> ut.ee> wrote:
> Hello!
> Is it possible to add a bbox behind a clabel, like one can do with a
> plt.text or something that would look similar?
>
> Best regards,
> Andres
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
(Continue reading)

Tommy Grav | 1 Aug 15:32
Picon

Re: AxesGrid question

Thanks, I downloaded and installed 0.99rc1 and that worked beautifully.
Might be good to put this explicitly on the webpages as it is very  
confusing.

Tommy

On Aug 1, 2009, at 9:27 AM, Jae-Joon Lee wrote:

> The axes_grid toolkit is recently added to the matplotlib, and you
> need to have development version of matplotlib.
> You may try the matplotlib 0.99rc1 released a few days ago
>
> http://www.nabble.com/matplotlib-0.99.0-rc1-%3A-call-for-testing-td24760373.html
>
> or you may try to install from the svn
>
> http://matplotlib.sourceforge.net/faq/installing_faq.html#install-svn
>
> -JJ
>
>
>
> On Fri, Jul 31, 2009 at 10:39 PM, Tommy Grav<tgrav@...> wrote:
>> i am trying to use the example at
>> http://matplotlib.sourceforge.net/examples/axes_grid/simple_axesgrid.html
>>
>> but axes_grid is not in mpl_toolkits for the standard matplotlib
>> build. Where
>> can I get the axes_grid tools?
>>
(Continue reading)

Mark Rubelmann | 1 Aug 19:05
Picon

Backend neutral idle event won't repeat

Hi,

I'm writing a script to plot data being read from a serial connection in real time.  I'm trying to use an idle_event callback to continually read the incoming data and plot it.  The problem is that the callback is only getting invoked once.  I found this page: http://www.scipy.org/Cookbook/Matplotlib/Animations, which suggests using backend-specific stuff.  This is intended to be a quick-and-dirty thing though so I was really hoping to avoid that.  Here's my code:

def OnIdle(event):
    global xData
    global yData
    data = ReadSerialData()
    if data != None:
        yData.append(data)
        if len(yData) > GRAPH_WINDOW_SIZE:
            del yData[0]
        else:
            xData.append(len(xData))
        line.set_xdata(xData)
        line.set_ydata(yData)
        pylab.draw()
    # end if data != None
# end OnIdle

if __name__ == '__main__':
    pylab.ion()

    fig = pylab.figure()
    ax = fig.add_subplot(1,1,1)
    line = ax.add_line(pylab.Line2D([], []))
    ax.set_ylim(0, 100)
    ax.set_xlim(0, GRAPH_WINDOW_SIZE)
    fig.canvas.mpl_connect('idle_event', OnIdle)

    pylab.show()
# end __name__ == '__main__'

Oh btw, I'm positive that ReadSerialData is not blocking and that it's making it through the whole idle handler.  I'm running on 64 bit Linux with Python 2.6.  According to --verbose-helpful, I'm using matplotlib version 0.98.5.2 and GTKAgg version 2.14.1.  Am I doing something wrong or do I really need to go backend-specific?

Thanks,
Mark

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@...
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Jae-Joon Lee | 1 Aug 21:04
Picon
Gravatar

Re: AxesGrid question

On Sat, Aug 1, 2009 at 9:32 AM, Tommy Grav<tgrav <at> mac.com> wrote:
> Thanks, I downloaded and installed 0.99rc1 and that worked beautifully.
> Might be good to put this explicitly on the webpages as it is very
> confusing.

This is not just a issue of axes_grid toolkit. The current mpl
document on the home page (including the gallery) reflects what is in
the svn development tree.
Yes, I agree that this is confusing.  I guess there have been similar
issues raised before, but I can't remember what the resolution was.

John, is it possible to have two different set of documents on the
web? One for the stable release, and the other for development
version? This seems to be one of the obvious solutions to me.

Regards,

-JJ

>
> Tommy
>
> On Aug 1, 2009, at 9:27 AM, Jae-Joon Lee wrote:
>
>> The axes_grid toolkit is recently added to the matplotlib, and you
>> need to have development version of matplotlib.
>> You may try the matplotlib 0.99rc1 released a few days ago
>>
>> http://www.nabble.com/matplotlib-0.99.0-rc1-%3A-call-for-testing-td24760373.html
>>
>> or you may try to install from the svn
>>
>> http://matplotlib.sourceforge.net/faq/installing_faq.html#install-svn
>>
>> -JJ
>>
>>
>>
>> On Fri, Jul 31, 2009 at 10:39 PM, Tommy Grav<tgrav <at> mac.com> wrote:
>>> i am trying to use the example at
>>> http://matplotlib.sourceforge.net/examples/axes_grid/simple_axesgrid.html
>>>
>>> but axes_grid is not in mpl_toolkits for the standard matplotlib
>>> build. Where
>>> can I get the axes_grid tools?
>>>
>>> Cheers
>>>  Tommy
>>>
>>> ------------------------------------------------------------------------------
>>> Let Crystal Reports handle the reporting - Free Crystal Reports
>>> 2008 30-Day
>>> trial. Simplify your report design, integration and deployment -
>>> and focus on
>>> what you do best, core application coding. Discover what's new with
>>> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>>> _______________________________________________
>>> Matplotlib-users mailing list
>>> Matplotlib-users <at> lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Thomas Robitaille | 1 Aug 22:07
Picon
Gravatar

Re: executing function when view interval changes


John Hunter-4 wrote:
> 
> On Thu, Feb 12, 2009 at 2:13 PM, Ryan May <rmay31@...> wrote:
>> On Wed, Feb 11, 2009 at 7:30 PM, John Hunter <jdh2358@...> wrote:
>>>
>>> On Wed, Feb 11, 2009 at 2:49 PM, Ryan May <rmay31@...> wrote:
> 
>> Well, I checked in an example that shows the functionality.  The problem
>> is
>> that using these events doesn't follow the standard event API.  You don't
>> connect using figure.canvas.mpl_connect() (it doesn't like the names
>> 'xlim_changed' and 'ylim_changed'), but rather you use
>> Axes.callbacks.connect().  Also, the an event object is not passed into
>> the
>> callback, but rather the originating axes instance.  Are these events
>> relics
>> to the older version of event handling that haven't been moved to the
>> present?
>>
>> Otherwise, should I add a special section to the event handling docs to
>> handle these?
> 
> 
> Thanks for the example -- you are right that this is a 'legacy' event
> callback outside the regular event framework.  So it doesn't really
> belong in the event handling chapter but may merit a quick note there.
>  Alternatively, we could rather easily draft up a special event
> (NavigationEvent?)  that *does* work in the regular event handling
> framework.  The quirk is that the events are handled at the canvas
> level, so it would be difficult to register for a single axes, but one
> could get a NavigationEvent if the limits of any of the axes in the
> figure were updated, and use the inaxes attribute to process it.  If
> this, or some variant of it, seems like a good idea I'm happy to add
> it.
> 
> JDH
> 

Hi,

Since matplotlib is about to hit 0.99, I am bringing up an old discussion
about the 'callback' events 'xlim_changed' and 'ylim_changed' which are only
available through the

callbacks.connect('xlim_changed',dostuff)

API. Is there now a way to do this through the 'standard' mpl_connect() API?
If not, would it be easy to implement this?

Thanks,

Tom

--

-- 
View this message in context: http://www.nabble.com/executing-function-when-view-interval-changes-tp21963695p24772257.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
David Kim | 1 Aug 22:36
Picon

Matplotlib.finance and yahoo data

Hello, quick question about the quotes_historical_yahoo function in matplotlib.finance. Typically, you need to define a start and end date for a given ticker to pull the data. Is there a way to pull ALL of the historical data without knowing when the stock or ETF started trading? I'm new to matplotlib and this list (and python, in general), so apologies if this has been asked before. If there is a searchable archive of messages, I'd appreciate a pointer URL.


Many thanks!

dk

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@...
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Gmane