{"action":"created","issue":{"url":"https://api.github.com/repos/ioam/holoviews/issues/166","labels_url":"https://api.github.com/repos/ioam/holoviews/issues/166/labels{/name}","comments_url":"https://api.github.com/repos/ioam/holoviews/issues/166/comments","events_url":"https://api.github.com/repos/ioam/holoviews/issues/166/events","html_url":"https://github.com/ioam/holoviews/issues/166","id":89580960,"number":166,"title":"Improving Chart and Path constructors","user":{"login":"philippjfr","id":1550771,"avatar_url":"https://avatars.githubusercontent.com/u/1550771?v=3","gravatar_id":"","url":"https://api.github.com/users/philippjfr","html_url":"https://github.com/philippjfr","followers_url":"https://api.github.com/users/philippjfr/followers","following_url":"https://api.github.com/users/philippjfr/following{/other_user}","gists_url":"https://api.github.com/users/philippjfr/gists{/gist_id}","starred_url":"https://api.github.com/users/philippjfr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philippjfr/subscriptions","organizations_url":"https://api.github.com/users/philippjfr/orgs","repos_url":"https://api.github.com/users/philippjfr/repos","events_url":"https://api.github.com/users/philippjfr/events{/privacy}","received_events_url":"https://api.github.com/users/philippjfr/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/ioam/holoviews/milestones/6","html_url":"https://github.com/ioam/holoviews/milestones/1.3.0","labels_url":"https://api.github.com/repos/ioam/holoviews/milestones/6/labels","id":1151092,"number":6,"title":"1.3.0","description":"Minor bug-fix release following 1.2.0.","creator":{"login":"jlstevens","id":890576,"avatar_url":"https://avatars.githubusercontent.com/u/890576?v=3","gravatar_id":"","url":"https://api.github.com/users/jlstevens","html_url":"https://github.com/jlstevens","followers_url":"https://api.github.com/users/jlstevens/followers","following_url":"https://api.github.com/users/jlstevens/following{/other_user}","gists_url":"https://api.github.com/users/jlstevens/gists{/gist_id}","starred_url":"https://api.github.com/users/jlstevens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlstevens/subscriptions","organizations_url":"https://api.github.com/users/jlstevens/orgs","repos_url":"https://api.github.com/users/jlstevens/repos","events_url":"https://api.github.com/users/jlstevens/events{/privacy}","received_events_url":"https://api.github.com/users/jlstevens/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":16,"state":"open","created_at":"2015-06-05T12:53:31Z","updated_at":"2015-06-23T11:19:29Z","due_on":"2015-06-22T23:00:00Z","closed_at":null},"comments":5,"created_at":"2015-06-19T14:42:50Z","updated_at":"2015-06-23T11:19:29Z","closed_at":"2015-06-23T11:19:29Z","body":"Currently we have a few different main types of Elements each accepting data in a specific format. We should have a general discussion about the signatures we want to support for each Element type for consistency and ease of use, while keeping the behavior well defined. I'll outline what is supported for each type of Element and the extension that we're proposing. All this is distinct from the conversion interfaces which allow casting between Element types.\r\n\r\n## Chart Elements\r\n\r\nData structure is a ``NxD`` array where N is the number of samples and D the number of dimensions.\r\n\r\nConstructors:\r\n\r\n1) ``NxD`` array supplied directly\r\n2) Iterator of tuples of the form [(x1, y1, z1, ...), (x2, y2, z2...), ...], usually constructed by zipping x/y/z coordinates.\r\n3) Iterator of length N, e.g. np.random.rand(10) assumed to be y-values, and x-values are auto-generated as indices.\r\n\r\nProposed constructor:\r\n\r\n4) Tuple of iterators, of the form (xs, ys, zs....). Internally the xs, ys, zs etc. are vstacked to become a ``NxD`` array.\r\n\r\n## Path Elements\r\n\r\nIncludes: Path, Contours, Polygons\r\n\r\nThe data is stored as a list of Nx2 arrays.\r\n\r\n1) List of Nx2 arrays.\r\n2) List of lists of tuples, i.e. same as the Chart 2) but nested in a list.\r\n\r\n Proposed constructor:\r\n\r\n3) Same as proposed new Chart constructor but nested in a list, i.e. [(xs1, ys1), (xs2, ys2)].\r\n\r\nI think anything more than this will start getting to confusing but I think supplying xs and ys as separate iterators is a very useful format that should be supported."},"comment":{"url":"https://api.github.com/repos/ioam/holoviews/issues/comments/114447799","html_url":"https://github.com/ioam/holoviews/issues/166#issuecomment-114447799","issue_url":"https://api.github.com/repos/ioam/holoviews/issues/166","id":114447799,"user":{"login":"philippjfr","id":1550771,"avatar_url":"https://avatars.githubusercontent.com/u/1550771?v=3","gravatar_id":"","url":"https://api.github.com/users/philippjfr","html_url":"https://github.com/philippjfr","followers_url":"https://api.github.com/users/philippjfr/followers","following_url":"https://api.github.com/users/philippjfr/following{/other_user}","gists_url":"https://api.github.com/users/philippjfr/gists{/gist_id}","starred_url":"https://api.github.com/users/philippjfr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philippjfr/subscriptions","organizations_url":"https://api.github.com/users/philippjfr/orgs","repos_url":"https://api.github.com/users/philippjfr/repos","events_url":"https://api.github.com/users/philippjfr/events{/privacy}","received_events_url":"https://api.github.com/users/philippjfr/received_events","type":"User","site_admin":false},"created_at":"2015-06-23T11:19:29Z","updated_at":"2015-06-23T11:19:29Z","body":"I've added the new constructors along with documentation and unit tests in https://github.com/ioam/holoviews/commit/922b5734410a11a52d008b4bb2bde4929b5ce243 and https://github.com/ioam/holoviews/commit/6692028ab31cfc862aee4e19673dc0d82372df79. I'll close the issue now."}}