matplotlib / matplotlib/pytest-mpl

Large diffs from font rendering

オープン
#81 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
Python
スター
272
フォーク
53
PR マージ指標
30日以内にマージされた PR はありません

説明

Hello, thanks for the module.

I know that you are aware of the issues but I'm trying to understand what I can do about them. In particular I see a large difference between two images that are similar, with some apparent minor difference in the font causing the failure.

I've inspected the generated images and they are the same (physical) size, dpi, etc.

I see some discussion (e.g. https://github.com/astropy/astropy/pull/7150) about maybe just choosing the font appropriately to minimize this. Is that the current recommended solution?

I also gave the perceptual hash (#21) a go and it does generate identical hashes for the two images, which is nice. However I haven't yet had time to look into that more to really understand what it is doing so don't necessarily want to rely on it.

Baseline:
![baseline-test_plot_dither](https://user-images.githubusercontent.com/70736/48974219-1a394b80-f0a6-11e8-84c0-a424d6fdd9ef.png)

Generated. This is missing the title as `remove_text=True` is enabled (#68 would be relevant here):
![test_plot_dither](https://user-images.githubusercontent.com/70736/48974222-32a96600-f0a6-11e8-9dbb-79b85428f764.png)

Diff:
![test_plot_dither-failed-diff](https://user-images.githubusercontent.com/70736/48974224-35a45680-f0a6-11e8-9473-b98815d87ca9.png)

This is coming from https://github.com/panoptes/POCS/pull/735

(Note that even getting these images out of travis was a huge pain as travis doesn't allow artifacts to be uploaded on pull-requests...but that's a different issue).

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、POCS pull request 735 の画像比較を再現し、astropy pull request 7150 で参照されている議論を確認してください。フォントレンダリングの違いを issue 21 の perceptual-hash アプローチと比較してください。具体的で文書化された推奨事項または明確に定義された fix が存在すれば、issue は解決です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
matplotlib, python
領域
testing-qa
issue の種類
バグ
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。