Jupyter making 3D matplotlib graphs extremely small

后端 未结 3 1413
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-16 09:17

Having read many of the posts on this site about resizing graphs and setting limits on graph sizes in Jupyter, I am virtually convinced there is something different when it

3条回答
  •  北恋
    北恋 (楼主)
    2021-01-16 09:52

    Sometimes that happens to me as well on my Mac.

    First use this:

    import matplotlib.pyplot as plt
    import matplotlib
    %matplotlib inline
    
    matplotlib.rcParams['figure.figsize'] = (20, 16)
    matplotlib.rcParams['figure.dpi'] = 200
    

    The trick for my case: First import and then use the %matplotlib inline command. However, seems like a bug.

提交回复
热议问题