matplotlib / matplotlib/matplotlib

Gouraud shading with tripcolor renders incorrectly as SVG in Jupyter notebook

未關閉
#11,321 14 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

backend: svg
主要語言
Python
星號
23.2k
分支
8.5k
平均合併
1 天 6 小時
30 天內合併 PR
66

描述

Bug report

Bug summary

When the matplotlib backend is set to 'SVG' in a Jupyter Notebook, it seems that matplotlib does not render 'gouraud' shading correctly.

Code for reproduction

I've uploaded a minimal example of my problem here:
https://nbviewer.jupyter.org/github/CorbinFoucart/FEMexperiment/blob/master/app/mpl_bug.ipynb

Actual outcome

Note the 'gouraud' shading with SVG in the notebook. If I save the output to file and view the output, it is similarly not shaded, which indicates to me that this is not a Jupyter issue, nor a browser issue.

Matplotlib version

  • Operating system: OSX El Capitan 10.11.6
  • Matplotlib version: 2.2.2
  • Matplotlib backend (print(matplotlib.get_backend())): module://ipykernel.pylab.backend_inline
  • Python version: 3.6.4
  • Jupyter version:
ipykernel==4.8.2
jupyter==1.0.0
jupyter-client==5.2.3
jupyter-console==5.2.0
jupyter-core==4.4.0

I installed matplotlib in a virtual environment with pip.

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

首先,使用 SVG 後端執行連結的最小重現 mpl_bug.ipynb,並檢查 notebook 輸出和儲存的 SVG。追蹤使用 gouraud 陰影的 tripcolor 之 SVG 渲染路徑。當陰影在 notebook 和儲存的輸出中都能正確顯示時,即表示完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
jupyter-notebook, python
領域
data-visualization
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。