python - How to change the distance between y axis points in matplotlib? -


sorry if stupid question, have done lot of searching cant find answer. using matplotlib generate plots data need space out distance between points on y axis.

so how have matlibplot

and want spaced out 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 abl1 on international scale (is)') plt.show() 

thanks in advance :)

you need call to:

plt.yscale("log") 

Comments

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

serialization - Convert Any type in scala to Array[Byte] and back -

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -