Retina+jpeg option?
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- 説明が足りない
- 活発さ
- 静か
- 技術スタック
- jupyter, jupyter-notebook
調査の方向性
この issue にはソースファイルもテストも記載されていません。まず、inline backend が figure_format 設定と Retina 用のサイズ調整をどのように処理しているかを追跡し、次に JPEG の挙動をリンク先の Matplotlib issue および Stack Overflow の質問と比較してください。適切なサイズの JPEG ノートブック画像を生成する、明確に定義されテスト済みの方法が得られれば完了とします。
索引モデルが issue の本文から書いたものです。
説明
I often work with complex matplotlib figures with millions of points, which I've been displaying in my notebooks using the ipython magic %config InlineBackend.figure_format = 'retina'. Unfortunately, these inline images are quite large in terms of file size.
I'm looking for general suggestions on how to reduce the size of my ipynb files, which can grow into the 10s or even hundreds of MB in size and become a bit unwieldy.
One thought I had was to switch to generating jpegs, but while it looks like I can meaningfully reduce the file size by switching the backend to jpeg and increasing the dpi to 2x:
from matplotlib import rcParams
%config InlineBackend.figure_format = 'jpeg'
rcParams['figure.dpi'] = 200
From this repo, it looks like I can dial in jpeg compression values, which should help reduce file size. However, I can't figure out how to size the jpegs appropriately for a retina display (they're twice as large as they should be, and slightly blurry). Is there a way to display jpegs in jupyter notebooks at similar resolution and size to the defaults provided by 'retina' mode?
See also:
Matplotlib issue
Stackoverflow question
- 主要言語
- Jupyter Notebook
- スター
- 31
- フォーク
- 39
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ipython/matplotlib-inline のほかの issue
-
Support animations オープン
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
ipython/matplotlib-inline#61 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
ipython/matplotlib-inline#59 ·
-
Publish changelog オープン
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
ipython/matplotlib-inline#57 · リアクション 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
ipython/matplotlib-inline#54 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 48/100
ipython/matplotlib-inline#44 · コメント 1 件 ·
ipython/matplotlib-inline の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
scope: charts status: waiting for maintainer
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
chore P3 plotly-internal size: 3 task
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
Live-Charts/LiveCharts2#2394 ·
-
Urgent request: Due to vulnerabilities move to API version 12.6.1 (12.6.2 eventually) or 13.1.1 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
jbkunst/highcharter#849 ·