Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit aece695

Browse files
committed
Clean up string formatting
1 parent 88b56be commit aece695

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/artist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,7 @@ def format_zdata(self, z):
919919
is_int = isinstance(z, int)
920920
z = [z]
921921
if is_int:
922-
z = ', '.join('{:0}'.format(item) for item in z)
922+
z = ', '.join(item for item in z)
923923
else:
924924
z = ', '.join('{:0.3g}'.format(item) for item in z)
925925
return z

0 commit comments

Comments
 (0)