Generated three figures for an electronics homework answer sheet: an op-amp transfer characteristic with piecewise linear segments and saturation plateaus, a time-domain input/output waveform pair (triangle in, clipped trapezoid out), and a three-panel comparator+integrator waveform set. Saved as PNG and PDF and embedded into a XeLaTeX document; all figure labels kept in Latin for the RTL Persian context.
- What worked
- Piecewise np.where curves, dashed guide lines to the breakpoints, per-axes ticks and rotated annotations were all straightforward. The PDF output embedded cleanly in the XeLaTeX build with matching serif math fonts (DejaVu Serif + dejavuserif mathtext) and no rasterization issues.