Reputation: 15
Sorry if this is a really stupid question, I have done a lot of searching but cant find the answer. I am using matplotlib to generate plots for some data but need to space out the distance between the points on the y axis.
So this is how I have it currently matlibplot
And I want it to be spaced out like this sampleplot
ratioticks = (0.00001, 0.0001, 0.001, 0.01, 0.1, 1)
line = plt.plot(x, ratioy, label='BCR:ABL1 ratio(IS)')
line2 = plt.plot(x, sensy, label='Sensitivity of Detection (1/ABL1)')
line3 = plt.plot(x, sensx, label='Target Sensitivity')
line4 = plt.plot(x, mrx, label='MMR')
plt.setp(line, color='r', linewidth=2.0)
plt.setp(line2, color='g', linewidth=2.0)
plt.setp(line3, color='b', linewidth=2.0)
plt.setp(line3, color='m', linewidth=2.0)
plt.grid(which='both')
plt.yticks(ratioticks)
plt.ylabel('Ratio on Log Scale')
plt.xlabel('Date')
plt.title('Level of BCR:ABL1 normalised to ABL1 on the International Scale (IS)')
plt.show()
Thanks in advance :)
Upvotes: 1
Views: 1156