RoyAalekh commited on
Commit
ab5d87c
·
verified ·
1 Parent(s): a2bfadf

Update plotting.py

Browse files
Files changed (1) hide show
  1. plotting.py +4 -4
plotting.py CHANGED
@@ -170,7 +170,7 @@ def create_iv_plot_with_power_curves(df, inverter_ids):
170
  fig.update_xaxes(title_text="Datetime", row=3, col=1)
171
 
172
  # Update layout to add titles
173
- fig.update_layout(title_text="IV Plot with Power Curves", height=1200, width=1600)
174
 
175
  return fig
176
 
@@ -306,7 +306,7 @@ def create_iv_plot_with_power_and_temperature_curves(df, df2, inverter_ids):
306
 
307
  # Update layout to add titles
308
  fig.update_layout(
309
- title_text="IV Plots with Power and Temperature", height=1200, width=1600
310
  )
311
 
312
  return pn.pane.Plotly(fig)
@@ -419,12 +419,12 @@ def create_iv_plot_with_temperature_curves(df, df2, inverter_ids):
419
  fig.update_yaxes(title_text="Temperature (°C)", row=3, col=1)
420
 
421
  # Update layout to add titles
422
- fig.update_layout(title_text="IV Plots with Temperature", height=1200, width=1600)
423
 
424
  return pn.pane.Plotly(fig)
425
 
426
 
427
  def create_heatmap(df, title):
428
  fig = px.imshow(df.transpose(), aspect="auto", title=title)
429
- fig.update_layout(height=800, width=1200)
430
  return pn.pane.Plotly(fig)
 
170
  fig.update_xaxes(title_text="Datetime", row=3, col=1)
171
 
172
  # Update layout to add titles
173
+ fig.update_layout(title_text="IV Plot with Power Curves", height=1000, width=1600)
174
 
175
  return fig
176
 
 
306
 
307
  # Update layout to add titles
308
  fig.update_layout(
309
+ title_text="IV Plots with Power and Temperature", height=1000, width=1600
310
  )
311
 
312
  return pn.pane.Plotly(fig)
 
419
  fig.update_yaxes(title_text="Temperature (°C)", row=3, col=1)
420
 
421
  # Update layout to add titles
422
+ fig.update_layout(title_text="IV Plots with Temperature", height=1000, width=1600)
423
 
424
  return pn.pane.Plotly(fig)
425
 
426
 
427
  def create_heatmap(df, title):
428
  fig = px.imshow(df.transpose(), aspect="auto", title=title)
429
+ fig.update_layout(height=800, width=1600)
430
  return pn.pane.Plotly(fig)