Horje
plot circles in matplotlib Code Example
plot circles in matplotlib
from matplotlib.patches import Circle  # $matplotlib/patches.py

def circle( xy, radius, color="lightsteelblue", facecolor="none", alpha=1, ax=None ):
    """ add a circle to ax= or current axes
    """
        # from .../pylab_examples/ellipse_demo.py
    e = Circle( xy=xy, radius=radius )
    if ax is None:
        ax = pl.gca()  # ax = subplot( 1,1,1 )
    ax.add_artist(e)
    e.set_clip_box(ax.bbox)
    e.set_edgecolor( color )
    e.set_facecolor( facecolor )  # "none" not None
    e.set_alpha( alpha )




Python

Related
1024x768 Code Example 1024x768 Code Example
SQLAlchemy Users to JSON code snippet Code Example SQLAlchemy Users to JSON code snippet Code Example
object deconstruction python Code Example object deconstruction python Code Example
: UserWarning: Matplotlib is currently using module://matplotlib_inline.backend_inline, which is a non-GUI backend, Code Example : UserWarning: Matplotlib is currently using module://matplotlib_inline.backend_inline, which is a non-GUI backend, Code Example
Python[17586:513448] ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to Code Example Python[17586:513448] ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8