[BUG]: Subplot LaTeX titles misaligned
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- python
調査の方向性
提供された Python の再現コードを plotly 6.8.0 で実行し、make_subplots からサブプロットタイトルの配置パスをたどってください。インタラクティブなレンダリングを fig.write_image(img.png) と比較します。LaTeX タイトルが垂直方向に整列して中央揃えになっており、その要件が含まれている場合はデフォルトのタイトル位置が少し高くなっていれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Description
make_subplots produces plots with misaligned LaTeX titles:
Nor do they seem to be properly centered.
Saving the image with fig.write_image(img.png) does not render it differently.
If you remove the letter "p" from the title on the right or add one on the left, that seems to "solve" the vertical alignment problem.
Steps to reproduce
from plotly.subplots import make_subplots
fig = make_subplots(rows=1, cols=2,
subplot_titles=(r'$\Large\text{Investment Rate}$',r"$\Large\text{Experts' Capital Share}$"))
fig.add_scatter(x=[], y=[], row=1, col=1)
fig.add_scatter(x=[], y=[], row=1, col=2)
fig.update_layout(#template="plotly_white+presentation",
height=600, width=1200)
fig
Version: 6.8.0
I also think the default positioning of the title should be a tiny bit higher.
- 主要言語
- Python
- スター
- 18.8k
- フォーク
- 2.8k
- 平均マージ
- 13時間 41分
- マージ済み PR(30日)
- 21
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
plotly/plotly.py のほかの issue
-
P3 size: 1 task
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
P3 size: 1 task
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
bug P1
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
-
feature P3
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
-
feature P3
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
plotly/plotly.py の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
learningequality/ricecooker#747 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
BSData/horus-heresy-3rd-edition#3171 ·
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
run-llama/llama_index#23199 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
KhronosGroup/glTF-Blender-IO#2769 ·