home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

1 row where issue = 349026158 and user = 35968931 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

  • TomNicholas · 1 ✖

issue 1

  • Animated plots - a suggestion for implementation · 1 ✖

author_association 1

  • MEMBER 1
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
412969792 https://github.com/pydata/xarray/issues/2355#issuecomment-412969792 https://api.github.com/repos/pydata/xarray/issues/2355 MDEyOklzc3VlQ29tbWVudDQxMjk2OTc5Mg== TomNicholas 35968931 2018-08-14T18:25:06Z 2018-08-14T18:25:06Z MEMBER

we should return Animation objects

So if you made a 2D animated plot, you would return an instance of an animation object, from which you can also get the blocks for the imshow, the colorbar, the title etc.

That would be neater for single plots, but if you wanted to create an animation with two plots, you would need something like:

``` python turb2d = xr.load_dataset("turbulent_fluid_data.nc")

Create individual animations

imshow_animation, imshow_blocks = turb2d["density"].plot.imshow(animate_over='time') line_animation, line_blocks = turb2d["density"].mean(dim='z').plot.line(animate_over='time')

Create animation with both plots on same figure

anim = amp.Animate(imshow_blocks, line_blocks)

Save the combined gif

anim.save_gif("fluid_density.gif") plt.show()

`` However the initialisation of theAnimation` object is when the animation is actually created, so you would create 3 animations with that code! Is this actually what you mean or have I misunderstood?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Animated plots - a suggestion for implementation 349026158

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