Skip to main content

Home/ Groups/ Python Programming
1More

XGraph plot dot showing multiple edges - networkx-discuss | Google Groups - 0 views

  • For example edge labels can be added using matplotlib "text" objects like this: import networkx as nx import pylab as plot K=nx.XGraph(name="Konigsberg", multiedges=True, selfloops=False) K.add_edges_from([("A","B","Honey Bridge"),     ("A","B","Blacksmith's Bridge"),     ("A","C","Green Bridge"),     ("A","C","Connecting Bridge"),     ("A","D","Merchant's Bridge"),     ("C","D","High Bridge"),     ("B","D","Wooden Bridge")]) pos=nx.spring_layout(K) nx.draw_nx(K,pos) xa,ya=pos['A'] xb,yb=pos['B'] plot.text((xa+xb)/2,(ya+yb)/2,"Blacksmith's Bridge") plot.show() With a little work you can get the label rotated and exactly how you want it positioned.  You can also set the node positions directly in the "pos" dictionary above.
1More

WhatsNew083 - IPython - 0 views

  •  
    check integration with Leo and winpdb
1More

Nabble - Python Graph Theory sources - 0 views

  • For drawing you can use pygraphviz (also available at networkx.lanl.gov) or the built-in drawing tools.
1More

PyNGL (pronounced "pingle") is a Python - 0 views

  • PyNGL (pronounced "pingle") is a Python language module used to visualize scientific data, with an emphasis on high quality 2D visualizations. A working knowledge of Python is assumed.
2More

difference between classmethod and staticmethod in Python2.2 - 0 views

  • Use a staticmethod when you know which class you want to access as you are writing the code.
  • Use a classmethod if you have a class hierarchy and want the method to operate on the actual class used in the call rather than the class where it was defined:
1More

Py++ introduction - 0 views

  • What is Py++? Definition: Py++ is an object-oriented framework for creating a code generator for Boost.Python library. Py++ uses few different programming paradigms to help you to expose C++ declarations to Python. This code generator will not stand on your way. It will guide you through the whole process. It will raise warnings in the case you are doing something wrong with a link to the explanation. And the most important it will save your time - you will not have to update code generator script every time source code is changed.
1More

py vs pyc - 0 views

  • When running "python test.py" the interpreter will first precompile the test.py source file, and then execute it. When running "python test.pyc", the interpreter will go straight to the execution of the script.
1More

SourceForge.net: Leo: a programmer's editor & more - 0 views

  •  
    pure Python editor integrated with iPython.
1More

A Python interface to the cURL library - 0 views

  • The pycurl package is a Python interface to libcurl (http://curl.haxx.se/libcurl/). pycurl has been successfully built and tested with Python versions from 2.2 to the current 2.5.x releases.
1More

pyobfuscate - 0 views

  • pyobfuscate is a source code obfuscator: It makes Python source code hard to read for humans, while still being executable for the Python interpreter. For more information, see the README.
1More

pydot - Google Code - 0 views

  •  
    most of this seems built into networkx
1More

g :: Dynamic Function Signatures - 0 views

  •  
    explains *args and **kwargs
« First ‹ Previous 281 - 300 of 350 Next › Last »
Showing 20 items per page