home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

7 rows where issue = 807939559 and user = 14371165 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 1

  • Illviljan · 7 ✖

issue 1

  • Add dataarray scatter with 3d support · 7 ✖

author_association 1

  • MEMBER 7
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
871121868 https://github.com/pydata/xarray/pull/4909#issuecomment-871121868 https://api.github.com/repos/pydata/xarray/issues/4909 MDEyOklzc3VlQ29tbWVudDg3MTEyMTg2OA== Illviljan 14371165 2021-06-30T06:05:54Z 2021-06-30T06:05:54Z MEMBER

It would be nice to factor out some of the helper functions into plot.utils or elsewhere, and especially to use the @_plot2d decorator, but there is not need to squeeze that into this PR.

Thanks, @TomNicholas. My original plan and attempts was to use _plot2d. But because the return type originally was so different to the other plot functions (list of pathcollections vs pathcollections) it was impossible to use it without pretty much if-casing the entire _plot2d. I also feel _plot2d makes it pretty hard to read and understand the code.

I think it might be doable now that the function only returns pathcollection. I'll take a stab at that again in a different PR.

If you're worried about this not being fully robust until other plotting methods are condensed into one code path then I would just suggest not making it callable as a plot method yet (or renaming to _scatter as you suggested). But I also think it's fine to release as is.

Ok, I'll rename it to a private name. But I think it's good that it's still callable, so that others can easily try it out without any promises that the API will stay the same. I was also considering changing/removing some variable names related to legend compared to the dataset version, so it's good to let that it be private until that's been figured out.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add dataarray scatter with 3d support 807939559
850155305 https://github.com/pydata/xarray/pull/4909#issuecomment-850155305 https://api.github.com/repos/pydata/xarray/issues/4909 MDEyOklzc3VlQ29tbWVudDg1MDE1NTMwNQ== Illviljan 14371165 2021-05-28T05:53:32Z 2021-05-28T05:53:32Z MEMBER

If it seems safer we could make this non-public, da.plot._scatter? This is not being tested as properly as ds.plot.scatter at the moment so I might've missed some edge cases, but once we use the same code path for both of them this should be more reliable.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add dataarray scatter with 3d support 807939559
822162676 https://github.com/pydata/xarray/pull/4909#issuecomment-822162676 https://api.github.com/repos/pydata/xarray/issues/4909 MDEyOklzc3VlQ29tbWVudDgyMjE2MjY3Ng== Illviljan 14371165 2021-04-19T04:47:45Z 2021-04-19T04:47:45Z MEMBER

I took a quick look and left some minor comments. I do wonder whether it's easier to call DataArray.to_dataset().plot.scatter and port the wonderful legend code to dataset_plot.py

My idea was to slowly move all the code to plot.py and then use the same wrapper function as in #4820, this is what I'm already doing in my local version at least.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add dataarray scatter with 3d support 807939559
809063782 https://github.com/pydata/xarray/pull/4909#issuecomment-809063782 https://api.github.com/repos/pydata/xarray/issues/4909 MDEyOklzc3VlQ29tbWVudDgwOTA2Mzc4Mg== Illviljan 14371165 2021-03-29T04:53:43Z 2021-03-29T04:53:43Z MEMBER

I think this is ready for some different eyes. Feel free to try it out @dcherian if you have the time.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add dataarray scatter with 3d support 807939559
803651552 https://github.com/pydata/xarray/pull/4909#issuecomment-803651552 https://api.github.com/repos/pydata/xarray/issues/4909 MDEyOklzc3VlQ29tbWVudDgwMzY1MTU1Mg== Illviljan 14371165 2021-03-21T20:08:18Z 2021-03-26T19:32:14Z MEMBER

Gotten the facetgrids to work again, fortunately it didn't require that much changes. The 3d versions chooses the axes limits a little weirdly though.

ds.plot.scatter(x="A", y="B", col="x", hue="w", markersize="y", add_legend=False):

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add dataarray scatter with 3d support 807939559
804318060 https://github.com/pydata/xarray/pull/4909#issuecomment-804318060 https://api.github.com/repos/pydata/xarray/issues/4909 MDEyOklzc3VlQ29tbWVudDgwNDMxODA2MA== Illviljan 14371165 2021-03-22T19:04:07Z 2021-03-22T19:38:05Z MEMBER

Seems CI Additional / ubuntu-latest py37-min-all-deps (pull_request) doesn't install the 3d parts of matplotlib that's a bit unfortunate I think.

Edit: Seems this functionality got added in 3.2: mpl_toolkits.mplot3d is always registered by default now. It is no longer necessary to import mplot3d to create 3d axes with https://matplotlib.org/3.2.0/api/api_changes.html

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add dataarray scatter with 3d support 807939559
782861213 https://github.com/pydata/xarray/pull/4909#issuecomment-782861213 https://api.github.com/repos/pydata/xarray/issues/4909 MDEyOklzc3VlQ29tbWVudDc4Mjg2MTIxMw== Illviljan 14371165 2021-02-21T13:49:28Z 2021-02-21T13:49:28Z MEMBER

figlegenddoesn't work that great within subplots though right? When I tried subplots the legends were just added on top of each other. I think ax.legend is a better, but it seems rather difficult to fit it outside. I've tried a few variants with bbox_to_anchor but it quickly gets non robust when deviating from the defaults.

I've been trying to merge the legends together though . So then the legend will attempt to find the best places automatically so that helps a little bit:

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add dataarray scatter with 3d support 807939559

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