home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

12 rows where author_association = "NONE" and user = 315810 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: issue_url, created_at (date), updated_at (date)

issue 2

  • Add a keyword to prevent divergent plot params 7
  • More control on cmap params 5

user 1

  • mwaskom · 12 ✖

author_association 1

  • NONE · 12 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
156863563 https://github.com/pydata/xarray/pull/655#issuecomment-156863563 https://api.github.com/repos/pydata/xarray/issues/655 MDEyOklzc3VlQ29tbWVudDE1Njg2MzU2Mw== mwaskom 315810 2015-11-15T22:18:13Z 2015-11-15T22:18:13Z NONE

Oh, sorry. LGTM.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  More control on cmap params 116349205
155884053 https://github.com/pydata/xarray/pull/655#issuecomment-155884053 https://api.github.com/repos/pydata/xarray/issues/655 MDEyOklzc3VlQ29tbWVudDE1NTg4NDA1Mw== mwaskom 315810 2015-11-11T19:21:01Z 2015-11-11T19:21:01Z NONE

The only safe times to assume a diverging colormap is when vmin = -vmax or when center is not None. If you want a diverging colormap for other situations, you need to specify cmap in the plot call.

That's fine for xray to have that opinion. Unfortunately, I think it's going to mean the behavior is going to diverge (heh) from what happens in seaborn.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  More control on cmap params 116349205
155820962 https://github.com/pydata/xarray/pull/655#issuecomment-155820962 https://api.github.com/repos/pydata/xarray/issues/655 MDEyOklzc3VlQ29tbWVudDE1NTgyMDk2Mg== mwaskom 315810 2015-11-11T15:42:15Z 2015-11-11T16:05:35Z NONE

That's the behavior I would want seaborn to have, but I guess @shoyer can weigh in too since it affects xray as well.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  More control on cmap params 116349205
155819176 https://github.com/pydata/xarray/pull/655#issuecomment-155819176 https://api.github.com/repos/pydata/xarray/issues/655 MDEyOklzc3VlQ29tbWVudDE1NTgxOTE3Ng== mwaskom 315810 2015-11-11T15:35:16Z 2015-11-11T15:35:16Z NONE

I think that if nothing else than preserving some backwards compatibility, you should take the route that shoyer suggested and assume that data spanning 0 with center not explicitly set and at most one of the limits specified should get a diverging palette.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  More control on cmap params 116349205
155814771 https://github.com/pydata/xarray/pull/655#issuecomment-155814771 https://api.github.com/repos/pydata/xarray/issues/655 MDEyOklzc3VlQ29tbWVudDE1NTgxNDc3MQ== mwaskom 315810 2015-11-11T15:23:12Z 2015-11-11T15:23:12Z NONE

It seems like this will use sequential logic if you set center to a value and only one of vmin or vmax? I would think in that case it looks like the user is asking for a diverging palette.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  More control on cmap params 116349205
154923759 https://github.com/pydata/xarray/issues/642#issuecomment-154923759 https://api.github.com/repos/pydata/xarray/issues/642 MDEyOklzc3VlQ29tbWVudDE1NDkyMzc1OQ== mwaskom 315810 2015-11-09T04:54:10Z 2015-11-09T04:54:10Z NONE

(Also it would be nice if colormaps had some metadata indicating whether they are sequential, diverging, or qualitative, but that's really a matplotlib issue).

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add a keyword to prevent divergent plot params  114576415
154921317 https://github.com/pydata/xarray/issues/642#issuecomment-154921317 https://api.github.com/repos/pydata/xarray/issues/642 MDEyOklzc3VlQ29tbWVudDE1NDkyMTMxNw== mwaskom 315810 2015-11-09T04:48:12Z 2015-11-09T04:48:12Z NONE

Seaborn currently doesn't have any notion of "divergent" colormaps without breakpoints (beyond explicitly providing one with the cmap argument, but that doesn't trigger the divergent colormap logic currently). To be honest, I'm not sure there's a use case for that -- the only place where I would want to default a breakpoint is around zero, which is straightforward enough to signal with center=0.

My point is, there should be a way to use vmin, vmax, and center together and have them all do what they are expected to.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add a keyword to prevent divergent plot params  114576415
154918199 https://github.com/pydata/xarray/issues/642#issuecomment-154918199 https://api.github.com/repos/pydata/xarray/issues/642 MDEyOklzc3VlQ29tbWVudDE1NDkxODE5OQ== mwaskom 315810 2015-11-09T04:33:15Z 2015-11-09T04:33:15Z NONE

For some reason I thought that was an implementation detail, although I'm having trouble pulling up a reference. Seems weird to test is False.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add a keyword to prevent divergent plot params  114576415
154918082 https://github.com/pydata/xarray/issues/642#issuecomment-154918082 https://api.github.com/repos/pydata/xarray/issues/642 MDEyOklzc3VlQ29tbWVudDE1NDkxODA4Mg== mwaskom 315810 2015-11-09T04:31:29Z 2015-11-09T04:31:29Z NONE

Also, the ideal behavior really when you are plotting a diverging colormap and have provided vmin and vmax is to change the colormap itself so the breakpoint is at the data center but the limits are as provided.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add a keyword to prevent divergent plot params  114576415
154915488 https://github.com/pydata/xarray/issues/642#issuecomment-154915488 https://api.github.com/repos/pydata/xarray/issues/642 MDEyOklzc3VlQ29tbWVudDE1NDkxNTQ4OA== mwaskom 315810 2015-11-09T04:18:52Z 2015-11-09T04:18:52Z NONE

We already distinguish between center=None and center=0 inside the logic for color limits, so I don't think this would be too much worse.

I just mean practically, how do you tell the difference between 0 and False in Python code?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add a keyword to prevent divergent plot params  114576415
153125033 https://github.com/pydata/xarray/issues/642#issuecomment-153125033 https://api.github.com/repos/pydata/xarray/issues/642 MDEyOklzc3VlQ29tbWVudDE1MzEyNTAzMw== mwaskom 315810 2015-11-02T19:00:11Z 2015-11-02T19:00:11Z NONE

You could also just change the logic so that if both vmin and vmax are provided, they get used, although I'm not sure what that says about the default colormap to use.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add a keyword to prevent divergent plot params  114576415
153124715 https://github.com/pydata/xarray/issues/642#issuecomment-153124715 https://api.github.com/repos/pydata/xarray/issues/642 MDEyOklzc3VlQ29tbWVudDE1MzEyNDcxNQ== mwaskom 315810 2015-11-02T18:58:50Z 2015-11-02T18:58:50Z NONE

center=False seems like it will collide with center=0 in surprising ways, but I agree that avoiding an additional kwarg would be ideal.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add a keyword to prevent divergent plot params  114576415

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE [issue_comments] (
   [html_url] TEXT,
   [issue_url] TEXT,
   [id] INTEGER PRIMARY KEY,
   [node_id] TEXT,
   [user] INTEGER REFERENCES [users]([id]),
   [created_at] TEXT,
   [updated_at] TEXT,
   [author_association] TEXT,
   [body] TEXT,
   [reactions] TEXT,
   [performed_via_github_app] TEXT,
   [issue] INTEGER REFERENCES [issues]([id])
);
CREATE INDEX [idx_issue_comments_issue]
    ON [issue_comments] ([issue]);
CREATE INDEX [idx_issue_comments_user]
    ON [issue_comments] ([user]);
Powered by Datasette · Queries took 15.997ms · About: xarray-datasette