Skip to content

Add spectrum display and spectral phase visualization#3

Open
dccote wants to merge 1 commit intomainfrom
spectre
Open

Add spectrum display and spectral phase visualization#3
dccote wants to merge 1 commit intomainfrom
spectre

Conversation

@dccote
Copy link
Copy Markdown
Contributor

@dccote dccote commented Mar 3, 2026

Summary

  • Add drawSpectrum method to display frequency-domain amplitude and spectral phase
  • Add drawTemporalAndSpectral method for side-by-side temporal/spectral visualization
  • Update default pulse parameters: shorter pulse (5 fs), finer propagation steps (400)
  • Enable carrier and chirp colour display by default

Test plan

  • Run pulse.py and verify the spectrum plot shows correct frequency axis and phase
  • Verify temporal plot still renders correctly with carrier and chirp colour
  • Check that generated PNG figures are correct

🤖 Generated with Claude Code

Add drawSpectrum and drawTemporalAndSpectral methods to display
frequency domain amplitude and phase alongside the temporal pulse.
Update pulse parameters for shorter pulse (5 fs) and finer propagation
steps. Enable carrier and chirp colour display by default.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant