You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Usually, I am using following formatting for datetimes on x-axis in matplotlib (between date and time is new line \n):
import matplotlib.dates as md
XFMT = md.DateFormatter('%d-%b-%Y\n %H:%M:%S\n')
…
ax.xaxis.set_major_formatter(XFMT)
I tried to implement similar formatting to python-nvd3/lineWithFocusChart. But when I added ‘\n’ to x_axis_format, it crashes:
x_axis_format="%d %b %Y \n %H:%M"
I played around with different options like raw text or double backslashes, but nothing works:
x_axis_format=r"%d %b %Y \n %H:%M"
x_axis_format=r"%d %b %Y \n %H:%M"
Does anyone have an idea how to solve the problem?
The text was updated successfully, but these errors were encountered:
Usually, I am using following formatting for datetimes on x-axis in matplotlib (between date and time is new line \n):
import matplotlib.dates as md
XFMT = md.DateFormatter('%d-%b-%Y\n %H:%M:%S\n')
…
ax.xaxis.set_major_formatter(XFMT)
I tried to implement similar formatting to python-nvd3/lineWithFocusChart. But when I added ‘\n’ to x_axis_format, it crashes:
x_axis_format="%d %b %Y \n %H:%M"
I played around with different options like raw text or double backslashes, but nothing works:
x_axis_format=r"%d %b %Y \n %H:%M"
x_axis_format=r"%d %b %Y \n %H:%M"
Does anyone have an idea how to solve the problem?
The text was updated successfully, but these errors were encountered: