home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

25 rows where author_association = "MEMBER" and issue = 101719623 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 4

  • rabernat 11
  • shoyer 7
  • jhamman 5
  • clarkfitzg 2

issue 1

  • Fix contour color · 25 ✖

author_association 1

  • MEMBER · 25 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
136810234 https://github.com/pydata/xarray/pull/538#issuecomment-136810234 https://api.github.com/repos/pydata/xarray/issues/538 MDEyOklzc3VlQ29tbWVudDEzNjgxMDIzNA== jhamman 2443309 2015-09-01T17:48:12Z 2015-09-01T17:48:12Z MEMBER

Thanks @rabernat .

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fix contour color 101719623
136801819 https://github.com/pydata/xarray/pull/538#issuecomment-136801819 https://api.github.com/repos/pydata/xarray/issues/538 MDEyOklzc3VlQ29tbWVudDEzNjgwMTgxOQ== shoyer 1217238 2015-09-01T17:20:52Z 2015-09-01T17:20:52Z MEMBER

OK, this seems like a clear improvement so I'm going to merge. Thanks again for all your work here!

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fix contour color 101719623
136552408 https://github.com/pydata/xarray/pull/538#issuecomment-136552408 https://api.github.com/repos/pydata/xarray/issues/538 MDEyOklzc3VlQ29tbWVudDEzNjU1MjQwOA== rabernat 1197350 2015-09-01T02:10:51Z 2015-09-01T02:10:51Z MEMBER

@jhamman One nice thing about this current PR is that it does allow people without seaborn to still use a custom list of colors. If we don't want to make seaborn a dependency, then surely that is a good thing. The only thing seaborn is now needed for is its special named palettes.

As for the named palettes, I don't think a new keyword is needed. cmap does what one would expect.

This has been a good learning experience for me. (Had never touched seaborn before.) But I probably won't work on this PR any more. Bottom line, it does fix the original issue without breaking anything. It also improves the testing of colors.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fix contour color 101719623
136521381 https://github.com/pydata/xarray/pull/538#issuecomment-136521381 https://api.github.com/repos/pydata/xarray/issues/538 MDEyOklzc3VlQ29tbWVudDEzNjUyMTM4MQ== jhamman 2443309 2015-08-31T22:52:49Z 2015-08-31T22:52:49Z MEMBER

@rabernat and @shoyer -

Sorry I've been mostly absent in this conversation recently. I'm currently buried under a mound of C and Fortran code.

I included the optional seaborn call in the discrete colormap/colorbar PR to expose a few nice features in the seaborn color_palette api. Namely, I wanted access to all the seaborn named color palettes and to be able to pass a list of custom colors.

I would be okay with adding the palette argument but it seems a bit excessive since palette, cmap, and colors are all basically orthogonal. We don't have to stick to the matplotlib or seaborn api. I understand the hesitation to overload any one of these parameters.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fix contour color 101719623
136519747 https://github.com/pydata/xarray/pull/538#issuecomment-136519747 https://api.github.com/repos/pydata/xarray/issues/538 MDEyOklzc3VlQ29tbWVudDEzNjUxOTc0Nw== shoyer 1217238 2015-08-31T22:40:55Z 2015-08-31T22:40:55Z MEMBER

@jhamman is the original designer of this API so perhaps he can clarify :).

One possibly cleaner alternative is to have a separate palette argument for specifying Seaborn color palettes, rather than reusing cmap or trying to put it in colors. That would eliminate some ambiguity.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fix contour color 101719623
136251570 https://github.com/pydata/xarray/pull/538#issuecomment-136251570 https://api.github.com/repos/pydata/xarray/issues/538 MDEyOklzc3VlQ29tbWVudDEzNjI1MTU3MA== rabernat 1197350 2015-08-31T04:53:32Z 2015-08-31T04:53:32Z MEMBER

@shoyer There is still some redundancy between the colors and cmap keywords. I know what I would use these for, but I am still unsure how the original designer of the plotting api imagined these would work. My original problem was simply that I couldn't use colors the way I would in matplotplot.

I am also a little unsure about how seaborn fits into the plotting module. It is not a dependency, but certain parts of plotting are built around it. This leads to the need for lots of special cases and some ugly code.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fix contour color 101719623
136250265 https://github.com/pydata/xarray/pull/538#issuecomment-136250265 https://api.github.com/repos/pydata/xarray/issues/538 MDEyOklzc3VlQ29tbWVudDEzNjI1MDI2NQ== shoyer 1217238 2015-08-31T04:38:36Z 2015-08-31T04:38:36Z MEMBER

