Skip to content

Commit 97fa7aa

Browse files
committed
added missing braces for .format()
1 parent 5326b2b commit 97fa7aa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tikzplotlib/axes.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -769,8 +769,7 @@ def _handle_listed_color_map(cmap, data):
769769
)
770770
for (k, rgb) in enumerate(repeated_cols[: cmap.N])
771771
]
772-
773-
colormap_string = "{mymap}{[1{}]\n {}\n}".format(unit, ";\n ".join(colors))
772+
colormap_string = "{{mymap}}{{[1{}]\n {}\n}}".format(unit, ";\n ".join(colors))
774773
is_custom_colormap = True
775774
return (colormap_string, is_custom_colormap)
776775

0 commit comments

Comments
 (0)