Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

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 )
Comment

PREVIOUS NEXT
Code Example
Python :: python projects 
Python :: python check if string contains one of characters list 
Python :: networkx node attribute from a dataframe 
Python :: df iloc 
Python :: matplotlib tick label position left and right x axis 
Python :: search for list of strings in pandas column 
Python :: make virtual environment python 
Python :: python string replace 
Python :: fillna string 
Python :: to get the number of unique values for each column 
Python :: var colors python 
Python :: graph implementation in python 
Python :: how to count the number of guesses in python 
Python :: Total processing python 
Python :: Maximize Difference codechef solution 
Python :: string format method python 
Python :: NumPy roll Example 
Python :: python collections to dictionary 
Python :: Generate bootstrap sample 
Python :: python get pattern from string 
Python :: return foreignkey attribute django rest 
Python :: pandas assign multiple columns at once 
Python :: cv2 videowriter python not working 
Python :: python list function 
Python :: how to use for in python 
Python :: numpy roll 
Python :: Adding a new column in pandas dataframe from another dataframe with different index 
Python :: remove all consecutive duplicates from the string 
Python :: A binary gap within a positive integer N is any maximal sequence of consecutive zeros that is surrounded by ones at both ends in the binary representation of N. 
Python :: how to reverse list python 
ADD CONTENT
Topic
Content
Source link
Name
9+7 =