Support composed plots as pages in save_as_pdf_pages()

オープン 初心者向け
#1,164 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python

調査の方向性

plotnine/ggplot.py の PDF エクスポートヘルパーから始め、特にドキュメントに記載された入力と _save_filename() の呼び出しを確認してください。複合プロットがどのように表現されるかを調べ、自動ファイル名生成と明示的なファイル名を指定する経路を比較してください。完了条件は、ドキュメントに記載された API が ggplot と複合プロットを受け付け、自動命名が両方で機能し、混在した 2 ページの PDF を対象とするテストがあることです。

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

説明

A report might need a side-by-side dashboard on the first page and a single chart on the next. I tested both calls with p1, p2, and p3 as ggplot objects:
save_as_pdf_pages([p1 | p2, p3]) # AttributeError
save_as_pdf_pages([p1 | p2, p3], filename="report.pdf") # Produces two pages
The helper documents only ggplot inputs, and automatic filename generation calls _save_filename(), which compositions lack. I’d extend the documented API to accept both ggplot and composed plots, make automatic filenames work for either, and test a mixed two-page PDF. Passing an explicit filename works today. PDF export helper

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

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

has2k1/plotnine のほかの issue

has2k1/plotnine の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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