Python line plot
- Input
- Language Python, line plot, x variable x, y variable y.
- Method
- Select the Matplotlib line template.
- Formula
- plot type + language + variable names + labels -> code template
- Intermediate steps
- Normalize line endings and trim empty wrapper text.
- Apply deterministic rule or template choices only.
- Add warnings for unsupported syntax, semantic assumptions, and verification steps.
- Final result
- Code includes import matplotlib.pyplot as plt, plt.plot(x, y), labels, title, grid, and plt.show().
- Interpretation
- The result is useful as a migration or documentation aid after human review.
- Limitation
- The helper does not run tests, inspect workspace variables, or guarantee numeric equivalence.