Repository navigation
Phase 5e: サブプロットのパネル(G9) - #10
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… labels Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e, G9) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… 5e) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The loaded Noto Sans JP (and Arimo/Tinos) have no bold face, so fontweight="bold" alone left the browser figure unchanged and differed from a local run with Hiragino. Bold labels now use DejaVu Sans Bold (DejaVu Serif Bold with Tinos), the same everywhere. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Legends always sit inside their Axes, so excluding them from the tight_layout computation leaves every position unchanged (identical PNG) while skipping one 'best'-location search per legend. A 2x2 colour-coded scatter (10,000 rows x 5 series) drops from 1,046 ms to 935 ms in the browser. 1x1 code is unchanged (golden tests). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
要件定義書9章の Phase 5 のうち、5e(G9 サブプロット)を実装しました。これで Phase 5 の G1〜G10 がそろいます。設計は
docs/PHASE5_DESIGN.md§8(2026-11-13 にオーナーが承認)です。変更内容
サブプロット(G9)
fig.suptitle)、パネルのタイトルは各パネルの上に出す。「軸・目盛」区分の「パネルごとのタイトル・軸ラベル」で、パネルごとに上書きできる(パネルの欄 → 全体の欄 → 自動 の順)。fig, axs = plt.subplots(行, 列, squeeze=False)の後、パネルごとの節でax = axs[i, j]と置き直し、その中に今の「系列・注釈・軸・グリッドと凡例」をそのパネルの分だけ書く。パネルのタイトルなどはliteral()を通してコードに入る。実装の段階で決めたこと(設計書 §8 と AGENTS.md §13.4 に記録)
fontweight="bold"だけではブラウザの図が変わらず、手元の Python ではヒラギノなどの太字になって画面と食い違うため。tight_layoutの計算から外す(パネルが2つ以上のときだけ): 2×2 の色分け散布図が 1,046 ms で 1 秒を超えたため。凡例は常に軸の内側にあるので図は1バイトも変わらず、凡例の位置「best」の探索が1回減る(935 ms になった)。そのほか
plot.layout、plot.panels、series[].panel、annotations[].panel)。1行×1列(既定)で生成するコードは、Phase 4 と1文字も変わらない(ゴールデンテスト)。1×1 のときは、行数・列数以外の新しい項目を検証せず使わない。figure_summaryにpanel/axison/titleleft/suptitleを足し、colorbarはカラーバーを付けた Axes の項目に出すようにした(1×1 の結果は変わらない)。pyscript.tomlの変更なし)。新しい JS モジュールはjs/ui/panels.js。テスト
tests/unit/test_panels.pyなど)。tests/e2e/test_panels.py、一致確認に 2×2 の線・X を共有した日時の線・色分け散布図のパネルごとのカラーバー・箱ひげ図の 1×2 を追加)。計測値(
docs/PERFORMANCE.md「Phase 5e 後」)オーナーが決めたこと(2026-11-13。AGENTS.md §13.4、要件定義書 §2.5 に記録)
🤖 Generated with Claude Code