def add_shots_to_plot(self): shots = [] for shot in self.get_chosen_shots(): shot_data = pt_data.get_shot(self.data, shot["Player Last First"], shot["Tournament Name"], shot["Round"], shot["Hole Number"]) summary = pt_data.get_shot_summary(shot_data) shots.append((shot_data, summary)) return shots
shots.append({ 'Player Last First': 'Thomas, Justin', 'Tournament Name': 'Safeway Open', 'Round': 2, 'Hole Number': 5 }) shots.append({ 'Player Last First': 'Thomas, Justin', 'Tournament Name': 'Safeway Open', 'Round': 3, 'Hole Number': 5 }) shots.append({ 'Player Last First': 'Thomas, Justin', 'Tournament Name': 'Safeway Open', 'Round': 4, 'Hole Number': 5 }) for shot in shots: shot_data = pt_data.get_shot(data, shot["Player Last First"], shot["Tournament Name"], shot["Round"], shot["Hole Number"]) # shot summary summary = pt_data.get_shot_summary(shot_data) pt.add_plot_data(shot_data, summary) # pt.plot_2d() pt.plot_3d(azim=100)