Skip to content

Commit

Permalink
Merge pull request #316 from jgmakin/master
Browse files Browse the repository at this point in the history
added missing braces for .format()
  • Loading branch information
nschloe committed Jul 27, 2019
2 parents 5326b2b + 97fa7aa commit 4731466
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tikzplotlib/axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -769,8 +769,7 @@ def _handle_listed_color_map(cmap, data):
)
for (k, rgb) in enumerate(repeated_cols[: cmap.N])
]

colormap_string = "{mymap}{[1{}]\n {}\n}".format(unit, ";\n ".join(colors))
colormap_string = "{{mymap}}{{[1{}]\n {}\n}}".format(unit, ";\n ".join(colors))
is_custom_colormap = True
return (colormap_string, is_custom_colormap)

Expand Down

0 comments on commit 4731466

Please sign in to comment.