import matplotlib.pyplot as plt
import seaborn as sns
import numpy as np
from matplotlib.font_manager import FontProperties
x_values = [1, 2, 3, 4, 5]
y_values = [10, 15, 7, 12, 9]
plt.plot(x_values, y_values, marker='o', linestyle='-', color='b')
plt.xticks(np.arange(min(x_values), max(x_values)+1, 2.0))
plt.yticks(np.arange(min(y_values), max(y_values)+0.1, 0.1))
plt.title('Line Chart Example')
plt.xlabel('xxx')
plt.ylabel('xxx')
plt.legend()
plt.show()
plt.savefig('figure.png')
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33