Correctly implemented Arrow.dimension_values
@@ -149,6 +149,16 @@ class Arrow(Annotation):
settings = dict(self.get_param_values(), **overrides)
return self.__class__(*args, **settings)
+ def dimension_values(self, dimension, expanded=True, flat=True):
+ index = self.get_dimension_index(dimension)
+ if index == 0:
+ return np.array([self.x])
+ elif index == 1:
+ return np.array([self.y])
+ else:
+ return super(Text, self).dimension_values(dimension)
+
+
class Text(Annotation):
"""
