File tree Expand file tree Collapse file tree 3 files changed +15
-1
lines changed
Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 11# Changelog #
22
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+
315## Version 2.3.2 ##
416
517In this release, test coverage is 79%.
Original file line number Diff line number Diff line change 2020.. _GitHub: https://github.com/PierreRaybaut/plotpy
2121"""
2222
23- __version__ = "2.3.2 "
23+ __version__ = "2.3.3 "
2424__VERSION__ = tuple ([int (number ) for number in __version__ .split ("." )])
2525
2626# --- 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):
728728 for item in items :
729729 with writer .group (_get_name (item )):
730730 item .serialize (writer )
731+ writer .write (item .isVisible (), group_name = "visible" )
731732 with writer .group ("plot_items" ):
732733 writer .write_sequence (names )
733734
@@ -756,6 +757,7 @@ def load_items(
756757 item = klass ()
757758 with reader .group (name ):
758759 item .deserialize (reader )
760+ item .setVisible (reader .read ("visible" , default = True ))
759761 items .append (item )
760762 return items
761763
You can’t perform that action at this time.
0 commit comments