Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

Annotation graphique python

%matplotlib inline

fig, ax = plt.subplots()

x = np.linspace(0, 20, 1000)
ax.plot(x, np.cos(x))
ax.axis('equal')

ax.annotate('local maximum', xy=(6.28, 1), xytext=(10, 4),
            arrowprops=dict(facecolor='black', shrink=0.05))

ax.annotate('local minimum', xy=(5 * np.pi, -1), xytext=(2, -6),
            arrowprops=dict(arrowstyle="->",
                            connectionstyle="angle3,angleA=0,angleB=-90"));
Comment

PREVIOUS NEXT
Code Example
Python :: python new set 
Python :: python ordereddict initialization 
Python :: python evenly spaced integers 
Python :: grab element based on text from html page in python 
Python :: docker python run subprocess python run docker interactively subprocess 
Python :: Python NumPy atleast_3d Function Syntax 
Python :: Python NumPy rollaxis Function Syntax 
Python :: seasonal plot python time series 
Python :: text xml 
Python :: how to extract a list of values from numpy array using index list 
Python :: Python NumPy asmatrix Function Example 
Python :: Python NumPy block Function Example by using np.eye function 
Python :: seaborn log heatmap 
Python :: Python NumPy dsplit Function Syntax 
Python :: pytorch Jaccard Index 
Python :: Python __le__ magic method 
Python :: function nbYear(p0, percent, aug, p) { let n = 0; while(p0 < p) { p0 = p0 + Math.round(p0 * (percent/100)) + aug; n ++; } return n; } 
Python :: visualize 3 columns of pandas 
Python :: django admin auto update date field 
Python :: python override inherited method data model constructor 
Python :: penggunaan clear di python 
Python :: python code to java code converter 
Python :: How to use a <ComboboxSelected virtual event with tkinter 
Python :: dnpy notify 
Python :: installing blacksheep 
Python :: How to setup Conda environment and package access extension from within Jupyter 
Python :: Django, limit queryset without slicing 
Python :: python go back one using abspath 
Python :: ring open another file 
Python :: ring execute the program line by line 
ADD CONTENT
Topic
Content
Source link
Name
2+6 =