Skip to content

Commit 36a1bc5

Browse files
committed
Minor changes during bug fix session
1 parent 2a61014 commit 36a1bc5

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

plotpy/tests/items/test_curves.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ def test_plot():
4040
movable=False,
4141
),
4242
]
43-
_win = ptv.show_items(items, wintitle=test_plot.__doc__, title="Curves")
43+
_win = ptv.show_items(
44+
items, wintitle=test_plot.__doc__, title="Curves", plot_type="curve"
45+
)
4446

4547

4648
if __name__ == "__main__":

plotpy/tools/annotation.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# -*- coding: utf-8 -*-
2+
23
from plotpy.items import (
34
AnnotatedCircle,
45
AnnotatedEllipse,

plotpy/widgets/basetransform.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def get_plot(self) -> BasePlot:
187187
Returns:
188188
BasePlot: Plot widget
189189
"""
190-
return self.plot_widget.plot
190+
return self.plot_widget.get_plot()
191191

192192
def add_buttons_to_layout(
193193
self, layout: QW.QBoxLayout, apply=True, reset=True

0 commit comments

Comments
 (0)