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 :: django refresh form db 
Python :: selenium page down key python 
Python :: pytesseract pdf to text 
Python :: name exit not defined python 
Python :: jupyter notebook show more rows 
Python :: tkinter labelframe 
Python :: how to maker loops coun t in second in pytho 
Python :: find location of library python linux 
Python :: python remove read only file 
Python :: how to write to an output file in pytion 
Python :: Write a Python program to append text to a file and display the text. 
Python :: pandas multiple string contains 
Python :: cv2 image object to base64 string 
Python :: python get last modification time of file 
Python :: how to extract month from date in python 
Python :: xpath beautifulsoup 
Python :: pandas plot disable legend 
Python :: how to delete print statement from console pythonn 
Python :: Extract categorical data features 
Python :: pandas not is na 
Python :: pygame keyboard input 
Python :: python get args 
Python :: swipe pyautogui 
Python :: python - exclude rowin data frame based on value 
Python :: remove grid in plt 
Python :: python read yaml 
Python :: python loop every month datetime 
Python :: convert all values in array into float 
Python :: opencv trim video duration 
Python :: print on two digit python format 
ADD CONTENT
Topic
Content
Source link
Name
2+8 =