Commit 03faaa4 1 parent c6860f3 commit 03faaa4 Copy full SHA for 03faaa4
File tree 3 files changed +15
-1
lines changed
3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog #
2
2
3
+ ## Version 2.3.3 ##
4
+
5
+ In this release, test coverage is 79%.
6
+
7
+ 🛠️ Bug fixes:
8
+
9
+ * Unexpected behavior regarding ` io.load_items ` and ` io.save_items ` functions:
10
+ * Those functions were serializing and deserializing most of the parameters of the
11
+ plot items, but not their visibility state
12
+ * This is now fixed: the visibility state of the plot items is now saved and restored
13
+ as expected
14
+
3
15
## Version 2.3.2 ##
4
16
5
17
In this release, test coverage is 79%.
Original file line number Diff line number Diff line change 20
20
.. _GitHub: https://github.com/PierreRaybaut/plotpy
21
21
"""
22
22
23
- __version__ = "2.3.2 "
23
+ __version__ = "2.3.3 "
24
24
__VERSION__ = tuple ([int (number ) for number in __version__ .split ("." )])
25
25
26
26
# --- Important note: DATAPATH and LOCALEPATH are used by guidata.configtools
Original file line number Diff line number Diff line change @@ -728,6 +728,7 @@ def _get_name(item):
728
728
for item in items :
729
729
with writer .group (_get_name (item )):
730
730
item .serialize (writer )
731
+ writer .write (item .isVisible (), group_name = "visible" )
731
732
with writer .group ("plot_items" ):
732
733
writer .write_sequence (names )
733
734
@@ -756,6 +757,7 @@ def load_items(
756
757
item = klass ()
757
758
with reader .group (name ):
758
759
item .deserialize (reader )
760
+ item .setVisible (reader .read ("visible" , default = True ))
759
761
items .append (item )
760
762
return items
761
763
You can’t perform that action at this time.
0 commit comments