-
Notifications
You must be signed in to change notification settings - Fork 11
Improve plot labels with LaTeX mathematical notation for physical units #443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve plot labels with LaTeX mathematical notation for physical units #443
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests
Comment |
Co-authored-by: alexvalentine94 <40658938+alexvalentine94@users.noreply.github.com>
…lica Co-authored-by: alexvalentine94 <40658938+alexvalentine94@users.noreply.github.com>
Co-authored-by: alexvalentine94 <40658938+alexvalentine94@users.noreply.github.com>
|
@copilot our tests are not passing? |
Co-authored-by: alexvalentine94 <40658938+alexvalentine94@users.noreply.github.com>
Fixed in commit d1a0e82. The issue was incorrect backslash escaping - I had used quadruple backslashes ( Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Codecov Report✅ All modified and coverable lines are covered by tests. 🚀 New features to boost your workflow:
|
|
Thanks @copilot! |
dodu94
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.

$\mathrm{MeV}$,$\mathrm{cm}^2$, etc.)Summary of Changes
Successfully updated 24 atlas configuration YAML files with proper LaTeX formatting for all plot labels containing physical units.
Backslash Escaping Fix (Latest Commit)
Fixed an escaping issue where quadruple backslashes (
\\\\) in YAML were creating double backslashes in the parsed strings, which matplotlib's mathtext parser couldn't handle. Changed to double backslashes (\\) which correctly produce single backslashes after YAML parsing.Technical Details:
\\in file →\in Python string (correct)\\\\in file →\\in Python string → matplotlib parse error$\left[\mathrm{cm}^{-2}\cdot\mathrm{s}^{-1}\right]$(single backslashes)Files Fixed:
19 files with corrected backslash escaping:
Test Results:
✅ All 25 atlas processor tests now pass
✅ All configuration files load successfully
✅ LaTeX labels render correctly in matplotlib plots
✅ 144 total tests passing (only 1 unrelated network test failure)
The plot labels now use professional mathematical notation that matplotlib can correctly render.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.