Neal,

You might try 
mpl.use('GTKAgg')
as I have seen problems with lone GTK.  Also you might change this in your 
.matplotlibrc file if possible.

-Sterling

On Mar 11, 2013, at 10:43AM, Neal Becker wrote:

> According to other examples I see on the web, use of 'relim' and 
> 'autoscale_view' should result in rescaling and drawing new axes.  Doesn't.
> Unless I explicity call 
> ax.axis ([...])
> I don't get any rescaling.
> 
> Here's an example:
> 
> import matplotlib as mpl
> mpl.use ('GTK')
> import matplotlib.pyplot as plt
> plt.ion()
> import numpy as np
> fig=plt.figure()
> ax = fig.add_subplot(111)
> x_values = [0]
> ax.axis ([0, 10, -1, 1])
> y_values = [0]
> 
> i=0
> x=list()
> y=list()
> 
> while i <1000:
>    x.append (i)
>    y.append (2*i)
>    line, = plt.plot (x, y, 'x-')
> 
> ##    ax.axis ([min(x),max(x),min(y),max(y)])
> 
>    ax.relim()
>    # update ax.viewLim using the new dataLim
>    ax.autoscale_view()
>    plt.draw()
>    i+=1
> 
> 
> 
> ------------------------------------------------------------------------------
> Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
> endpoint security space. For insight on selecting the right partner to 
> tackle endpoint security challenges, access the full report. 
> http://p.sf.net/sfu/symantec-dev2dev
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users


------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to