Due to the needs of Biji, I want to display some data in Graphs without using other tools, and the programming language is getting increasingly accustomed to using python, so I checked how to draw the xy axis chart using python.
You need to install the third-party library matplotlib. After downloading it on the official website, you need to install numpy first. After installing Numpy, you can say that some dependencies cannot be found =, =, which is really a pain point, if you search for matplotlib directly in ubuntu software center under ubuntu12.04, just install matplotlib ~
Open python on the terminal and enter:
[Python]
Import matplotlib. pyplot as plt
X = [1, 2, 4]
Y = [t ** 2 for t in x]
Plt. plot (x, y)
Plt. show ()
Import matplotlib. pyplot as plt
X = [1, 2, 4]
Y = [t ** 2 for t in x]
Plt. plot (x, y)
Plt. show ()
In this way, we have drawn a part of y = x * x ~
The effect is as follows: