当前位置:网站首页>Use Matplotlib to draw the first figure
Use Matplotlib to draw the first figure
2022-06-21 14:26:00 【Record brother】
The following are used by bloggers matplotlib Learn to draw a picture :
import matplotlib.pyplot as plt
x = [1, 2, 3, 4] # prepare data
y = [10, 20, 25, 30] # prepare data
flg = plt.figure() # create plot
ax = flg.add_subplot(111) # plot
ax.plot(x, y, color='lightblue', linewidth=3) # plot and customize plot
ax.scatter([2, 4, 6],[5, 15, 25], color='darkgreen', marker='^') # plot with scatter
ax.set_xlim(1, 6.5) # limit the x axis
plt.show() # show plot

边栏推荐
- Chapter 2 - physical layer (I)
- . bash_ profile
- C2 hiding of traffic encryption
- T32 custom menu bar
- Reverse generate the corresponding DTD constraint according to the XML file
- SSH based command operation
- "My" C code specification
- Usage of SED (replacement, deletion of text content, etc.)
- Web3.js connection to metamask wallet transfer
- Cool background shadow effect [second with layered feeling] [picture hover style]
猜你喜欢

Detailed explanation of dynamic planning

Nmap scan port tool

A blazor webassembly application that can automatically generate page components based on objects or types

Promotion guide for large enterprises: material preparation, PPT writing and on-site defense

The code remotely calls aria2 to download URL resources or BT seeds

Automatic operation and maintenance 4 - variables and encryption in ansible

Make word2vec for Bert model

MySQL - index

Lamp architecture 4 -- MySQL source code compilation and use

2021 the latest selenium truly bypasses webdriver detection
随机推荐
Native JS implements login function, and local cookies save login information -- [call Netease cloud API interface] - super detailed explanation
What fun things can a desk service do
Automatic operation and maintenance 4 - variables and encryption in ansible
Azure applicationinsights integrated in blazor
Add SSL security certificate to web site
Qt-4-common classes and components
kernel GDB
Mr. Ali taught you how to use JMeter for pressure test (detailed drawing)
The whole process of Netease cloud music API installation and deployment [details of local running projects and remote deployment]
C2 hiding of traffic encryption
Teach you how to design interface automation test cases: extract interface information and analyze it
Design interface automation test cases by hand: establish database instances and test case tables
Detailed explanation of dictionary source code in C #
Usage of SED (replacement, deletion of text content, etc.)
Tomorrow's interview, I can't sleep in the middle of the night to review the bottom implementation of STL
. Net synchronization mechanism and application examples
How does JMeter implement interface association?
Reptile Foundation_ urllib
Read distributed consistency protocols 2pc and 3pc
Lamp architecture 4 -- MySQL source code compilation and use