Ipython 笔记本:使用 "handle" 调整图形大小?
Ipython Notebook: Resize figure with "handle"?
在这个 IPython Notebook example 中说:
[...] images can be resized by dragging the handle in the lower right
corner. Double clicking will return them to their original size.
那个句柄是指哪个句柄?我在自己的输出中没有看到任何内容。
我是不是缺少扩展包才能看到这个句柄?
认为他们指的是我屏幕截图中标记的小东西。在当前版本中,内联图形似乎没有此句柄。
如果将 %matplotlib inline
替换为 %matplotlib notebook
,则可以试用此功能。
%matplotlib notebook
import matplotlib.pyplot as plt
import numpy as np
import matplotlib.pyplot as plt
import numpy as np
x = np.linspace(0, 3*np.pi, 500)
plt.plot(x, np.sin(x**2))
plt.title('A simple chirp');
在这个 IPython Notebook example 中说:
[...] images can be resized by dragging the handle in the lower right corner. Double clicking will return them to their original size.
那个句柄是指哪个句柄?我在自己的输出中没有看到任何内容。
我是不是缺少扩展包才能看到这个句柄?
认为他们指的是我屏幕截图中标记的小东西。在当前版本中,内联图形似乎没有此句柄。
如果将 %matplotlib inline
替换为 %matplotlib notebook
,则可以试用此功能。
%matplotlib notebook
import matplotlib.pyplot as plt
import numpy as np
import matplotlib.pyplot as plt
import numpy as np
x = np.linspace(0, 3*np.pi, 500)
plt.plot(x, np.sin(x**2))
plt.title('A simple chirp');