Skip to content

Commit 5271531

Browse files
authored
Merge pull request #325 from andreassch/master
unicode fix for ticklabels for Python 2
2 parents c023c06 + 45d33d5 commit 5271531

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tikzplotlib/axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ def _get_ticks(data, xy, ticks, ticklabels):
582582

583583
if is_label_required:
584584
axis_options.append(
585-
"{}ticklabels={{{}}}".format(xy, ",".join(pgfplots_ticklabels))
585+
u"{}ticklabels={{{}}}".format(xy, u",".join(pgfplots_ticklabels))
586586
)
587587
return axis_options
588588

tikzplotlib/line2d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ def _table(obj, data):
264264
elif isinstance(xdata_alt[0], str):
265265
data["current axes"].axis_options += [
266266
"xtick={{{}}}".format(",".join([ff.format(x) for x in xdata])),
267-
"xticklabels={{{}}}".format(",".join(xdata_alt)),
267+
u"xticklabels={{{}}}".format(u",".join(xdata_alt)),
268268
]
269269
xdata, ydata = transform_to_data_coordinates(obj, xdata, ydata)
270270
else:

0 commit comments

Comments
 (0)