Added robust parameter to imshow() with global bounds computation#13
Added robust parameter to imshow() with global bounds computation#13
Conversation
…h global bounds computation 2. xarray_plotly/accessor.py: Added robust parameter to accessor method 3. tests/test_accessor.py: Added 4 tests for bounds behavior New behavior: - Default: Global min/max across all data (fixes animation consistency) - robust=True: Uses 2nd/98th percentile (handles outliers) - zmin/zmax: User override still works
📝 WalkthroughWalkthroughThis PR adds a Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (3)
🧰 Additional context used🧬 Code graph analysis (1)tests/test_accessor.py (2)
🔇 Additional comments (5)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…th global bounds computation
New behavior:
Summary by CodeRabbit
Release Notes
New Features
robustparameter toimshow()for percentile-based color scaling that handles data outliers more gracefullyzminandzmaxparameters remains supported and takes precedenceTests
✏️ Tip: You can customize this high-level summary in your review settings.