@@ -619,7 +619,9 class Plot(Operation): | |||||
619 | #i = 1 if numpy.where( |
|
619 | #i = 1 if numpy.where( | |
620 | # abs(ymax-ymin) <= Y)[0][0] < 0 else numpy.where(abs(ymax-ymin) <= Y)[0][0] |
|
620 | # abs(ymax-ymin) <= Y)[0][0] < 0 else numpy.where(abs(ymax-ymin) <= Y)[0][0] | |
621 | #ystep = Y[i] / 10. |
|
621 | #ystep = Y[i] / 10. | |
622 | ystep = round(ymax,-1)//5 |
|
622 | dig = int(numpy.log10(ymax)) | |
|
623 | ystep = ((ymax + (10**(dig)))//10**(dig))*(10**(dig)) | |||
|
624 | ystep = ystep//10 | |||
623 | if self.xaxis is not 'time': |
|
625 | if self.xaxis is not 'time': | |
624 | X = numpy.array([0.02, 0.05, 0.1, 0.2, 0.5, 1, 2, 5, 10, 20, 50, 100, |
|
626 | X = numpy.array([0.02, 0.05, 0.1, 0.2, 0.5, 1, 2, 5, 10, 20, 50, 100, | |
625 | 200, 500, 1000, 2000, 5000, 10000, 20000, 50000])/2. |
|
627 | 200, 500, 1000, 2000, 5000, 10000, 20000, 50000])/2. |
General Comments 0
You need to be logged in to leave comments.
Login now