fix #559 for matplotlib >= 3.6
#602
+7
−9
Open
matplotlib >= 3.6
#602