Skip to content

Commit 4731466

Browse files
authored
Merge pull request #316 from jgmakin/master
added missing braces for .format()
2 parents 5326b2b + 97fa7aa commit 4731466

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)