How to set the matplotlib figure default size in ipython notebook?

前端 未结 6 624
鱼传尺愫
鱼传尺愫 2020-11-30 18:39

I use \"$ipython notebook --pylab inline\" to start the ipython notebook. The display matplotlib figure size is too big for me, and I have to adjust it manually. How to se

6条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-30 19:42

    In iPython 3.0.0, the inline backend needs to be configured in ipython_kernel_config.py. You need to manually add the c.InlineBackend.rc... line (as mentioned in Greg's answer). This will affect both the inline backend in the Qt console and the notebook.

提交回复
热议问题