@@ -100,11 +100,11 @@ def setData(self, *args):
100100 if len (args ) > 3 :
101101 dy = args [3 ]
102102
103- self .__x = np .asarray (x , np . float )
103+ self .__x = np .asarray (x , float )
104104 if len (self .__x .shape ) != 1 :
105105 raise RuntimeError ("len(asarray(x).shape) != 1" )
106106
107- self .__y = np .asarray (y , np . float )
107+ self .__y = np .asarray (y , float )
108108 if len (self .__y .shape ) != 1 :
109109 raise RuntimeError ("len(asarray(y).shape) != 1" )
110110 if len (self .__x ) != len (self .__y ):
@@ -113,14 +113,14 @@ def setData(self, *args):
113113 if dx is None :
114114 self .__dx = None
115115 else :
116- self .__dx = np .asarray (dx , np . float )
116+ self .__dx = np .asarray (dx , float )
117117 if len (self .__dx .shape ) not in [0 , 1 , 2 ]:
118118 raise RuntimeError ("len(asarray(dx).shape) not in [0, 1, 2]" )
119119
120120 if dy is None :
121121 self .__dy = dy
122122 else :
123- self .__dy = np .asarray (dy , np . float )
123+ self .__dy = np .asarray (dy , float )
124124 if len (self .__dy .shape ) not in [0 , 1 , 2 ]:
125125 raise RuntimeError ("len(asarray(dy).shape) not in [0, 1, 2]" )
126126
@@ -282,7 +282,7 @@ def __init__(self, parent=None, title=None):
282282 grid .setPen (QPen (Qt .black , 0 , Qt .DotLine ))
283283
284284 # calculate data and errors for a curve with error bars
285- x = np .arange (0 , 10.1 , 0.5 , np . float )
285+ x = np .arange (0 , 10.1 , 0.5 , float )
286286 y = np .sin (x )
287287 dy = 0.2 * abs (y )
288288 # dy = (0.15 * abs(y), 0.25 * abs(y)) # uncomment for asymmetric error bars
0 commit comments