home / github / issues

Menu
  • GraphQL API
  • Search all tables

issues: 619327957

This data as json

id node_id number title user state locked assignee milestone comments created_at updated_at closed_at author_association active_lock_reason draft pull_request body reactions performed_via_github_app state_reason repo type
619327957 MDExOlB1bGxSZXF1ZXN0NDE4ODc5MTU3 4067 make text wrap width an argument in label_from_attrs 20617032 closed 0     4 2020-05-15T23:44:09Z 2023-03-26T20:06:29Z 2023-03-26T20:06:28Z NONE   0 pydata/xarray/pulls/4067

label_from_attrs used textwrap.wrap with a default wrap width of 30, this commit changes label_from_attrs to instead take an argument wrap_width that specifies the wrap width.

context: I find the label_from_attrs function useful for plots that I make using pyplot, but needed to change the text wrap with.

I am new to contributing to projects like this so bear with me. I only had the mypy and flake8 linters and figured that was good enough for a minor change like this. And I didn't see label_from_attrs in the api document so just added a line to whats-new.rst

  • [x] Passes mypy . && flake8`
  • [x] Fully documented, including whats-new.rst
{
    "url": "https://api.github.com/repos/pydata/xarray/issues/4067/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    13221727 pull

Links from other tables

  • 0 rows from issues_id in issues_labels
  • 4 rows from issue in issue_comments
Powered by Datasette · Queries took 0.537ms · About: xarray-datasette