You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
416 B
Python
16 lines
416 B
Python
import matplotlib.pyplot as plt
|
|
from service.wms_ingredients_service import WmsIngredientsService
|
|
|
|
service = WmsIngredientsService()
|
|
df = service.get_monthly_weight_df()
|
|
|
|
plt.figure(figsize=(12, 6))
|
|
plt.plot(df["month"], df["total_weight"], marker="o")
|
|
plt.title("Monthly Net Weight Statistics")
|
|
plt.xlabel("Month")
|
|
plt.ylabel("Total Net Weight")
|
|
plt.grid(True)
|
|
plt.xticks(rotation=45)
|
|
plt.tight_layout()
|
|
plt.show()
|