home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 195520059

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions performed_via_github_app issue
https://github.com/pydata/xarray/issues/788#issuecomment-195520059 https://api.github.com/repos/pydata/xarray/issues/788 195520059 MDEyOklzc3VlQ29tbWVudDE5NTUyMDA1OQ== 10050469 2016-03-11T19:50:33Z 2016-03-11T19:50:33Z MEMBER

the question (I guess) is: is it legal in xarray to use a non-linked coordinate name as argument for a plot? For example @jamesp wants to plot the following DataArray:

python <xarray.DataArray 'temperature' (time: 3, x: 5)> ... Coordinates: * x (x) int64 1 2 3 4 5 * time (time) int64 1 2 3 r int64 2 rtime (time) float64 0.5 1.0 1.5

By doing:

python .plot(x='x', y='rtime');

instead of the more conventional:

python .plot(x='x', y='time');

The dimension is still time but the coordinates of the plot (for the axis) is rtime. It works if you don't change the order of the dims, but it does not work if you do (hence the transpose in my workaround).

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  139863868
Powered by Datasette · Queries took 0.601ms · About: xarray-datasette