@@ -44,26 +44,26 @@ def __init__(self, data, obj): # noqa: C901
4444 data ["current axis title" ] = title
4545 if title :
4646 title = _common_texification (title )
47- self .axis_options .append (u "title={{{}}}" .format (title ))
47+ self .axis_options .append ("title={{{}}}" .format (title ))
4848
4949 # get axes titles
5050 xlabel = obj .get_xlabel ()
5151 xrotation = obj .xaxis .get_label ().get_rotation ()
5252 if xlabel :
5353 xlabel = _common_texification (xlabel )
54- self .axis_options .append (u "xlabel={{{}}}" .format (xlabel ))
54+ self .axis_options .append ("xlabel={{{}}}" .format (xlabel ))
5555 if xrotation != 0 :
5656 self .axis_options .append (
57- u "xlabel style={{rotate={}}}" .format (xrotation - 90 )
57+ "xlabel style={{rotate={}}}" .format (xrotation - 90 )
5858 )
5959 ylabel = obj .get_ylabel ()
6060 yrotation = obj .yaxis .get_label ().get_rotation ()
6161 if ylabel :
6262 ylabel = _common_texification (ylabel )
63- self .axis_options .append (u "ylabel={{{}}}" .format (ylabel ))
63+ self .axis_options .append ("ylabel={{{}}}" .format (ylabel ))
6464 if yrotation != 90 :
6565 self .axis_options .append (
66- u "ylabel style={{rotate={}}}" .format (yrotation - 90 )
66+ "ylabel style={{rotate={}}}" .format (yrotation - 90 )
6767 )
6868
6969 # Axes limits.
@@ -573,7 +573,7 @@ def _get_ticks(data, xy, ticks, ticklabels):
573573 # must appear in the TikZ plot.
574574 if label :
575575 try :
576- label_float = float (label .replace (u "\N{MINUS SIGN} " , "-" ))
576+ label_float = float (label .replace ("\N{MINUS SIGN} " , "-" ))
577577 is_label_required = is_label_required or (label and label_float != tick )
578578 except ValueError :
579579 is_label_required = True
@@ -597,7 +597,7 @@ def _get_ticks(data, xy, ticks, ticklabels):
597597
598598 if is_label_required :
599599 axis_options .append (
600- u "{}ticklabels={{{}}}" .format (xy , u "," .join (pgfplots_ticklabels ))
600+ "{}ticklabels={{{}}}" .format (xy , "," .join (pgfplots_ticklabels ))
601601 )
602602 return axis_options
603603
0 commit comments