<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">import matplotlib.pyplot as plt


# Sampled earthquake latitude and longitudes from real data stream
# Earthquake i occurred at the location (latitude[i], longitude[i])


latitudes = [
    39.6835 ,  60.5828 ,  47.4227 ,  38.8175 ,  19.1345 ,
    19.4377 ,  60.0217 ,  38.7978 ,  19.1364 ,  38.8148 ,
    35.4513321 ,  35.4496667 ,  65.4569 ,  19.1145 ,  19.0991 ,
    59.2952 ,  19.1082 ,  19.1292 ,  19.106 ,  19.1397 ,
    19.5637 ,  38.8223 ,  38.8248 ,  62.5455 ,  47.874 ,
    67.3132 ,  38.7029 ,  61.6552 ,  64.5419 ,  38.8295 ,
    36.0098333 ,  38.8172 ,  41.9608 ,  37.6482 ,  61.2656 ,
    19.4962 ,  67.7172 ,  65.0489 ,  33.1421667 ,  19.1439 ,
    23.9771 ,  -19.2873 ,  32.8785 ,  38.7862 ,  61.9873 ,
    12.678 ,  -19.994 ,  63.5496 ,  37.6432 ,  37.6402 ,
    60.3533 ,  63.5168 ,  59.2366 ,  36.4465 ,  36.0127 ,
    37.6428 ,  -4.2024 ,  63.6113 ,  63.2149 ,  38.8198 ,
    38.9297 ,  59.974 ,  60.7618 ,  52.7127 ,  -24.6421 ,
    61.5847 ,  38.8168 ,  19.3878 ,  34.0501667 ,  -20.0083 ,
    37.6598 ,  38.8307 ,  60.9126 ,  32.9191667 ,  38.8177 ,
    61.5517 ,  38.8346672 ,  37.5017 ,  63.5632 ,  49.437 ,
    33.7055 ,  61.8545 ,  61.2292 ,  38.8118324 ,  38.7928 ,
    59.7185 ,  61.0452 ,  62.0028 ,  40.6411667 ,  67.6866 ,
    33.7241667 ,  33.6633333 ,  34.118 ,  64.1991 ,  33.9715 ,
    63.2362 ,  33.1766667 ,  63.5104 ,  36.0816667 ,  41.9363 ,
    63.5142 ,  18.6928 ,  38.8152 ,  62.348 ,  33.507 ,
    62.4895 ,  38.4138 ,  34.494 ,  -7.581 ,  59.7455 ,
    36.0382 ,  38.9098 ,  39.9556 ,  38.8113 ,  33.4878333 ,
    61.0741 ,  34.015 ,   35.6033 ,  38.8027 ,  32.5065 ,
    38.5644 , 60.2569 ,  51.3849 ,  38.8043 ,  38.79 ,
    46.0862 , 37.5882 ,  19.335 ,  60.1782 ,  34.4595 ,
    17.9207 ,  33.7308333 ,  40.4347 ,  63.2819 ,  19.406 ,
    60.9124 ,  37.1684 ,  36.6761 ,  61.1424 ,  38.9438 ,
    63.5415 , 36.0096667 ,  38.812 ,  38.574 ,  33.6433333 ,
    62.9893 , 46.5057 ,  36.7153 ,  38.8162 ,  34.1838333 ,
    63.3836 , 38.8263 ,  37.6413333 ,  37.6413345 ,  36.2022 ,
    18.9734 , 62.5251 ,  37.647 ,  61.1136 ,  59.8548 ]

longitudes = [
    -119.8202 ,  -151.0144 ,  -120.1962 ,  -122.8042 ,  -66.4852 ,
    -155.2545 ,  -152.0147 ,  -122.741 ,  -66.476 ,  -122.8202 ,
    -118.3583298 ,  -118.3485 ,  -149.9319 ,  -66.4842 ,  -66.5055 ,
    -152.6316 ,  -66.4893 ,  -66.5002 ,  -66.4755 ,  -66.5593 ,
    -155.7222 ,  -122.8087 ,  -122.7567 ,  -148.7937 ,  -122.4965 ,
    -146.6892 ,  -119.7483 ,  -148.2382 ,  -150.3287 ,  -122.7563 ,
    -117.8185 ,  -122.7975 ,  -112.292 ,  -118.9453 ,  -148.1303 ,
    -65.4749 ,  -162.5629 ,  -148.6849 ,  -116.555 ,  -66.8011 ,
    122.4376 ,  -71.0031 ,  -116.2308333 ,  -122.782 ,  -148.8771 ,
    -89.9435 ,  -70.9295 ,  -147.2891 ,  -118.9467 ,  -118.9473 ,
    -151.1929 ,  -147.2057 ,  -152.5772 ,  -121.0087 ,  -120.5737 ,
    -118.9463 ,  102.4905 ,  -147.0703 ,  -150.466 ,  -122.8157 ,
    -122.915 ,  -152.3367 ,  -152.2744 ,  -162.2565 ,  179.0836 ,
    -148.6357 ,  -122.8143 ,  -155.2355 ,  -117.2433333 ,  -71.0623 ,
    -118.8538 ,  -122.7962 ,  -150.7708 ,  -116.2341667 ,  -123.2597 ,
    -140.8144 ,  -122.7906647 ,  -119.2803 ,  -150.4265 ,  -120.5028 ,
    -116.7346667 ,  -148.5384 ,  -147.5966 ,  -122.7941666 ,  -122.758 ,
    -142.0245 ,  -148.4138 ,  -151.0051 ,  -126.1126667 ,  -162.2781 ,
    -116.8218333 ,  -116.7765 ,  -118.4856667 ,  -151.3467 ,  -116.5836667 ,
    -151.352 ,  -115.613 ,  -150.8245 ,  -117.8765 ,  -112.09 ,
    -147.5473 ,  -66.74 ,  -122.7908 ,  -150.7508 ,  -116.4445 ,
    -151.0925 ,  -118.7424 ,  -118.124 ,  127.8217 ,  -151.7874 ,
    -120.6062 ,  -122.495 ,  -120.698 ,  -122.8277 ,  -116.554 ,
    -147.306 ,  -116.725 ,  -120.7093 ,  -122.7692 ,  -115.6036667 ,
    -118.4565 ,  -141.5983 ,  -174.3117 ,  -122.7858 ,  -122.736 ,
    -122.5182 ,  -112.7912 ,  -155.1212 ,  -141.445 ,  -119.3925 ,
    -68.6573 ,  -117.4775 ,  -121.2947 ,  -151.3136 ,  -155.2842 ,
    -151.7439 ,  -117.3589 ,  -97.9854 ,  -151.4875 ,  -119.6818 ,
    -150.7005 ,  -117.7996667 ,  -122.8272 ,  -118.4456 ,  -116.7561667 ,
    -150.5905 ,  -117.7863 ,  -121.3608 ,  -122.823 ,  -117.6186667 ,
    -149.3176 ,  -122.8268 ,  -118.9538333 ,  -118.946167 ,  -96.7112 ,
    -64.9964 ,  -151.0238 ,  -118.9463 ,  -147.007 ,  -153.2606 ]


# Generate scatter plot of locations of earthquakes on a 2D grid
# At each earthquake location (longitude[i], latitude[i]) put a red '+' sign


plt.scatter(longitudes, latitudes, c='r', marker='+')


# Label Axes
plt.xlabel('Longitude')
plt.ylabel('Latitude')
plt.title('Earthquake Occurrences')
plt.show()

# Clear before the next set of graphs
plt.clf()


</pre></body></html>