We don't know which object types are passed to methods for reporting, saving charts and copying to clipboard.
Description of changes
Added comments with one of the four types handled by ImgFormat (pg.GraphicsItem, QGraphicsScene, QGraphicsView, QWidget), and the actual derived type, if applicable.
Fix graph_name for k-means.
Polynomial classification and k-means passed the object to be plotted as an argument to report_plot. If graph_name is given, it's better to use if for report_plot to avoid ambiguity.
Issue
We don't know which object types are passed to methods for reporting, saving charts and copying to clipboard.
Description of changes
ImgFormat
(pg.GraphicsItem
,QGraphicsScene
,QGraphicsView
,QWidget
), and the actual derived type, if applicable.graph_name
for k-means.report_plot
. Ifgraph_name
is given, it's better to use if forreport_plot
to avoid ambiguity.