Metadata-Version: 2.4
Name: alcyone-fig-qa
Version: 0.1.1
Summary: Zero-dependency CLI to calibrate journal print font sizes (>=7 pt), check PNG effective DPI (>=300), and catch Type 3 bitmap fonts in PDF figures.
Author-email: Alcyone <alcyonecraft@users.noreply.github.com>
License-Expression: MIT
Project-URL: Homepage, https://alcyonecraft.github.io/tools.html
Project-URL: Repository, https://github.com/alcyonecraft/alcyone-fig-qa
Project-URL: Issues, https://github.com/alcyonecraft/alcyone-fig-qa/issues
Project-URL: Publication Figure Kit, https://alcyonecraft.gumroad.com/l/publication-figure-kit?utm_source=pypi&utm_medium=sidebar&utm_campaign=alcyone_fig_qa
Project-URL: Complete Suite, https://alcyonecraft.gumroad.com/l/complete-researcher-suite?utm_source=pypi&utm_medium=sidebar&utm_campaign=alcyone_fig_qa
Project-URL: YouTube Demo, https://youtube.com/shorts/x0oXsX5kI7I
Keywords: matplotlib,ggplot2,scientific-figures,peer-review,data-visualization,pdf,dpi,typography,publication,cli
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Scientific/Engineering :: Visualization
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# alcyone-fig-qa

[![PyPI version](https://img.shields.io/pypi/v/alcyone-fig-qa?color=2F868D)](https://pypi.org/project/alcyone-fig-qa/)
[![PyPI Downloads](https://img.shields.io/pypi/dm/alcyone-fig-qa?color=4B6EB0)](https://pypi.org/project/alcyone-fig-qa/)
[![Python](https://img.shields.io/pypi/pyversions/alcyone-fig-qa)](https://pypi.org/project/alcyone-fig-qa/)
[![License: MIT](https://img.shields.io/badge/License-MIT-548B50.svg)](https://github.com/alcyonecraft/alcyone-fig-qa/blob/main/LICENSE)

Zero-dependency scientific figure QA CLI for two-column journals:
- **Font Calibration (`calc`)**: Compute exact Matplotlib `rcParams` (`pdf.fonttype=42`, Arial/Helvetica) and R `ggplot2` sizes so scaled two-column PDFs stay `>= 7 pt` in print.
- **Asset Audit (`audit`)**: Verify PNG pixel dimensions & effective DPI at target column width (`>= 300 DPI`) and detect bitmap `/Subtype /Type3` fonts inside exported `.pdf` figures before peer review.

- **20-Second Walkthrough (YouTube Shorts)**: https://youtube.com/shorts/x0oXsX5kI7I
- **Interactive Browser Calibrator**: https://alcyonecraft.github.io/tools.html?utm_source=pypi&utm_medium=readme&utm_campaign=alcyone_fig_qa ([Cloudflare Mirror](https://alcyonecraft.pages.dev/tools.html?utm_source=pypi&utm_medium=readme&utm_campaign=alcyone_fig_qa))

## Install & Run

```bash
pip install alcyone-fig-qa

# 1. Calibrate Matplotlib/ggplot2 font sizes for Nature/Lancet 7.20 in double column
alcyone-fig-qa calc --journal nature-double --canvas-in 9.6

# 2. Audit exported PNG & PDF figures before journal submission
alcyone-fig-qa audit figure1.pdf figure1.png --target-width-in 7.2 --strict
```

## Example Terminal Output

**1. Print-width typography calibration (`calc`):**

```text
$ alcyone-fig-qa calc --journal nature-double --canvas-in 9.6
Journal preset: nature-double (7.2 in) | Canvas: 9.6 in | Scale: 0.75x | Print floor >= 7.0 pt
matplotlib.rcParams: pdf.fonttype=42, font.family='sans-serif', font.size=10.5, axes.labelsize=11.2, xtick.labelsize=10.0, ytick.labelsize=10.0, panel_letter=15.0
ggplot2 theme_classic(base_size=10.5) | axis.title=11.2 | tick=10.0
```

**2. Before vs. After figure audit (`audit`):**

```text
# Before: undersized raster at 7.2 in two-column print width (exit 1)
$ alcyone-fig-qa audit draft_forest.png --target-width-in 7.2 --strict
[FAIL] draft_forest.png: {'ok': False, 'format': 'PNG', 'width_px': 1920, 'height_px': 860, 'declared_dpi': 300.0, 'effective_dpi': 266.7, 'issues': ['Effective DPI 266.7 at 7.2 in is below 300 DPI.']}

# After: print-calibrated 400 DPI export passing strict journal gate (exit 0)
$ alcyone-fig-qa audit figure1.png --target-width-in 7.2 --strict
[PASS] figure1.png: {'ok': True, 'format': 'PNG', 'width_px': 2880, 'height_px': 1440, 'declared_dpi': 400.0, 'effective_dpi': 400.0, 'issues': []}
```

## Try Free vs. Full Suite

| Option | What You Get | Access |
| :--- | :--- | :--- |
| **Free Browser Calibrator (Zero Upload)** | Translate Nature/IEEE/Lancet/A4 widths to copyable `rcParams` & `ggplot2` snippets in your browser | [Open Web Tools](https://alcyonecraft.github.io/tools.html?utm_source=pypi&utm_medium=readme&utm_campaign=alcyone_fig_qa) ([Mirror](https://alcyonecraft.pages.dev/tools.html?utm_source=pypi&utm_medium=readme&utm_campaign=alcyone_fig_qa)) |
| **Free MIT GitHub Starter** | Forest Plot + Paired Slopegraph Matplotlib starter & Colab notebook (Zenodo DOI [`10.5281/zenodo.24644458`](https://doi.org/10.5281/zenodo.24644458)) | [publication-figure-starter](https://github.com/alcyonecraft/publication-figure-starter) |
| **Full 8-Template Python Figure Kit** | ROC/PR w/ CI bands, Raincloud, Confusion Matrix, Ablation Bars, Calibration, Volcano + bounding-box overlap QA (`LAUNCH20` for 20% off) | [Get Figure Kit](https://alcyonecraft.gumroad.com/l/publication-figure-kit?utm_source=pypi&utm_medium=readme&utm_campaign=alcyone_fig_qa) |
| **7-in-1 Complete Researcher Suite** | All 7 Alcyone kits (Python plots + R biomed + Agent skills/CLIs + LaTeX/Word tables + Rebuttal class + Slides + PRISMA 2020 · $69, Reg. $293+, extra 20% off w/ `LAUNCH20`) | [Get 7-in-1 Suite](https://alcyonecraft.gumroad.com/l/complete-researcher-suite?utm_source=pypi&utm_medium=readme&utm_campaign=alcyone_fig_qa) |

## Drop Into GitHub Actions CI

```yaml
- name: Audit publication figures (effective DPI + Type 3 font check)
  run: |
    pip install alcyone-fig-qa
    alcyone-fig-qa audit figures/*.pdf figures/*.png --target-width-in 7.2 --strict
```
