[IPython-User] matplotlib and Ipython notebook : figsize not recognized in standard python/ipython
Massimo Di Stefano
Mon Apr 2 17:39:17 CDT 2012
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
> <email@example.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
> IPython-User mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-User