How to make inline plots in Jupyter Notebook larger?

后端 未结 9 1595
慢半拍i
慢半拍i 2020-12-12 08:38

I have made my plots inline on my Ipython Notebook with \"%matplotlib inline.\"

Now, the plot appears. However, it is very small. Is there a way to ma

9条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-12 09:08

    The default figure size (in inches) is controlled by

    matplotlib.rcParams['figure.figsize'] = [width, height]
    

    For example:

    import matplotlib.pyplot as plt
    plt.rcParams['figure.figsize'] = [10, 5]
    

    creates a figure with 10 (width) x 5 (height) inches

提交回复
热议问题