{"action":"created","issue":{"url":"https://api.github.com/repos/facebookresearch/visdom/issues/480","repository_url":"https://api.github.com/repos/facebookresearch/visdom","labels_url":"https://api.github.com/repos/facebookresearch/visdom/issues/480/labels{/name}","comments_url":"https://api.github.com/repos/facebookresearch/visdom/issues/480/comments","events_url":"https://api.github.com/repos/facebookresearch/visdom/issues/480/events","html_url":"https://github.com/facebookresearch/visdom/issues/480","id":362377814,"node_id":"MDU6SXNzdWUzNjIzNzc4MTQ=","number":480,"title":"Allow scatter plots with more legend items than number of classes","user":{"login":"dmitriy-serdyuk","id":2872615,"node_id":"MDQ6VXNlcjI4NzI2MTU=","avatar_url":"https://avatars1.githubusercontent.com/u/2872615?v=4","gravatar_id":"","url":"https://api.github.com/users/dmitriy-serdyuk","html_url":"https://github.com/dmitriy-serdyuk","followers_url":"https://api.github.com/users/dmitriy-serdyuk/followers","following_url":"https://api.github.com/users/dmitriy-serdyuk/following{/other_user}","gists_url":"https://api.github.com/users/dmitriy-serdyuk/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitriy-serdyuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitriy-serdyuk/subscriptions","organizations_url":"https://api.github.com/users/dmitriy-serdyuk/orgs","repos_url":"https://api.github.com/users/dmitriy-serdyuk/repos","events_url":"https://api.github.com/users/dmitriy-serdyuk/events{/privacy}","received_events_url":"https://api.github.com/users/dmitriy-serdyuk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-09-20T21:38:18Z","updated_at":"2018-09-21T17:34:43Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"This line forces the number of items in the legend to be the same as the number of classes.\r\n\r\nhttps://github.com/facebookresearch/visdom/blob/master/py/visdom/__init__.py#L1140\r\n\r\nIn my case, not all the classes can be sampled in a particular batch. `len(opts['legend'])` becomes greater than `K`.\r\n\r\n**Describe the solution you'd like**\r\nAllow number of legend items *at least* the number of classes \r\n\r\n**Describe alternatives you've considered**\r\nI can manually remove legend items not used in this particular batch, but this is cumbersome.\r\n"},"comment":{"url":"https://api.github.com/repos/facebookresearch/visdom/issues/comments/423615235","html_url":"https://github.com/facebookresearch/visdom/issues/480#issuecomment-423615235","issue_url":"https://api.github.com/repos/facebookresearch/visdom/issues/480","id":423615235,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMzYxNTIzNQ==","user":{"login":"JackUrb","id":1276867,"node_id":"MDQ6VXNlcjEyNzY4Njc=","avatar_url":"https://avatars2.githubusercontent.com/u/1276867?v=4","gravatar_id":"","url":"https://api.github.com/users/JackUrb","html_url":"https://github.com/JackUrb","followers_url":"https://api.github.com/users/JackUrb/followers","following_url":"https://api.github.com/users/JackUrb/following{/other_user}","gists_url":"https://api.github.com/users/JackUrb/gists{/gist_id}","starred_url":"https://api.github.com/users/JackUrb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JackUrb/subscriptions","organizations_url":"https://api.github.com/users/JackUrb/orgs","repos_url":"https://api.github.com/users/JackUrb/repos","events_url":"https://api.github.com/users/JackUrb/events{/privacy}","received_events_url":"https://api.github.com/users/JackUrb/received_events","type":"User","site_admin":false},"created_at":"2018-09-21T17:34:43Z","updated_at":"2018-09-21T17:34:43Z","author_association":"CONTRIBUTOR","body":"Ah right right - Y is supposed to serve this purpose in scatter"}}
{"actor":{"display_login":"JackUrb"}}