diff --git a/mediapipe/python/solutions/drawing_utils.py b/mediapipe/python/solutions/drawing_utils.py index ea5d881cb..e7cbf201d 100644 --- a/mediapipe/python/solutions/drawing_utils.py +++ b/mediapipe/python/solutions/drawing_utils.py @@ -282,6 +282,9 @@ def plot_landmarks(landmark_list: landmark_pb2.NormalizedLandmarkList, plt.figure(figsize=(10, 10)) ax = plt.axes(projection='3d') ax.view_init(elev=elevation, azim=azimuth) + ax.set_xlim((-1,1)) + ax.set_ylim((-1,1)) + ax.set_zlim((-1,1)) plotted_landmarks = {} for idx, landmark in enumerate(landmark_list.landmark): if ((landmark.HasField('visibility') and