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