=> Simple plot with 2 axis from matplotlib import pyplot as plt age_x = [25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35] dev_y = [38496, 42000, 46752, 49320, 53200, 56000, 62316, 64928, 67317, 68748, 73752] plt.plot(age_x, dev_y) plt.show() => Simple plot with 2 axis with xlabel, ylabel and title from matplotlib import pyplot as plt age_x = [25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35] dev_y = [38496, 42000, 46752, 49320, 53200, 56000, 62316, 64928, 67317, 68748, 73752] plt.plot(age_x, dev_y) plt.xlabel("Age") plt.ylabel("Median Salary (USD)") plt.title("Median Dev Salary (USD) by Age") plt.show() => Plot multi-dimentional data from matplotlib import pyplot as plt age_x = [25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35] dev_y = [38496, 42000, 46752, 49320, 53200, 56000, 62316, 64928, 67317, 68748, 73752] plt.plot(age_x, dev_y) py_dev_y = [45372, 48...
Comments
Post a Comment