@rabernat indeed, your willingness to dive in here is highly appreciated! I think this is pretty close -- are there aspects that you're still unsure about?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fix contour color 101719623
136249378 https://github.com/pydata/xarray/pull/538#issuecomment-136249378 https://api.github.com/repos/pydata/xarray/issues/538 MDEyOklzc3VlQ29tbWVudDEzNjI0OTM3OA== rabernat 1197350 2015-08-31T04:31:04Z 2015-08-31T04:31:04Z MEMBER

This is turning into a real rabbit hole...

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fix contour color 101719623
136222754 https://github.com/pydata/xarray/pull/538#issuecomment-136222754 https://api.github.com/repos/pydata/xarray/issues/538 MDEyOklzc3VlQ29tbWVudDEzNjIyMjc1NA== shoyer 1217238 2015-08-31T00:34:04Z 2015-08-31T00:34:04Z MEMBER

I think this will be the first PR merged for v0.6.1. Could you add a brief note to the what's new documentation under a section for "API changes"? You'll need to create a new section for v0.6.1.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fix contour color 101719623
136219777 https://github.com/pydata/xarray/pull/538#issuecomment-136219777 https://api.github.com/repos/pydata/xarray/issues/538 MDEyOklzc3VlQ29tbWVudDEzNjIxOTc3Nw== rabernat 1197350 2015-08-31T00:09:32Z 2015-08-31T00:09:32Z MEMBER

I think this latest commit solves everything.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fix contour color 101719623
135587730 https://github.com/pydata/xarray/pull/538#issuecomment-135587730 https://api.github.com/repos/pydata/xarray/issues/538 MDEyOklzc3VlQ29tbWVudDEzNTU4NzczMA== clarkfitzg 5356122 2015-08-27T23:59:33Z 2015-08-27T23:59:33Z MEMBER

@rabernat We were all Git noobs at some point- don't worry about it!

Seaborn should not be a dependency.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fix contour color 101719623
135514411 https://github.com/pydata/xarray/pull/538#issuecomment-135514411 https://api.github.com/repos/pydata/xarray/issues/538 MDEyOklzc3VlQ29tbWVudDEzNTUxNDQxMQ== jhamman 2443309 2015-08-27T18:26:16Z 2015-08-27T18:26:16Z MEMBER

You are correct. We should create a colormap if seaborn is not installed. The relevant line is here: https://github.com/rabernat/xray/blob/fix_contour_color/xray/plot/plot.py#L300

where we could add something like this sudo code:

python if isinstance(cmap, list-like-thing): cmap = _cmap_from_list_of_colors(cmap)

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fix contour color 101719623
135506596 https://github.com/pydata/xarray/pull/538#issuecomment-135506596 https://api.github.com/repos/pydata/xarray/issues/538 MDEyOklzc3VlQ29tbWVudDEzNTUwNjU5Ng== rabernat 1197350 2015-08-27T17:54:58Z 2015-08-27T17:55:33Z MEMBER

@jhamman is that question for me? I would say obviously not.

