My problem is that I cannot distance the two labels, as the data are very similar to each other. This is my code with an image attached. What I tried: plt.xticks rotated the labels.
figure(figsize=(10, 10), dpi=80)
value=[96.3,91.8,39.6,33.3,32.4,34.2,30.6,31.5,11.7,27.9]
plt.plot([0.05,0.1,0.15,0.20,0.25,0.30,0.35,0.40,0.45,0.50],valore, '--bo', label='line with marker')
plt.xticks([0.05,0.1,0.15,0.20,0.25,0.30,0.35,0.40,0.45,0.50])
plt.yticks([96.3,91.8,39.6,33.3,32.4,34.2,30.6,31.5,11.7,27.9])
plt.tick_params(axis='y', direction='out')
#plt.yticks(rotation=45)
ax = plt.gca()
#ax.set_xlim([5, 50])
ax.set_ylim([11.0, 97.0])
plt.legend()
plt.show()
I want more space between 30.6 and 31.5 to make the result more readable
CodePudding user response: