pydata / pydata/xarray

ENH: Don't infer pcolormesh interval breaks for unevenly spaced coordiantes

Open
#792 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

topic-plotting
Dominant language
Python
Stars
4.2k
Forks
1.4k
Avg merge
2d 15h
Merged PRs (30d)
14

Description

Based on discussion in #781 and #782, it seems like a bad idea to infer (guess) the spacing of coordinates when they are unevenly spaced. As @ocefpaf points out:

guessing should be an active user choice, not the automatic behavior.

So the options moving forward are to

  1. never infer the interval breaks and be okay with pcolormesh and imshow producing dissimilar plots, or
  2. only infer the interval breaks when the coordinates are evenly spaced.

cc @clarkfitzg

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the discussions in #781 and #782, then inspect the existing pcolormesh and imshow coordinate handling. The issue is complete only after the project decides whether interval breaks should be inferred for evenly spaced coordinates and the resulting behavior is made consistent.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-visualization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.