[ENH]: Consider bilinear interpolation for pcolormesh
Les mainteneurs répondent en général sous 1 jour
@Adithya6721 y travaille déjà.
Depuis le 2/11/2026.
Évaluation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Accessibilité débutants
- 38/100
- Type d'issue
- Fonctionnalité
- Clarté
- Plutôt claire
- Activité
- Active
- Stack technique
- matplotlib, python
- Domaine
- data-visualization
Piste de recherche
Start by reading the pcolormesh() shading implementation and its tests, then trace how Gouraud shading interpolates values across each quadrilateral. The issue proposes adding bilinear interpolation but does not specify the API or expected behavior beyond that; clarify those design choices before implementation. Done means a bilinear shading option with tests covering the quadrilateral interpolation behavior.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Problem
Currently the only "interpolating" shading of pcolormesh() is "gouraud". This is somewhat special: It splits the quadrilateral into two triangles and uses Gouraud shading for each. If the z values of the corners are not in a plane, this produces characteristic patterns and the result will depend on how the two triangles are chosen; e.g.
import matplotlib.pyplot as plt
import numpy as np
x = np.arange(6)
y = np.arange(6)
X, Y = np.meshgrid(x, y)
Z = X + 2*Y
Z[2,3] = 15
plt.pcolormesh(X, Y, Z, shading="gouraud", edgecolors='red', linewidth=2)
plt.show()
Proposed solution
It would be nice to additionally have a simple bilinear interpolation.
- Langage dominant
- Python
- Étoiles
- 23.5k
- Forks
- 8.6k
- Merge moyen
- 1 j 19 h
- PR mergées (30 j)
- 64
Préparer son environnement
Lance le conteneur de développement du projet dans votre navigateur, avec votre propre compte GitHub.
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de matplotlib/matplotlib
-
[Bug]: Saving a NonUniformImage with bbox_inches="tight" raises TypeError when extent is omittedOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
matplotlib/matplotlib#32707 ·
Les mainteneurs répondent en général sous 1 jour
-
[Bug]: withTickedStroke raises ValueError when the line contains NaNPeut-être pris @RjyavardhanSingh l’a pris il y a 3 jours. Ouvertefirst-contribution topic: path handling
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
matplotlib/matplotlib#32689 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
[Bug]: Constrained layout raises ZeroDivisionError when the first height/width ratio is zeroPeut-être pris @yqtian-se l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
matplotlib/matplotlib#32684 · 3 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
[Bug]: twin axes ignore the navigation opt-outsPeut-être pris @NaumanRafay l’a pris il y a 36 jours. Ouvertetopic: toolbar
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
matplotlib/matplotlib#32528 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
[Bug]: macOS font discovery raises KeyError('_items') for an incomplete system_profiler font recordOuvertefirst-contribution OS: Apple status: needs clarification topic: text/fonts
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
matplotlib/matplotlib#32328 · 4 commentaires ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de matplotlib/matplotlib
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
fossasia/eventyay-exhibition#465 · 3 commentaires · 1 réaction ·
Les mainteneurs répondent en général sous 3 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
Les mainteneurs répondent en général sous 1 jour
-
area/webapp comp/desktop P2 type/bug
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
NousResearch/hermes-agent#163341 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
cpp-best-practices/project_validator#609 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
smart-village-solutions/smart-speech-flow#765 ·
Les mainteneurs répondent en général sous 1 jour