{"action":"created","issue":{"url":"https://api.github.com/repos/mwaskom/seaborn/issues/1014","repository_url":"https://api.github.com/repos/mwaskom/seaborn","labels_url":"https://api.github.com/repos/mwaskom/seaborn/issues/1014/labels{/name}","comments_url":"https://api.github.com/repos/mwaskom/seaborn/issues/1014/comments","events_url":"https://api.github.com/repos/mwaskom/seaborn/issues/1014/events","html_url":"https://github.com/mwaskom/seaborn/issues/1014","id":177437719,"number":1014,"title":"Violin plot not plotting on numeric axis","user":{"login":"philastrophist","id":14169057,"avatar_url":"https://avatars.githubusercontent.com/u/14169057?v=3","gravatar_id":"","url":"https://api.github.com/users/philastrophist","html_url":"https://github.com/philastrophist","followers_url":"https://api.github.com/users/philastrophist/followers","following_url":"https://api.github.com/users/philastrophist/following{/other_user}","gists_url":"https://api.github.com/users/philastrophist/gists{/gist_id}","starred_url":"https://api.github.com/users/philastrophist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philastrophist/subscriptions","organizations_url":"https://api.github.com/users/philastrophist/orgs","repos_url":"https://api.github.com/users/philastrophist/repos","events_url":"https://api.github.com/users/philastrophist/events{/privacy}","received_events_url":"https://api.github.com/users/philastrophist/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-16T14:21:09Z","updated_at":"2016-09-16T15:26:53Z","closed_at":"2016-09-16T15:26:53Z","body":"When using violinplot on a pre-defined axis with artists, violinplot removes previous data\r\n```\r\nimport matplotlib.pyplot as plt\r\nimport numpy as np\r\nimport pandas as pd\r\nimport seaborn as sns\r\n\r\nfig, ax = plt.subplots()\r\nwavelengths = [1,2,3,4,5]\r\nobservations = np.random.normal(size=(100, len(wavelengths)))\r\nd = pd.DataFrame(columns=wavelengths, data=observations)\r\nprint d\r\nsns.violinplot(d, ax=ax, inner='quartiles')\r\nax.errorbar([1], [10], 1, fmt='bo', color='k', markersize=10)\r\nprint ax.get_xlim()\r\nplt.show()\r\n```\r\nThe plotted errorbar is shifted to 2 instead of 1 since apparently `violinplot` renames the axis labels. This is not helpful. The `violinplot` should position each violin and not rename the axis labels when column names are numerical."},"comment":{"url":"https://api.github.com/repos/mwaskom/seaborn/issues/comments/247630353","html_url":"https://github.com/mwaskom/seaborn/issues/1014#issuecomment-247630353","issue_url":"https://api.github.com/repos/mwaskom/seaborn/issues/1014","id":247630353,"user":{"login":"mwaskom","id":315810,"avatar_url":"https://avatars.githubusercontent.com/u/315810?v=3","gravatar_id":"","url":"https://api.github.com/users/mwaskom","html_url":"https://github.com/mwaskom","followers_url":"https://api.github.com/users/mwaskom/followers","following_url":"https://api.github.com/users/mwaskom/following{/other_user}","gists_url":"https://api.github.com/users/mwaskom/gists{/gist_id}","starred_url":"https://api.github.com/users/mwaskom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwaskom/subscriptions","organizations_url":"https://api.github.com/users/mwaskom/orgs","repos_url":"https://api.github.com/users/mwaskom/repos","events_url":"https://api.github.com/users/mwaskom/events{/privacy}","received_events_url":"https://api.github.com/users/mwaskom/received_events","type":"User","site_admin":false},"created_at":"2016-09-16T15:26:53Z","updated_at":"2016-09-16T15:26:53Z","body":"Sorry but that's just the way it works."}}
{"actor":{"display_login":"mwaskom"}}