@@ -2977,7 +2977,8 @@ def array(self):
29772977 xcoord = self .transpose .get_x (self .data )
29782978 func = "get_x" if not self .transpose .value else "get_y"
29792979 data = next (self .iter_data )
2980- if xcoord .name == getattr (self .decoder , func )(data ).name :
2980+ decoder_coord = getattr (self .decoder , func )(data )
2981+ if decoder_coord is not None and xcoord .name == decoder_coord .name :
29812982 bounds = self .decoder .get_cell_node_coord (
29822983 data , axis = "x" , coords = data .coords
29832984 )
@@ -2996,7 +2997,8 @@ def array(self):
29962997 ycoord = self .transpose .get_y (self .data )
29972998 func = "get_x" if self .transpose .value else "get_y"
29982999 data = next (self .iter_data )
2999- if ycoord .name == getattr (self .decoder , func )(data ).name :
3000+ decoder_coord = getattr (self .decoder , func )(data )
3001+ if decoder_coord is not None and ycoord .name == decoder_coord .name :
30003002 bounds = self .decoder .get_cell_node_coord (
30013003 data , axis = "y" , coords = data .coords
30023004 )
@@ -4757,9 +4759,11 @@ def update_axis(self, value):
47574759 label_positions = dict (
47584760 zip (
47594761 map ("label{}" .format , posnames ),
4760- [True , False ]
4761- if self .position in ["t" , "ft" , "l" , "fl" ]
4762- else [False , True ],
4762+ (
4763+ [True , False ]
4764+ if self .position in ["t" , "ft" , "l" , "fl" ]
4765+ else [False , True ]
4766+ ),
47634767 )
47644768 )
47654769 label_positions .update (** value )
@@ -5883,7 +5887,7 @@ class PointDensity(Formatoption):
58835887
58845888 References
58855889 ----------
5886- .. [statsmodels] http ://statsmodels.sourceforge.net/
5890+ .. [statsmodels] https ://www. statsmodels.org
58875891 """
58885892
58895893 priority = START
0 commit comments