Skip to content

Commit f8044a1

Browse files
author
Roberto De Ioris
authored
Update plotter.py
1 parent 49e5156 commit f8044a1

File tree

1 file changed

+2
-2
lines changed
  • tutorials/PlottingGraphsWithMatplotlibAndUnrealEnginePython_Assets

1 file changed

+2
-2
lines changed

tutorials/PlottingGraphsWithMatplotlibAndUnrealEnginePython_Assets/plotter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ def begin_play(self):
2424
self.uobject.get_owner().bind_event('OnGraphDataUpdated', self.update_graph)
2525

2626
def update_graph(self, platform):
27-
27+
# clear the current plot data
2828
plt.clf()
29-
29+
# draw a pie chart
3030
plt.pie([platform.RedCubeCounter, platform.GreenCubeCounter, platform.BlueCubeCounter], colors=['r', 'g', 'b'], labels=['RedCube', 'GreenCube', 'BlueCube'], shadow=True)
3131

3232
self.fig.canvas.draw()

0 commit comments

Comments
 (0)