We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e0d1ca commit 97640daCopy full SHA for 97640da
1 file changed
lib/matplotlib/image.py
@@ -697,7 +697,8 @@ def get_zdata(self, event):
697
i, j = trans.transform_point([y, x]).astype(int)
698
z = arr[i, j]
699
if z.size > 1:
700
- # Override default numpy formatting for this specific case. Bad idea?
+ # Override default numpy formatting for this specific case.
701
+ # Bad idea?
702
z = ', '.join('{:0.3g}'.format(item) for item in z)
703
return 'z=%s' % z
704
0 commit comments