在绘图下方的交互式工具栏上选择缩放按钮后,我遇到此问题 . 当我单击以绘制矩形(用于放大)时,会出现黑线 . 这只发生在图的底部和最右侧 .

我正在使用Python 3.6.4和以下包:

  • matplotlib(2.1.2)

  • jupyter(1.0.0)

重现问题的代码(在jupyter笔记本中):

import numpy as np
from numpy.random import random
import matplotlib.pyplot as plt
%matplotlib notebook
plt.plot(random(100), random(100), '.')

enter image description here