python beginner memo (9.1)

I'm a python beginner. This is a memo for myself

infinite loop

while True:
    print("infinite loop")

Plot (straight line)

plt.plot(data,"r--") #(y data,color) r--Red, dotted line
plt.plot(a,b,c) #(x,y,color)
plt.show()

Other

plt.bar() #bar graph
plt.barh() #Bar chart
plt.scatter() #Scatter plot
plt.pie(data,explode=ex,labels=labels ,autopct=%1.1f%%,counterclock=False) #pie chart
#Data, make it stand out,label,Number of decimal places displayed, 1.2 to the second decimal place,False to place clockwise
#colors=You can also specify the color with
plt.hist() #histogram
plt.boxplot() #Box plot,Multiple drawings are possible by using tuples as arguments

Creating multiple graphs

#First
a=fig.add_subplot(1,2,1) #(Number of lines,Number of columns,number(From the left))






Recommended Posts

python beginner memo (9.2-10)
python beginner memo (9.1)
Python beginner memo (2)
Python memo
python memo
Python memo
python memo
Python memo
Python memo
Python memo
Beginner ABC154 (Python)
[Python] Memo dictionary
Beginner ABC156 (Python)
Python beginner notes
[Beginner] Python array
★ Memo ★ Python Iroha
Beginner ABC155 (Python)
[Python] EDA memo
Python 3 operator memo
[Beginner] Python functions
Beginner ABC157 (Python)
PyQ ~ Python Beginner ~
[My memo] python
Python3 metaclass memo
[Python] Basemap memo
Python beginner Zundokokiyoshi
[Python] Numpy memo
Python beginner Atcoder memo @ KEYENCE 2020, ABC problem
[Python beginner memo] Python character string, path operation
My python environment memo
Python module (Python learning memo ④)
Visualization memo by Python
Python test package memo
[Python] Memo about functions
python regular expression memo
Binary search (python2.7) memo
[My memo] python -v / python -V
Python3 List / dictionary memo
[Memo] Python3 list sort
Python Tips (my memo)
[Python] Memo about errors
DynamoDB Script Memo (Python)
Python basic memo --Part 2
python recipe book Memo
Basic Python command memo
Python OpenCV tutorial memo
Python basic grammar memo
TensorFlow API memo (Python)
python useful memo links
Python decorator operation memo
Python basic memo --Part 1
Effective Python Memo Item 3
Divisor enumeration Python memo
A memo for creating a python environment by a beginner
Python memo (for myself): Array
Python exception handling (Python learning memo ⑥)
Python execution time measurement memo
python super beginner tries scraping
Python
Twitter graphing memo with Python
[Line / Python] Beacon implementation memo