[IPython-User] matplotlib and Ipython notebook : figsize not recognized in standard python/ipython

Massimo Di Stefano massimodisasha@gmail....
Mon Apr 2 17:39:17 CDT 2012


that's it! 

thanks Fernando!

i was wondering why the sinatx without '=' was working in the notebook .. i got it thanks!!!



Il giorno Apr 2, 2012, alle ore 1:35 PM, Fernando Perez ha scritto:

> On Mon, Apr 2, 2012 at 10:04 AM, Massimo Di Stefano
> <massimodisasha@gmail.com> wrote:
>> import matplotlib.pyplot as plt
>> fig = plt.figure(figsize(10,8))
>> 
>> 
>> but if i include thi line in a scrip and try to execute it from inside the
>> notebook or from a python/ipython shell i got the error :
>> 
>> name 'figsize' is not defined
>> 
>> can you help me to fix this issue ?
> 
> fig = plt.figure(figsize=(10,8))
> 
> you were missing the = sign, it's a keyword argument
> 
> f
> _______________________________________________
> IPython-User mailing list
> IPython-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-user

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-user/attachments/20120402/f4d7003b/attachment.html 


More information about the IPython-User mailing list