{"action":"created","issue":{"url":"https://api.github.com/repos/marcharper/python-ternary/issues/41","repository_url":"https://api.github.com/repos/marcharper/python-ternary","labels_url":"https://api.github.com/repos/marcharper/python-ternary/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/marcharper/python-ternary/issues/41/comments","events_url":"https://api.github.com/repos/marcharper/python-ternary/issues/41/events","html_url":"https://github.com/marcharper/python-ternary/issues/41","id":140758806,"number":41,"title":"Code crashes when drawing axes","user":{"login":"jamesafoster","id":1129189,"avatar_url":"https://avatars.githubusercontent.com/u/1129189?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesafoster","html_url":"https://github.com/jamesafoster","followers_url":"https://api.github.com/users/jamesafoster/followers","following_url":"https://api.github.com/users/jamesafoster/following{/other_user}","gists_url":"https://api.github.com/users/jamesafoster/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesafoster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesafoster/subscriptions","organizations_url":"https://api.github.com/users/jamesafoster/orgs","repos_url":"https://api.github.com/users/jamesafoster/repos","events_url":"https://api.github.com/users/jamesafoster/events{/privacy}","received_events_url":"https://api.github.com/users/jamesafoster/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-14T18:29:05Z","updated_at":"2016-03-14T18:58:58Z","closed_at":null,"body":"Here is the traceback. The outer function is just a wrapper of mine, and doesn't set the axes colors.\r\n\r\n    TypeError                                 Traceback (most recent call last)\r\n<ipython-input-11-465709352694> in <module>()\r\n      2 figure, tax = ternary.figure( scale=scale )\r\n      3 \r\n----> 4 plotPreferences( tax, 'Sig', players, [4], [0,1,2,3,4,5] )\r\n\r\n<ipython-input-8-c3ef420fca9f> in plotPreferences(tax, agentType, agent, runList, inputList, colors)\r\n     12     tax.bottom_axis_label(\"Preference for 2\", fontsize=fontsize)\r\n     13 \r\n---> 14     tax.boundary(color=\"black\", linewidth=2.0)\r\n     15     tax.gridlines(multiple=0.1, color=\"blue\")\r\n     16     tax.ticks(axis='lbr', color=\"black\", linewidth=1, multiple=0.1)\r\n\r\nC:\\Users\\Peter\\Anaconda3\\lib\\site-packages\\ternary\\ternary_axes_subplot.py in boundary(self, scale, axes_colors, **kwargs)\r\n    201         ax = self.get_axes()\r\n    202         self.resize_drawing_canvas(scale)\r\n--> 203         lines.boundary(scale=scale, ax=ax, axes_colors=axes_colors, **kwargs)\r\n    204 \r\n    205     def gridlines(self, multiple=None, horizontal_kwargs=None, left_kwargs=None,\r\n\r\nC:\\Users\\Peter\\Anaconda3\\lib\\site-packages\\ternary\\lines.py in boundary(ax, scale, axes_colors, **kwargs)\r\n    119             axes_colors[_axis] = 'black'\r\n    120 \r\n--> 121     horizontal_line(ax, scale, 0, color=axes_colors['b'], **kwargs)\r\n    122     left_parallel_line(ax, scale, 0, color=axes_colors['l'], **kwargs)\r\n    123     right_parallel_line(ax, scale, 0, color=axes_colors['r'], **kwargs)\r\n\r\nTypeError: horizontal_line() got multiple values for keyword argument 'color'"},"comment":{"url":"https://api.github.com/repos/marcharper/python-ternary/issues/comments/196472684","html_url":"https://github.com/marcharper/python-ternary/issues/41#issuecomment-196472684","issue_url":"https://api.github.com/repos/marcharper/python-ternary/issues/41","id":196472684,"user":{"login":"marcharper","id":203345,"avatar_url":"https://avatars.githubusercontent.com/u/203345?v=3","gravatar_id":"","url":"https://api.github.com/users/marcharper","html_url":"https://github.com/marcharper","followers_url":"https://api.github.com/users/marcharper/followers","following_url":"https://api.github.com/users/marcharper/following{/other_user}","gists_url":"https://api.github.com/users/marcharper/gists{/gist_id}","starred_url":"https://api.github.com/users/marcharper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcharper/subscriptions","organizations_url":"https://api.github.com/users/marcharper/orgs","repos_url":"https://api.github.com/users/marcharper/repos","events_url":"https://api.github.com/users/marcharper/events{/privacy}","received_events_url":"https://api.github.com/users/marcharper/received_events","type":"User","site_admin":false},"created_at":"2016-03-14T18:58:58Z","updated_at":"2016-03-14T18:58:58Z","body":"When I merged in a PR to allow for the axes to be different colors, I changed the API for `boundary`. If you just want a black boundary, simply use `tax.boundary(linewidth=2.0)` now. Otherwise you can specify the colors like so:\r\n\r\n```\r\naxes_colors = {'b': 'g', 'l': 'r', 'r':'b'}\r\ntax.boundary(linewidth=2.0, axes_colors=axes_colors)\r\n```\r\n\r\nIt's just a dictionary with colors for the bottom `b`, left `l`, and right `r` axes."}}