@@ -98,19 +98,19 def createPline(ax, x, y, xmin, xmax, ymin, ymax, xlabel='', ylabel='', title='' | |||||
98 | printLabels(ax, xlabel, ylabel, title) |
|
98 | printLabels(ax, xlabel, ylabel, title) | |
99 |
|
99 | |||
100 | ###################################################### |
|
100 | ###################################################### | |
101 |
|
|
101 | if (xmax-xmin)<=1: | |
102 |
|
|
102 | xtickspos = numpy.linspace(xmin,xmax,nxticks) | |
103 |
|
|
103 | xtickspos = numpy.array([float("%.1f"%i) for i in xtickspos]) | |
104 |
|
|
104 | ax.set_xticks(xtickspos) | |
105 |
|
|
105 | else: | |
106 |
|
|
106 | xtickspos = numpy.arange(nxticks)*int((xmax-xmin)/(nxticks)) + int(xmin) | |
107 |
|
|
107 | ax.set_xticks(xtickspos) | |
108 |
|
|
108 | ||
109 |
|
|
109 | for tick in ax.get_xticklabels(): | |
110 |
|
|
110 | tick.set_visible(xtick_visible) | |
111 |
|
|
111 | ||
112 |
|
|
112 | for tick in ax.xaxis.get_major_ticks(): | |
113 |
|
|
113 | tick.label.set_fontsize(ticksize) | |
114 |
|
114 | |||
115 | ###################################################### |
|
115 | ###################################################### | |
116 | for tick in ax.get_yticklabels(): |
|
116 | for tick in ax.get_yticklabels(): |
General Comments 0
You need to be logged in to leave comments.
Login now