Skip to content

Commit

Permalink
added tight layout to plots for examples
Browse files Browse the repository at this point in the history
  • Loading branch information
qnguyen345 committed Aug 19, 2024
1 parent eda5f00 commit 025f66b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/examples/energy/cumulative-energy-simple-avg-check.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
plt.xticks(rotation=45)
plt.xlabel("Datetime")
plt.ylabel("AC Energy (kWh)")
plt.tight_layout()
plt.show()

# %%
Expand All @@ -67,4 +68,5 @@
plt.xticks(rotation=45)
plt.xlabel("Datetime")
plt.ylabel("AC Energy (kWh)")
plt.tight_layout()
plt.show()
2 changes: 2 additions & 0 deletions docs/examples/energy/cumulative-energy-simple-diff-check.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
plt.xticks(rotation=45)
plt.xlabel("Datetime")
plt.ylabel("AC Energy (kWh)")
plt.tight_layout()
plt.show()

# %%
Expand All @@ -67,4 +68,5 @@
plt.xticks(rotation=45)
plt.xlabel("Datetime")
plt.ylabel("AC Energy (kWh)")
plt.tight_layout()
plt.show()
3 changes: 2 additions & 1 deletion pvanalytics/tests/quality/test_energy.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ def test_convert_cumulative_with_simple_diff(cumulative_series,
assert_series_equal(simple_diff_result, simple_diff_energy_series)


def test_convert_cumulative_with_avg_diff(avg_diff_energy_series):
def test_convert_cumulative_with_avg_diff(cumulative_series,
avg_diff_energy_series):
"""
Tests convert_cumulative_energy for cumulative series.
Test returns the corrected differenced series via avgerage differencing.
Expand Down

0 comments on commit 025f66b

Please sign in to comment.