{"action":"created","issue":{"url":"https://api.github.com/repos/HamsterHuey/easyplot/issues/5","labels_url":"https://api.github.com/repos/HamsterHuey/easyplot/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/HamsterHuey/easyplot/issues/5/comments","events_url":"https://api.github.com/repos/HamsterHuey/easyplot/issues/5/events","html_url":"https://github.com/HamsterHuey/easyplot/issues/5","id":56018833,"number":5,"title":"add_plot with x axis as list of datetime objects","user":{"login":"geeday","id":5487182,"avatar_url":"https://avatars.githubusercontent.com/u/5487182?v=3","gravatar_id":"","url":"https://api.github.com/users/geeday","html_url":"https://github.com/geeday","followers_url":"https://api.github.com/users/geeday/followers","following_url":"https://api.github.com/users/geeday/following{/other_user}","gists_url":"https://api.github.com/users/geeday/gists{/gist_id}","starred_url":"https://api.github.com/users/geeday/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geeday/subscriptions","organizations_url":"https://api.github.com/users/geeday/orgs","repos_url":"https://api.github.com/users/geeday/repos","events_url":"https://api.github.com/users/geeday/events{/privacy}","received_events_url":"https://api.github.com/users/geeday/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-30T10:45:44Z","updated_at":"2015-02-01T00:40:37Z","closed_at":null,"body":"If I use the add_plot method where the x axis is a list of datetime objects:\r\n\r\na get an error with line 143:\r\n\r\nax.ticklabel_format(useOffset=False)\r\n\r\n  File \"C:\\Python27\\lib\\site-packages\\easyplot\\easyplot.py\", line 143, in add_plot\r\n    ax.ticklabel_format(useOffset=False) # Prevent offset notation in plots\r\n  File \"C:\\Python27\\lib\\site-packages\\matplotlib\\axes\\_base.py\", line 2275, in ticklabel_format\r\n    \"This method only works with the ScalarFormatter.\")\r\nAttributeError: This method only works with the ScalarFormatter.\r\n\r\nthe first time I plot a line by creating a new instance, the chart is fine, the line in question only appers in add_plot.\r\n\r\nif I comment this line out, I get what I want.\r\n\r\nKind regards"},"comment":{"url":"https://api.github.com/repos/HamsterHuey/easyplot/issues/comments/72344999","html_url":"https://github.com/HamsterHuey/easyplot/issues/5#issuecomment-72344999","issue_url":"https://api.github.com/repos/HamsterHuey/easyplot/issues/5","id":72344999,"user":{"login":"HamsterHuey","id":3207370,"avatar_url":"https://avatars.githubusercontent.com/u/3207370?v=3","gravatar_id":"","url":"https://api.github.com/users/HamsterHuey","html_url":"https://github.com/HamsterHuey","followers_url":"https://api.github.com/users/HamsterHuey/followers","following_url":"https://api.github.com/users/HamsterHuey/following{/other_user}","gists_url":"https://api.github.com/users/HamsterHuey/gists{/gist_id}","starred_url":"https://api.github.com/users/HamsterHuey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HamsterHuey/subscriptions","organizations_url":"https://api.github.com/users/HamsterHuey/orgs","repos_url":"https://api.github.com/users/HamsterHuey/repos","events_url":"https://api.github.com/users/HamsterHuey/events{/privacy}","received_events_url":"https://api.github.com/users/HamsterHuey/received_events","type":"User","site_admin":false},"created_at":"2015-02-01T00:40:37Z","updated_at":"2015-02-01T00:40:37Z","body":"Thanks a lot. I was able to reproduce it and I'm pretty sure I know how to fix it without having to give up on disabling the offset plotting feature in matplotlib. It's probably going to take me longer to brush up on uploading packages on PyPi than it is to fix this bug :-/. I'll post an update once I have this fixed and would appreciate if you could test it out and let me know if it works.\r\n\r\n"}}