import matplotlib.pyplot as plt pixels = [81000, 308898, 588800, 1164800, 1500000, 3406500, 9262500] read_time = [0.0372315, 0.1104362, 0.162849, 0.3120326, 0.4681494, 0.9840036, 1.665642] smoothened_time = [0.03347448, 0.1221104, 0.2514082, 0.4795412, 0.6044902, 1.1334092, 2.453936] details_time = [0.01907596, 0.0646283, 0.13429812, 0.3404896, 0.4052684, 0.6450756, 2.591112] sharpened_time = [0.02013736, 0.07459558, 0.13045596, 0.2987406, 0.4569202, 0.699245, 3.019178] write_time = [0.010278664, 0.03954574, 0.05814792, 0.1842653, 0.2484992, 0.304828, 1.119439] plt.figure(figsize=(12, 8)) plt.plot(pixels, read_time, marker='o', label='Read Time') plt.plot(pixels, smoothened_time, marker='o', label='Smoothened Time') plt.plot(pixels, details_time, marker='o', label='Details Time') plt.plot(pixels, sharpened_time, marker='o', label='Sharpened Time') plt.plot(pixels, write_time, marker='o', label='Write Time') plt.xlabel('Pixels') plt.ylabel('Time (seconds)') plt.title('Pixels vs Time') plt.legend() plt.grid(True) plt.xscale('log') plt.yscale('log') plt.show()