@@ -175,28 +175,28 @@ def plot3(self, line, title=None):
175175 _cell = _Cell (self ._r , self ._c , title , self ._cmap )
176176 safe_call (backend .get ().af_draw_plot3 (self ._wnd , line .arr , ct .pointer (_cell )))
177177
178- def surface (self , z_vals , x_vals , y_vals , title = None ):
178+ def surface (self , x_vals , y_vals , z_vals , title = None ):
179179 """
180180 Renders the input array as a 3D surface plot.
181181
182182 Paramters
183183 ---------
184184
185- z_vals: af.Array.
186- A 1 dimensional array containing Z co-ordinates.
187-
188185 x_vals: af.Array.
189186 A 1 dimensional array containing X co-ordinates.
190187
191188 y_vals: af.Array.
192189 A 1 dimensional array containing Y co-ordinates.
193190
191+ z_vals: af.Array.
192+ A 1 dimensional array containing Z co-ordinates.
193+
194194 title: str.
195195 Title used for the plot.
196196 """
197197 _cell = _Cell (self ._r , self ._c , title , self ._cmap )
198198 safe_call (backend .get ().af_draw_surface (self ._wnd ,
199- z_vals .arr , x_vals .arr , y_vals .arr ,
199+ x_vals .arr , y_vals .arr , z_vals .arr ,
200200 ct .pointer (_cell )))
201201
202202 def hist (self , X , min_val , max_val , title = None ):
0 commit comments