Skip to content

Commit 436b0a9

Browse files
committed
[FIX] Paint Data: Save and load labels
1 parent 5524ed9 commit 436b0a9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Orange/widgets/data/owpaintdata.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -778,6 +778,7 @@ class OWPaintData(OWWidget):
778778
density = Setting(7)
779779
#: current data array (shape=(N, 3)) as presented on the output
780780
data = Setting(None, schema_only=True)
781+
labels = Setting(["C1", "C2"], schema_only=True)
781782

782783
graph_name = "plot"
783784

@@ -803,7 +804,6 @@ def __init__(self):
803804
#: a copy of this array (as seen when the `invalidate` method is
804805
#: called
805806
self.__buffer = None
806-
self.labels = ["C1", "C2"]
807807

808808
self.undo_stack = QUndoStack(self)
809809

@@ -1298,7 +1298,7 @@ def send_report(self):
12981298
self.report_items("Painted data", settings)
12991299
self.report_plot()
13001300

1301-
def test():
1301+
def main():
13021302
from AnyQt.QtWidgets import QApplication
13031303
import gc
13041304
import sip
@@ -1317,4 +1317,4 @@ def test():
13171317

13181318

13191319
if __name__ == "__main__":
1320-
sys.exit(test())
1320+
sys.exit(main())

0 commit comments

Comments
 (0)