Fix self.type variable name in Analytics solution (#16965)

Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
Muhammad Rizwan Munawar 2024-10-16 17:23:23 +05:00 committed by GitHub
parent af5f2473a9
commit 75b6733678
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -48,7 +48,7 @@ class Analytics(BaseSolution):
self.canvas = FigureCanvas(self.fig) # Set common axis properties self.canvas = FigureCanvas(self.fig) # Set common axis properties
self.ax.set_facecolor(self.bg_color) self.ax.set_facecolor(self.bg_color)
self.color_mapping = {} self.color_mapping = {}
self.ax.axis("equal") if type == "pie" else None # Ensure pie chart is circular self.ax.axis("equal") if self.type == "pie" else None # Ensure pie chart is circular
def process_data(self, im0, frame_number): def process_data(self, im0, frame_number):
""" """