| 1 |
2 |
dargor |
|
| 2 |
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
| 3 |
|
|
<html><head><title>Python: module nocmodel.noc_guilib</title>
|
| 4 |
|
|
</head><body bgcolor="#f0f0f8">
|
| 5 |
|
|
|
| 6 |
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
| 7 |
|
|
<tr bgcolor="#7799ee">
|
| 8 |
|
|
<td valign=bottom> <br>
|
| 9 |
|
|
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="nocmodel.html"><font color="#ffffff">nocmodel</font></a>.noc_guilib</strong></big></big></font></td
|
| 10 |
|
|
><td align=right valign=bottom
|
| 11 |
|
|
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/oscard/Documentos/proyectos/nocmodel-0.1/nocmodel/noc_guilib.py">/home/oscard/Documentos/proyectos/nocmodel-0.1/nocmodel/noc_guilib.py</a></font></td></tr></table>
|
| 12 |
|
|
<p><tt>================<br>
|
| 13 |
|
|
NoCmodel Graphic utilities<br>
|
| 14 |
|
|
================<br>
|
| 15 |
|
|
<br>
|
| 16 |
|
|
This module declares functions to draw graphical representations of <br>
|
| 17 |
|
|
NoCmodel objects.</tt></p>
|
| 18 |
|
|
<p>
|
| 19 |
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
| 20 |
|
|
<tr bgcolor="#aa55cc">
|
| 21 |
|
|
<td colspan=3 valign=bottom> <br>
|
| 22 |
|
|
<font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
| 23 |
|
|
|
| 24 |
|
|
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
| 25 |
|
|
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="networkx.html">networkx</a><br>
|
| 26 |
|
|
</td><td width="25%" valign=top><a href="matplotlib.pyplot.html">matplotlib.pyplot</a><br>
|
| 27 |
|
|
</td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
|
| 28 |
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
| 29 |
|
|
<tr bgcolor="#eeaa77">
|
| 30 |
|
|
<td colspan=3 valign=bottom> <br>
|
| 31 |
|
|
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
| 32 |
|
|
|
| 33 |
|
|
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
|
| 34 |
|
|
<td width="100%"><dl><dt><a name="-draw_noc"><strong>draw_noc</strong></a>(noc, rectangular<font color="#909090">=True</font>, nodepos<font color="#909090">=None</font>)</dt><dd><tt>Draw a representation of a NoC<br>
|
| 35 |
|
|
<br>
|
| 36 |
|
|
Arguments:<br>
|
| 37 |
|
|
* noc: Model to draw<br>
|
| 38 |
|
|
* rectangular: If True assumes rectangular layout, with routers <br>
|
| 39 |
|
|
having coord_x and coord_y attributes. If false, expect router's <br>
|
| 40 |
|
|
positions in nodepos argument<br>
|
| 41 |
|
|
* nodepos: Optional dictionary where keys are router's indexes and values <br>
|
| 42 |
|
|
are tuples with x and y positions.</tt></dd></dl>
|
| 43 |
|
|
</td></tr></table>
|
| 44 |
|
|
</body></html>
|