However, I think this dependency was already present even before this PR. There just wasn't a test that exposed it. If you passed a list of colors to cmap, I'm pretty sure you would get an error if seaborn was not installed. (Please correct me if I'm wrong.)

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fix contour color 101719623
135196387 https://github.com/pydata/xarray/pull/538#issuecomment-135196387 https://api.github.com/repos/pydata/xarray/issues/538 MDEyOklzc3VlQ29tbWVudDEzNTE5NjM4Nw== jhamman 2443309 2015-08-26T22:31:47Z 2015-08-26T22:31:47Z MEMBER

Do we want to make seaborn a mandatory dependency for plotting?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fix contour color 101719623
135152416 https://github.com/pydata/xarray/pull/538#issuecomment-135152416 https://api.github.com/repos/pydata/xarray/issues/538 MDEyOklzc3VlQ29tbWVudDEzNTE1MjQxNg== rabernat 1197350 2015-08-26T19:53:19Z 2015-08-26T19:53:19Z MEMBER

The testing errors I think are due to seaborn not being present.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fix contour color 101719623
135148087 https://github.com/pydata/xarray/pull/538#issuecomment-135148087 https://api.github.com/repos/pydata/xarray/issues/538 MDEyOklzc3VlQ29tbWVudDEzNTE0ODA4Nw== rabernat 1197350 2015-08-26T19:35:32Z 2015-08-26T19:35:32Z MEMBER

Ok, I think I fixed it. Just had to do a git push --force. Sorry for being such a git n00b. But honestly sometimes it is so confusing.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fix contour color 101719623
135144970 https://github.com/pydata/xarray/pull/538#issuecomment-135144970 https://api.github.com/repos/pydata/xarray/issues/538 MDEyOklzc3VlQ29tbWVudDEzNTE0NDk3MA== rabernat 1197350 2015-08-26T19:21:00Z 2015-08-26T19:21:00Z MEMBER

Sorry...I'm an idiot, and I always somehow manage to screw up these pull requests.

I did what you / that thread suggested

git fetch upstream master git rebase -i upstream/master

When I try to push my PR again with git push origin fix_contour_color I get these errors

$ git push origin fix_contour_color To git@github.com:rabernat/xray.git ! [rejected] fix_contour_color -> fix_contour_color (non-fast-forward) error: failed to push some refs to 'git@github.com:rabernat/xray.git' hint: Updates were rejected because the tip of your current branch is behind hint: its remote counterpart. Merge the remote changes (e.g. 'git pull') hint: before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fix contour color 101719623
135140425 https://github.com/pydata/xarray/pull/538#issuecomment-135140425 https://api.github.com/repos/pydata/xarray/issues/538 MDEyOklzc3VlQ29tbWVudDEzNTE0MDQyNQ== shoyer 1217238 2015-08-26T19:01:31Z 2015-08-26T19:01:31Z MEMBER

Looks like you have commits from a few other changes (e.g., the 0.6 release) in this PR. Could you do a rebase -i to fix that? e.g., see the discussion here: https://github.com/pydata/pandas/pull/9826#issuecomment-132637777

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fix contour color 101719623
135050353 https://github.com/pydata/xarray/pull/538#issuecomment-135050353 https://api.github.com/repos/pydata/xarray/issues/538 MDEyOklzc3VlQ29tbWVudDEzNTA1MDM1Mw== rabernat 1197350 2015-08-26T14:59:29Z 2015-08-26T14:59:29Z MEMBER

This update mostly implements @shoyer's plan. However, it currently only works if seaborn is installed. This is because it completely bypasses matplotlibs colors keyword and directly sets the colors in the internal functions (e.g. _color_palette). It relies on seaborn's color_palette function to turn the color list into a palette. I can't see an obvious way around this. Maybe someone has a suggestion.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fix contour color 101719623
134429396 https://github.com/pydata/xarray/pull/538#issuecomment-134429396 https://api.github.com/repos/pydata/xarray/issues/538 MDEyOklzc3VlQ29tbWVudDEzNDQyOTM5Ng== rabernat 1197350 2015-08-25T00:54:33Z 2015-08-25T00:54:33Z MEMBER

I can probably get to this within a few days. I would enjoy learning more about the plotting code.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fix contour color 101719623
134268144 https://github.com/pydata/xarray/pull/538#issuecomment-134268144 https://api.github.com/repos/pydata/xarray/issues/538 MDEyOklzc3VlQ29tbWVudDEzNDI2ODE0NA== shoyer 1217238 2015-08-24T16:07:15Z 2015-08-24T16:38:25Z MEMBER

We can do this as an interim fix, but I would prefer something more comprehensive: - add colors to the function/method signature for 2d plots - require colors when specifying a list of colors manually - colors is mutually exclusive with cmap - colors is only valid when levels is supplied or the plot is of type contour or contourf - deprecate supplying a list of colors with cmap (update the docs, issue a warning when this is done, eventually remove it entirely)

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fix contour color 101719623
134281471 https://github.com/pydata/xarray/pull/538#issuecomment-134281471 https://api.github.com/repos/pydata/xarray/issues/538 MDEyOklzc3VlQ29tbWVudDEzNDI4MTQ3MQ== clarkfitzg 5356122 2015-08-24T16:19:57Z 2015-08-24T16:19:57Z MEMBER

@shoyer has laid out a nice plan.

@rabernat do you feel like taking this on now? If not we can merge this and implement the rest later.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fix contour color 101719623
134257862 https://github.com/pydata/xarray/pull/538#issuecomment-134257862 https://api.github.com/repos/pydata/xarray/issues/538 MDEyOklzc3VlQ29tbWVudDEzNDI1Nzg2Mg== jhamman 2443309 2015-08-24T15:50:48Z 2015-08-24T15:50:48Z MEMBER

I have no problems with this. @clarkfitzg - any more thoughts?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fix contour color 101719623
134219965 https://github.com/pydata/xarray/pull/538#issuecomment-134219965 https://api.github.com/repos/pydata/xarray/issues/538 MDEyOklzc3VlQ29tbWVudDEzNDIxOTk2NQ== rabernat 1197350 2015-08-24T14:14:48Z 2015-08-24T14:14:48Z MEMBER

So what is the conclusion about this PR? I am happy to keep tweaking it if we can converge on the desired behavior...

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fix contour color 101719623
132328908 https://github.com/pydata/xarray/pull/538#issuecomment-132328908 https://api.github.com/repos/pydata/xarray/issues/538 MDEyOklzc3VlQ29tbWVudDEzMjMyODkwOA== shoyer 1217238 2015-08-18T19:40:34Z 2015-08-18T19:40:34Z MEMBER

It would be very useful to have a test here to verify that the colors argument does the right thing.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fix contour color 101719623

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 487.196ms · About: xarray-datasette