# UserWarning: Tight layout not applied. The left and right margins cannot be made large enough to accommodate all Axes decorations.

- **ID:** `python/matplotlib-tight-layout-warning`
- **Domain:** python
- **Category:** runtime_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

plt.tight_layout() cannot satisfy the requested spacing because of long tick labels, many subplots, or a fixed figure size that leaves no room.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.x | active | — | — |

## Workarounds

1. **** (90% success)
   ```
   fig, axs = plt.subplots(2, 2, constrained_layout=True, figsize=(10, 8))
# or: fig.set_layout_engine('constrained')
   ```
2. **** (85% success)
   ```
   fig, ax = plt.subplots(figsize=(12, 8))
ax.plot([1,2,3])
plt.tight_layout(pad=2.0)
   ```

## Dead Ends

- **** — Repeated calls yield the same constraint violation; the layout engine has no additional space to allocate. (92% fail)
- **** — Hides the symptom but the labels are still clipped in the saved figure. (70% fail)
