URL
https://opencores.org/ocsvn/nocmodel/nocmodel/trunk
Subversion Repositories nocmodel
Compare Revisions
- This comparison shows the changes necessary to convert path
/nocmodel/trunk/nocmodel
- from Rev 2 to Rev 3
- ↔ Reverse comparison
Rev 2 → Rev 3
/noc_guilib.py
40,8 → 40,13
NoCmodel objects. |
|
""" |
try: |
import matplotlib.pyplot as plt |
has_matplotlib = True |
except: |
print("Matplotlib package not found. Drawing functions will not work.") |
has_matplotlib = False |
|
import matplotlib.pyplot as plt |
import networkx as nx |
|
from noc_base import * |
58,6 → 63,10
* nodepos: Optional dictionary where keys are router's indexes and values |
are tuples with x and y positions. |
""" |
if not has_matplotlib: |
print("Function not available") |
return None |
|
# node positions |
if rectangular: |
if nodepos == None: |