@pytest.mark.backend('Qt5Agg')
def test_figureoptions():
    (fig, ax) = plt.subplots()
    ax.plot([1, 2])
    ax.imshow([[1]])
    ax.scatter(range(3), range(3), c=range(3))
    with mock.patch('matplotlib.backends.qt_editor._formlayout.FormDialog.exec_', (lambda self: None)):
        fig.canvas.manager.toolbar.edit_parameters()
@pytest.mark.backend('Qt5Agg')
def test_figureoptions():
    (fig, ax) = plt.subplots()
    ax.plot([1, 2])
    ax.imshow([[1]])
    ax.scatter(range(3), range(3), c=range(3))
    with mock.patch('matplotlib.backends.qt_editor._formlayout.FormDialog.exec_', (lambda self: None)):
        fig.canvas.manager.toolbar.edit_parameters()