fix(report): trajectory plots full-width instead of side-by-side
- Remove two-col grid wrapper from trajectory section - Each plot now gets full container width - Trajectory plot height 450→500, width 1100 for better readability
This commit is contained in:
@@ -680,7 +680,8 @@ def make_trajectory_plot(angles, coefficients_relative, mode_groups, sensitivity
|
||||
yaxis_cfg['title'] = dict(text="RMS (nm) — log scale", font=dict(color='#1e293b'))
|
||||
|
||||
fig.update_layout(
|
||||
height=450,
|
||||
height=500,
|
||||
width=1100,
|
||||
margin=dict(t=30, b=50, l=70, r=20),
|
||||
**_PLOTLY_LIGHT_LAYOUT,
|
||||
xaxis=dict(title=dict(text="Elevation Angle (°)", font=dict(color='#1e293b')),
|
||||
@@ -1493,10 +1494,9 @@ def generate_report(
|
||||
'<p class="note">Mode-specific integrated RMS across the operating elevation range. ' +
|
||||
'The linear model c<sub>j</sub>(\u03b8) = a<sub>j</sub>\u00b7\u0394sin\u03b8 + b<sub>j</sub>\u00b7\u0394cos\u03b8 decomposes gravity into axial and lateral components.</p>' +
|
||||
traj_metrics_html +
|
||||
'<div class="two-col" style="margin-top:1rem">' +
|
||||
'<div class="plot-container"><h3>Mode RMS vs Elevation Angle</h3>' + traj_plot_html + '</div>' +
|
||||
'<div class="plot-container"><h3>Axial vs Lateral Sensitivity</h3>' + sens_plot_html + '</div>' +
|
||||
'</div></div>' if traj_result else ''}
|
||||
'<div class="plot-container" style="margin-top:1rem"><h3>Mode RMS vs Elevation Angle</h3>' + traj_plot_html + '</div>' +
|
||||
'<div class="plot-container" style="margin-top:1rem"><h3>Axial vs Lateral Sensitivity</h3>' + sens_plot_html + '</div>' +
|
||||
'</div>' if traj_result else ''}
|
||||
|
||||
<!-- PSD Analysis -->
|
||||
{'<div class="section"><h2>' + str(sec_psd) + '. Power Spectral Density Analysis</h2>' +
|
||||
|
||||
Reference in New Issue
Block a user