Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions pyfigure.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ def figure_cumsum_single(cumsum: pd.DataFrame, col: str = None) -> go.Figure:
_trendline.name = "trendline"

fig.update_layout(
xaxis_title="<b>Date</b>",
xaxis_title="<b>Year</b>",
yaxis_title="<b>Cumulative Annual (mm)</b>",
margin=dict(l=0, t=35, b=0, r=0),
xaxis_tickvals=new_dataframe.number,
Expand All @@ -562,9 +562,9 @@ def figure_consistency(cumsum: pd.DataFrame, col: str) -> go.Figure:
cumsum = cumsum.copy()

# Create Mean Cumulative Other Stations
cumsum_y = cumsum[col]
cumsum_x = cumsum[col]
other_stations = cumsum.columns.drop(col)
cumsum_x = cumsum[other_stations].mean(axis=1).cumsum()
cumsum_y = cumsum[other_stations].mean(axis=1)

fig = px.scatter(
x=cumsum_x,
Expand Down Expand Up @@ -608,8 +608,8 @@ def figure_consistency(cumsum: pd.DataFrame, col: str) -> go.Figure:
_trendline.name = "trendline"

fig.update_layout(
xaxis_title="<b>Cumulative Average Annual Other Stations (mm)</b>",
yaxis_title=f"<b>Cumulative Average Annual (mm)</b>",
xaxis_title=f"<b>Cumulative Annual {col} (mm)</b>",
yaxis_title="<b>Cumulative Average Annual References (mm)</b>",
margin=dict(l=0, t=35, b=0, r=0),
yaxis_tickformat=".0f",
xaxis_tickformat=".0f",
Expand Down