Hello,

I see a significant difference in plots generated with two recent 
versions of matplotlib, and unfortunately not in favour of the newer 
one, otherwise there would be no reason to write here, I guess.

The problem is following, I plot some data wich might be undefined in 
some cases. For example, I plot two lines and one of them has values 
'None' only. Using the 0.98.3 version there is no problem, the graph 
with 'None'-s is just not shown, but with 0.98.5 the y-scale is 
something close to zero only, if the first line is 'None'-s and I do not 
see the plot for other line as well.

I add simple code, which works fine with 0.98.3 and not with 0.98.5. It 
is definitely not difficult to make a workaround, but for some reason I 
like the behaviour of previous version better and if there is no need to 
change it, maybe we could turn it back into situation, where one line of 
missing data would not destroy the whole graph.

Best regards,
Andres Luhamaa

Univ. of Tartu, Estonia

import 
sys                                                                     
#sys.path.insert(1,'/home/andres/SKRIPTID/lib/python')                          
 
                                                             
import numpy as 
np                                                             
import 
matplotlib                                                              
matplotlib.use( 'Agg' 
)                                                        
import 
pylab                                                                   
strm=np.array([[None,10,None,5,1],                                              

               
[None,7.,None,5.,2.],                                           
               
[None,8.,None,5.,3.],                                           
               
[None,6.,None,5.,4.],                                           
               
[None,7.,None,5.,5.],                                           
               
[None,8.,None,5.,6.],                                           
               
[None,8.,None,5.,7.],                                           
               
[None,7.,None,5.,8.],                                           
               
[None,7.,None,5.,9.],                                           
               
[None,8.,None,5.,10.],                                          
               
[None,11.,None,5.,11.],                                         
               
[None,11.,None,5.,12.],                                         
               
[None,10.,None,5.,13.],                                         
               
[None,8.,None,5.,14.],                                          
               
[None,7.,None,5.,15.]],dtype=float)                             
fig=pylab.Figure()                                                              

pylab.plot(strm[:,0],'r-',strm[:,1],'b-')                                       

pylab.savefig('test.png')                     

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to