|
182 | 182 | # to make py2exe happy with scipy >0.11
|
183 | 183 | def __dependencies_for_freezing():
|
184 | 184 | from scipy.sparse.csgraph import _validation
|
185 |
| - from scipy.interpolate import UnivariateSpline |
| 185 | + from scipy.special import _ufuncs_cxx |
| 186 | + from scipy import integrate |
| 187 | + from scipy import interpolate |
186 | 188 | import PyQt4.QtSvg
|
187 | 189 | import PyQt4.QtXml
|
188 | 190 | import PyQt4.QtDBus # needed for QT5 builds
|
@@ -4902,12 +4904,37 @@ def EventRecordAction(self,extraevent=None,eventtype=None,eventvalue=None,eventd
|
4902 | 4904 | else:
|
4903 | 4905 | row = {char1:self.phases[0]-10,char2:self.phases[0]-20,char3:self.phases[0]-30,char4:self.phases[0]-40}
|
4904 | 4906 | #some times ET is not drawn (ET = 0) when using device NONE
|
| 4907 | +# if self.temp1[index] >= self.temp2[index]: |
| 4908 | +# self.ax.annotate(firstletter + secondletter, xy=(self.timex[index], self.temp1[index]),xytext=(self.timex[index],row[firstletter]),alpha=1., |
| 4909 | +# color=self.palette["text"],arrowprops=dict(arrowstyle='-',color=self.palette["et"],alpha=0.4,relpos=(0,0)),fontsize="x-small",fontproperties=aw.mpl_fontproperties,backgroundcolor='yellow') |
| 4910 | +# else: |
| 4911 | +# self.ax.annotate(firstletter + secondletter, xy=(self.timex[index], self.temp2[index]),xytext=(self.timex[index],row[firstletter]),alpha=1., |
| 4912 | +# color=self.palette["text"],arrowprops=dict(arrowstyle='-',color=self.palette["bt"],alpha=0.4,relpos=(0,0)),fontsize="x-small",fontproperties=aw.mpl_fontproperties,backgroundcolor='yellow') |
| 4913 | + |
| 4914 | + fontprop_small = aw.mpl_fontproperties.copy() |
| 4915 | + fontprop_small.set_size("xx-small") |
4905 | 4916 | if self.temp1[index] >= self.temp2[index]:
|
4906 |
| - self.ax.annotate(firstletter + secondletter, xy=(self.timex[index], self.temp1[index]),xytext=(self.timex[index],row[firstletter]),alpha=1., |
4907 |
| - color=self.palette["text"],arrowprops=dict(arrowstyle='-',color=self.palette["et"],alpha=0.4,relpos=(0,0)),fontsize="x-small",fontproperties=aw.mpl_fontproperties,backgroundcolor='yellow') |
| 4917 | + self.ax.annotate(firstletter + secondletter, |
| 4918 | + xy=(self.timex[index], |
| 4919 | + self.temp1[index]),xytext=(self.timex[index],row[firstletter]), |
| 4920 | + alpha=1., |
| 4921 | + bbox=dict(boxstyle='square,pad=0.1', fc='yellow', ec='none'), |
| 4922 | + path_effects=[PathEffects.withStroke(linewidth=0.5,foreground="w")], |
| 4923 | + color=self.palette["text"], |
| 4924 | + arrowprops=dict(arrowstyle='-',color=self.palette["et"],alpha=0.4,relpos=(0,0)), |
| 4925 | + fontsize="xx-small", |
| 4926 | + fontproperties=fontprop_small) |
4908 | 4927 | else:
|
4909 |
| - self.ax.annotate(firstletter + secondletter, xy=(self.timex[index], self.temp2[index]),xytext=(self.timex[index],row[firstletter]),alpha=1., |
4910 |
| - color=self.palette["text"],arrowprops=dict(arrowstyle='-',color=self.palette["bt"],alpha=0.4,relpos=(0,0)),fontsize="x-small",fontproperties=aw.mpl_fontproperties,backgroundcolor='yellow') |
| 4928 | + self.ax.annotate(firstletter + secondletter, |
| 4929 | + xy=(self.timex[index], |
| 4930 | + self.temp2[index]),xytext=(self.timex[index],row[firstletter]), |
| 4931 | + alpha=1., |
| 4932 | + bbox=dict(boxstyle='square,pad=0.1', fc='yellow', ec='none'), |
| 4933 | + path_effects=[PathEffects.withStroke(linewidth=0.5,foreground="w")], |
| 4934 | + color=self.palette["text"], |
| 4935 | + arrowprops=dict(arrowstyle='-',color=self.palette["bt"],alpha=0.4,relpos=(0,0)), |
| 4936 | + fontsize="xx-small", |
| 4937 | + fontproperties=fontprop_small) |
4911 | 4938 | elif self.eventsGraphflag == 2 and etype < 4:
|
4912 | 4939 | # update lines data using the lists with new data
|
4913 | 4940 | if etype == 0:
|
|
0 commit comments