Thread styling kwargs through plotly visualization backends#244
Conversation
Plotly renderers previously ignored marker, markersize, linewidth, capsize, ci_linewidth, and show_grid kwargs that the matplotlib backend honored. This threads them through to the plotly renderers with appropriate mappings (marker symbol conversion, scatter area-to- diameter conversion for plot_bacon). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Overall Assessment ✅ Looks good Executive Summary
Methodology
Code Quality
Performance
Maintainability
Tech Debt
Security
Documentation/Tests
|
Summary
marker,markersize,linewidth,capsize,ci_linewidth, andshow_gridkwargs from public plot functions through to their plotly renderers_mpl_marker_to_plotly_symbol()helper in_common.pyfor matplotlib-to-plotly marker symbol conversionplot_baconscattermarkersize(area in points²) to plotly diameter (px) via sqrt conversionlinewidth/capsizenot passed to event study plotly renderers (plotly uses CI bands, not error bars)Methodology references
Validation
tests/test_visualization_plotly.py(13 new tests)black) and linting (ruff) cleanSecurity / privacy
Generated with Claude Code