| | |
| | | fig_speed = px.line(df_speed, x='time', y='process_main_speed', |
| | | title="流程主速度 (M/Min)", |
| | | labels={'time': '时间', 'process_main_speed': '主速度 (M/Min)'}) |
| | | fig_speed.update_layout(xaxis=dict(rangeslider=dict(visible=True), type='date')) |
| | | st.plotly_chart(fig_speed, width='stretch', config={'scrollZoom': True}) |
| | | fig_speed.update_layout( |
| | | xaxis=dict(rangeslider=dict(visible=True), type='date'), |
| | | yaxis=dict(fixedrange=False), |
| | | hovermode='x unified', |
| | | dragmode='zoom', |
| | | ) |
| | | st.plotly_chart(fig_speed, width='stretch', config={ |
| | | 'scrollZoom': True, |
| | | 'modeBarButtonsToAdd': ['zoom2d', 'zoomIn2d', 'zoomOut2d'], |
| | | 'doubleClick': 'reset', |
| | | 'displayModeBar': True, |
| | | 'toImageButtonOptions': {'format': 'png'} |
| | | }) |
| | | else: |
| | | st.info("该时间段内无主速度数据") |
| | | |
| | |
| | | title="电机线速 (M/Min)", |
| | | xaxis_title="时间", |
| | | yaxis_title="线速 (M/Min)", |
| | | xaxis=dict(rangeslider=dict(visible=True), type='date') |
| | | xaxis=dict(rangeslider=dict(visible=True), type='date'), |
| | | yaxis=dict(fixedrange=False), |
| | | hovermode='x unified', |
| | | dragmode='zoom' |
| | | ) |
| | | st.plotly_chart(fig_motor, width='stretch', config={'scrollZoom': True}) |
| | | st.plotly_chart(fig_motor, width='stretch', config={ |
| | | 'scrollZoom': True, |
| | | 'modeBarButtonsToAdd': ['zoom2d', 'zoomIn2d', 'zoomOut2d'], |
| | | 'doubleClick': 'reset', |
| | | 'displayModeBar': True |
| | | }) |
| | | else: |
| | | st.info("该时间段内无电机监控数据") |
| | | |
| | |
| | | title="中田挤出机温度 (°C)", |
| | | xaxis_title="时间", |
| | | yaxis_title="温度 (°C)", |
| | | xaxis=dict(rangeslider=dict(visible=True), type='date') |
| | | xaxis=dict(rangeslider=dict(visible=True), type='date'), |
| | | yaxis=dict(fixedrange=False), |
| | | hovermode='x unified', |
| | | dragmode='zoom' |
| | | ) |
| | | st.plotly_chart(fig_temp, width='stretch', config={'scrollZoom': True}) |
| | | st.plotly_chart(fig_temp, width='stretch', config={ |
| | | 'scrollZoom': True, |
| | | 'modeBarButtonsToAdd': ['zoom2d', 'zoomIn2d', 'zoomOut2d'], |
| | | 'doubleClick': 'reset', |
| | | 'displayModeBar': True |
| | | }) |
| | | else: |
| | | st.info("该时间段内无温度控制数据") |