Skip to content

Commit

Permalink
Add axis to timeseries plot
Browse files Browse the repository at this point in the history
  • Loading branch information
UsualSpec committed Jul 10, 2024
1 parent 49be8f8 commit 6a03fd7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/plotter/pages/dut.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,9 @@ def getMsmtVals(msmt_id):
return go.Scatter(x=msmtDf["measurement_timestamp"], y=msmtDf["measurement_value"], name="Measurement id " + str(msmt_id))
allMsmtsForThisId = list(map(getMsmtVals, msmt_ids))
plt.add_traces(allMsmtsForThisId)

# Add x axis and y axis titles
plt.update_layout(xaxis_title="Time", yaxis_title="Measured power [W]")

# copy the dataframe
hourlyMsmts = pd.read_sql_query(sql="SELECT measurement_value, measurement_time FROM getMsmtsByHour (%(mmtids)s, %(bintime)s, %(startts)s, %(endts)s)", params={"bintime": binTime, "mmtids": msmt_ids, "startts": startDate, "endts": endDate}, con=pgcon)
Expand Down

0 comments on commit 6a03fd7

Please sign in to comment.