URL
https://opencores.org/ocsvn/nocmodel/nocmodel/trunk
Subversion Repositories nocmodel
[/] [nocmodel/] [trunk/] [doc/] [nocmodel.noc_guilib.html] - Rev 2
Compare with Previous | Blame | View Log
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: module nocmodel.noc_guilib</title> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> <tr bgcolor="#7799ee"> <td valign=bottom> <br> <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 ><td align=right valign=bottom ><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> <p><tt>================<br> NoCmodel Graphic utilities<br> ================<br> <br> This module declares functions to draw graphical representations of <br> NoCmodel objects.</tt></p> <p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#aa55cc"> <td colspan=3 valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr> <tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td> <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="networkx.html">networkx</a><br> </td><td width="25%" valign=top><a href="matplotlib.pyplot.html">matplotlib.pyplot</a><br> </td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#eeaa77"> <td colspan=3 valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr> <tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td> <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> <br> Arguments:<br> * noc: Model to draw<br> * rectangular: If True assumes rectangular layout, with routers <br> having coord_x and coord_y attributes. If false, expect router's <br> positions in nodepos argument<br> * nodepos: Optional dictionary where keys are router's indexes and values <br> are tuples with x and y positions.</tt></dd></dl> </td></tr></table> </body></html>