Reputation: 2459
in pandas tutorial, they use
figsize(15,5)
I assume this adjust the size of the figures. But where is this function imported from ?
I am just curious about this use, Normally, I use:
plt.rcParams['figure.figsize'] = 16, 12
Thanks
Upvotes: 2
Views: 1099
Reputation: 23806
That notebook was probably written for an IPython ran with the --pylab
option, that imports figsize
from IPython.core.pylabtools.
It's not a good practice to use it, though, as it imports tons of stuff you don't necessarily use and also may clobber some other variables.
Read more:
Upvotes: 4