issues: 741200389
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
741200389 | MDU6SXNzdWU3NDEyMDAzODk= | 4575 | FacetGrid.set_title should allow more extensive formatting | 31640292 | open | 0 | 2 | 2020-11-12T01:41:32Z | 2021-07-04T01:26:35Z | CONTRIBUTOR | Is your feature request related to a problem? Please describe. I've been using facetgrids fairly extensively with data that is a numpy.float32. Using set_title does not lead to properly formatted results, as this dtype does not match isinstance(x, (float, np.float_)), so it is cast directly to a string leading to labels that are often incredibly unreadable. Describe the solution you'd like Do not use the format_item in the facetgrid.set_titles function for non-datetime values, but instead allow arguments of the form "{value:0.4f}" etc Describe alternatives you've considered The alternative is that format_item should be loser on it's isinstance checks, in particular allowing other precisions of float to be formatted. Ideally, both of these could be implemented in tandem |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/4575/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
13221727 | issue |