# Visualization

Use `vipr.visualization` to control matplotlib output for GID images.
Supported export formats are `svg`, `png`, and `pdf`.

## Target Diagram ID

For GIWAXS detection images, use:
- `giwaxs_detection`

Do **not** use the generated filename (`giwaxs_detection_0.png/svg`) as config key.

## Example: Export Detection Image as PNG

```yaml
vipr:
  visualization:
    diagrams:
      giwaxs_detection:
        export:
          format: png
          dpi: 150
```

## Example: Global + Per-Diagram Override

```yaml
vipr:
  visualization:
    plot_style:
      export:
        format: svg
        dpi: 180
      figure:
        figsize: [11, 6.5]
      rc:
        font.size: 11

    diagrams:
      giwaxs_detection:
        export:
          format: png
          dpi: 200
        figure:
          figsize: [12, 7]
```

Merge priority:
1. built-in defaults
2. `plot_style` (global)
3. `diagrams.<diagram_id>` (override)
