|
144 | 144 | <td width="100%"><dl>
|
145 | 145 | <dt><font face="helvetica, arial"><a href="matlab.html#FigureWin">FigureWin</a>
|
146 | 146 | </font></dt><dt><font face="helvetica, arial"><a href="matlab.html#Gcf">Gcf</a>
|
| 147 | +</font></dt><dt><font face="helvetica, arial"><a href="matlab.html#ShowOn">ShowOn</a> |
147 | 148 | </font></dt></dl>
|
148 | 149 |
|
149 | 150 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
159 | 160 |
|
160 | 161 | <dl><dt><a name="FigureWin-add_axes"><strong>add_axes</strong></a>(self, rect, axisbg)</dt></dl>
|
161 | 162 |
|
162 |
| -<dl><dt><a name="FigureWin-add_subplot"><strong>add_subplot</strong></a>(self, *args)</dt></dl> |
| 163 | +<dl><dt><a name="FigureWin-add_subplot"><strong>add_subplot</strong></a>(self, *args, **kwargs)</dt></dl> |
163 | 164 |
|
164 | 165 | <dl><dt><a name="FigureWin-get_current_axis"><strong>get_current_axis</strong></a>(self)</dt></dl>
|
165 | 166 |
|
|
181 | 182 | <td colspan=2> </td></tr>
|
182 | 183 | <tr><td> </td>
|
183 | 184 | <td width="100%">Methods defined here:<br>
|
184 |
| -<dl><dt><a name="Gcf-__init__"><strong>__init__</strong></a>(self, num<font color="#909090">=None</font>)</dt></dl> |
| 185 | +<dl><dt><a name="Gcf-__init__"><strong>__init__</strong></a>(self, num<font color="#909090">=None</font>, size<font color="#909090">=None</font>)</dt></dl> |
| 186 | + |
| 187 | +<dl><dt><a name="Gcf-_get_active"><strong>_get_active</strong></a>(self)</dt></dl> |
| 188 | + |
| 189 | +<dl><dt><a name="Gcf-_set_active"><strong>_set_active</strong></a>(self, fig)</dt></dl> |
185 | 190 |
|
186 | 191 | <dl><dt><a name="Gcf-destroy"><strong>destroy</strong></a>(self, num)</dt></dl>
|
187 | 192 |
|
| 193 | +<dl><dt><a name="Gcf-get_all_figwins"><strong>get_all_figwins</strong></a>(self)</dt></dl> |
| 194 | + |
188 | 195 | <dl><dt><a name="Gcf-get_current_figwin"><strong>get_current_figwin</strong></a>(self)</dt></dl>
|
189 | 196 |
|
190 |
| -<dl><dt><a name="Gcf-has_fignum"><strong>has_fignum</strong></a>(num)</dt></dl> |
| 197 | +<dl><dt><a name="Gcf-has_fignum"><strong>has_fignum</strong></a>(self, num)</dt></dl> |
191 | 198 |
|
192 |
| -<dl><dt><a name="Gcf-newfig"><strong>newfig</strong></a>(self, num<font color="#909090">=None</font>)</dt></dl> |
| 199 | +<dl><dt><a name="Gcf-newfig"><strong>newfig</strong></a>(self, num<font color="#909090">=None</font>, size<font color="#909090">=None</font>)</dt></dl> |
193 | 200 |
|
194 | 201 | <hr>
|
195 | 202 | Data and non-method functions defined here:<br>
|
|
199 | 206 |
|
200 | 207 | <dl><dt><strong>__module__</strong> = 'matlab'</dl>
|
201 | 208 |
|
202 |
| -<dl><dt><strong>active</strong> = None</dl> |
| 209 | +<dl><dt><strong>_activeQue</strong> = []</dl> |
| 210 | + |
| 211 | +<dl><dt><strong>defaultSize</strong> = (600, 400)</dl> |
203 | 212 |
|
204 | 213 | <dl><dt><strong>figs</strong> = {}</dl>
|
205 | 214 |
|
206 |
| -<dl><dt><strong>lastActive</strong> = None</dl> |
| 215 | +</td></tr></table> |
| 216 | +<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 217 | +<tr bgcolor="#ffc8d8"> |
| 218 | +<td colspan=3 valign=bottom> <br> |
| 219 | +<font color="#000000" face="helvetica, arial"><a name="ShowOn">class <strong>ShowOn</strong></a></font></td></tr> |
| 220 | + |
| 221 | +<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> |
| 222 | +<td colspan=2> </td></tr> |
| 223 | +<tr><td> </td> |
| 224 | +<td width="100%">Methods defined here:<br> |
| 225 | +<dl><dt><a name="ShowOn-__init__"><strong>__init__</strong></a>(self)</dt></dl> |
| 226 | + |
| 227 | +<dl><dt><a name="ShowOn-get"><strong>get</strong></a>(self)</dt></dl> |
| 228 | + |
| 229 | +<dl><dt><a name="ShowOn-set"><strong>set</strong></a>(self, on)</dt></dl> |
| 230 | + |
| 231 | +<hr> |
| 232 | +Data and non-method functions defined here:<br> |
| 233 | +<dl><dt><strong>_ShowOn__sharedState</strong> = {}</dl> |
| 234 | + |
| 235 | +<dl><dt><strong>__doc__</strong> = None</dl> |
| 236 | + |
| 237 | +<dl><dt><strong>__module__</strong> = 'matlab'</dl> |
| 238 | + |
| 239 | +<dl><dt><strong>show</strong> = 0</dl> |
207 | 240 |
|
208 | 241 | </td></tr></table></td></tr></table>
|
209 | 242 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
258 | 291 | <br>
|
259 | 292 | Return value is a length 2 tuple. The first element is a list of<br>
|
260 | 293 | y symbol lines. The second element is a list of error bar lines.</tt></dd></dl>
|
261 |
| - <dl><dt><a name="-figure"><strong>figure</strong></a>(num<font color="#909090">=1</font>)</dt><dd><tt>Create a new figure and return a handle to it<br> |
| 294 | + <dl><dt><a name="-figure"><strong>figure</strong></a>(num<font color="#909090">=1</font>, size<font color="#909090">=None</font>)</dt><dd><tt>Create a new figure and return a handle to it<br> |
262 | 295 | <br>
|
263 | 296 | If <a href="#-figure">figure</a>(num) already exists, make it active and return the<br>
|
264 |
| -handle to it.</tt></dd></dl> |
| 297 | +handle to it.<br> |
| 298 | + <br> |
| 299 | +optional argument size specifies the figure size as a (width,<br> |
| 300 | +height) tuple in pixels, eg<br> |
| 301 | + <br> |
| 302 | + <a href="#-figure">figure</a>(1, size=(500,400))</tt></dd></dl> |
265 | 303 | <dl><dt><a name="-fromstring"><strong>fromstring</strong></a>(...)</dt><dd><tt><a href="#-fromstring">fromstring</a>(string, typecode='l', count=-1) returns a new 1d array initialized from the raw binary data in string. If count is positive, the new array will have count elements, otherwise it's size is determined by the size of string.</tt></dd></dl>
|
266 | 304 | <dl><dt><a name="-gca"><strong>gca</strong></a>()</dt><dd><tt>Return the current axis instance. This can be used to control<br>
|
267 | 305 | axis properties either using set or the Axes methods.<br>
|
|
400 | 438 | <dl><dt><a name="-show"><strong>show</strong></a>()</dt><dd><tt>Show all the figures and enter the gtk mainloop<br>
|
401 | 439 | <br>
|
402 | 440 | This should be the last line of your script</tt></dd></dl>
|
403 |
| - <dl><dt><a name="-subplot"><strong>subplot</strong></a>(*args)</dt><dd><tt>Create a subplot command, creating axes with<br> |
| 441 | + <dl><dt><a name="-subplot"><strong>subplot</strong></a>(*args, **kwargs)</dt><dd><tt>Create a subplot command, creating axes with<br> |
404 | 442 | <br>
|
405 | 443 | <a href="#-subplot">subplot</a>(numRows, numCols, plotNum)<br>
|
406 | 444 | <br>
|
|
412 | 450 | <br>
|
413 | 451 | <a href="#-subplot">subplot</a>(211) # 2 rows, 1 column, first (upper) plot<br>
|
414 | 452 | <br>
|
415 |
| -<a href="#-subplot">subplot</a>(111) is the default axis</tt></dd></dl> |
| 453 | +<a href="#-subplot">subplot</a>(111) is the default axis<br> |
| 454 | + <br> |
| 455 | +The background color of the subplot can be specified via keyword<br> |
| 456 | +argument 'axisbg', which takes a color string or gdk.Color as value, as in<br> |
| 457 | + <br> |
| 458 | +<a href="#-subplot">subplot</a>(211, axisbg='y')</tt></dd></dl> |
416 | 459 | <dl><dt><a name="-take"><strong>take</strong></a>(...)</dt><dd><tt><a href="#-take">take</a>(a, indices, axis=0). Selects the elements in indices from array a along the given axis.</tt></dd></dl>
|
417 | 460 | <dl><dt><a name="-text"><strong>text</strong></a>(x, y, label, *args, **kwargs)</dt><dd><tt>Add text to axis at location x,y<br>
|
418 | 461 | <br>
|
|
539 | 582 | <strong>UnsignedInt32</strong> = 'u'<br>
|
540 | 583 | <strong>UnsignedInt8</strong> = 'b'<br>
|
541 | 584 | <strong>UnsignedInteger</strong> = 'u'<br>
|
542 |
| -<strong>__file__</strong> = './matlab.py'<br> |
| 585 | +<strong>__file__</strong> = './matlab.pyc'<br> |
543 | 586 | <strong>__name__</strong> = 'matlab'<br>
|
544 | 587 | <strong>absolute</strong> = <ufunc 'absolute'><br>
|
545 | 588 | <strong>add</strong> = <ufunc 'add'><br>
|
|
570 | 613 | <strong>greater</strong> = <ufunc 'greater'><br>
|
571 | 614 | <strong>greater_equal</strong> = <ufunc 'greater_equal'><br>
|
572 | 615 | <strong>hypot</strong> = <ufunc 'hypot'><br>
|
573 |
| -<strong>interactive</strong> = 0<br> |
574 | 616 | <strong>invert</strong> = <ufunc 'invert'><br>
|
575 | 617 | <strong>left_shift</strong> = <ufunc 'left_shift'><br>
|
576 | 618 | <strong>less</strong> = <ufunc 'less'><br>
|
|
0 commit comments