{"action":"created","issue":{"url":"https://api.github.com/repos/mwaskom/seaborn/issues/564","labels_url":"https://api.github.com/repos/mwaskom/seaborn/issues/564/labels{/name}","comments_url":"https://api.github.com/repos/mwaskom/seaborn/issues/564/comments","events_url":"https://api.github.com/repos/mwaskom/seaborn/issues/564/events","html_url":"https://github.com/mwaskom/seaborn/issues/564","id":76766225,"number":564,"title":"violinplot: edges of plot using wrong colors","user":{"login":"jbradt","id":4149299,"avatar_url":"https://avatars.githubusercontent.com/u/4149299?v=3","gravatar_id":"","url":"https://api.github.com/users/jbradt","html_url":"https://github.com/jbradt","followers_url":"https://api.github.com/users/jbradt/followers","following_url":"https://api.github.com/users/jbradt/following{/other_user}","gists_url":"https://api.github.com/users/jbradt/gists{/gist_id}","starred_url":"https://api.github.com/users/jbradt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbradt/subscriptions","organizations_url":"https://api.github.com/users/jbradt/orgs","repos_url":"https://api.github.com/users/jbradt/repos","events_url":"https://api.github.com/users/jbradt/events{/privacy}","received_events_url":"https://api.github.com/users/jbradt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-15T15:42:28Z","updated_at":"2015-05-15T17:49:36Z","closed_at":null,"body":"With Matplotlib 1.4.3 and Seaborn 0.5.1, the edges of the distributions produced by `violinplot` seem to be using the standard plotting color cycle. \r\n\r\nI tried to reproduce one of the sample plots from [the documentation](http://stanford.edu/~mwaskom/software/seaborn/tutorial/plotting_distributions.html#comparing-distributions-boxplot-and-violinplot) just to check, and it looked like this:\r\n\r\n![bad_colors](https://cloud.githubusercontent.com/assets/4149299/7656087/3b57b8c8-faf6-11e4-8937-9151d80abdfa.png)\r\n\r\nI used this code (copied from the docs) to produce that plot:\r\n```python\r\nsns.set_palette(\"deep\", desat=.6)\r\nsns.set_context(rc={\"figure.figsize\": (8, 4)})\r\nnp.random.seed(9221999)\r\n\r\ny = np.random.randn(200)\r\ng = np.random.choice(list(\"abcdef\"), 200)\r\nfor i, l in enumerate(\"abcdef\"):\r\n    y[g == l] += i // 2\r\ndf = pd.DataFrame(dict(score=y, group=g))\r\n\r\nsns.violinplot(df.score, df.group, color=\"Paired\", bw=1);\r\n```\r\n\r\nIn the documentation, the sides of the distributions are black or maybe gray, but not multicolored.\r\n\r\nAm I missing something, or is this a bug? \r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/mwaskom/seaborn/issues/comments/102470257","html_url":"https://github.com/mwaskom/seaborn/issues/564#issuecomment-102470257","issue_url":"https://api.github.com/repos/mwaskom/seaborn/issues/564","id":102470257,"user":{"login":"jbradt","id":4149299,"avatar_url":"https://avatars.githubusercontent.com/u/4149299?v=3","gravatar_id":"","url":"https://api.github.com/users/jbradt","html_url":"https://github.com/jbradt","followers_url":"https://api.github.com/users/jbradt/followers","following_url":"https://api.github.com/users/jbradt/following{/other_user}","gists_url":"https://api.github.com/users/jbradt/gists{/gist_id}","starred_url":"https://api.github.com/users/jbradt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbradt/subscriptions","organizations_url":"https://api.github.com/users/jbradt/orgs","repos_url":"https://api.github.com/users/jbradt/repos","events_url":"https://api.github.com/users/jbradt/events{/privacy}","received_events_url":"https://api.github.com/users/jbradt/received_events","type":"User","site_admin":false},"created_at":"2015-05-15T17:49:36Z","updated_at":"2015-05-15T17:49:36Z","body":"Stranger yet: I just tried it a few times on tmpnb.org too, and sometimes it makes the dark gray lines like it should, and sometimes the lines are colored like above. If you restart the kernel in between runs, it's like it picks randomly what to do...\r\n\r\nThis was the total content of the notebook I ran on tmpnb.org:\r\n```python\r\n%matplotlib inline\r\nimport numpy as np\r\nfrom numpy.random import randn\r\nimport pandas as pd\r\nimport matplotlib as mpl\r\nimport matplotlib.pyplot as plt\r\nimport seaborn as sns\r\n\r\nsns.set_palette(\"deep\", desat=.6)\r\nsns.set_context(rc={\"figure.figsize\": (8, 4)})\r\nnp.random.seed(9221999)\r\n\r\ny = np.random.randn(200)\r\ng = np.random.choice(list(\"abcdef\"), 200)\r\nfor i, l in enumerate(\"abcdef\"):\r\n    y[g == l] += i // 2\r\ndf = pd.DataFrame(dict(score=y, group=g))\r\n\r\nsns.violinplot(df.score, df.group, color=\"Paired\", bw=1);\r\n```\r\n\r\nThat being said, if this has already been rewritten anyway, I could probably work around it by changing the color palette to one shade of grey temporarily.\r\n\r\nThanks for the response, though!"}}