[Python data visualization] Matplotlib learning notes (1)
Introduction: Matplotlib is a Python 2D drawing library, which generates publishing quality graphics in various hard copy formats and cross platform interactive environments. With Matplotlib, developers can generate graphs, histograms, power ...
Posted by jwilley on Sat, 22 Feb 2020 06:33:43 -0800
The process of mapping coordinate points (in meters) in 3D world to 2D image plane (in pixels) can be described by a geometric model. There are many kinds of models, the simplest of which is called pinhole model.
In order to get a good imaging effect, we add a lens in front of the camera. Th ...
Posted by guido88 on Sun, 16 Feb 2020 05:10:09 -0800
1.1 personal records
① Using Python 3.7
② The editor is pycharm (I don't think it's easy to use, many libraries will fail directly, and print can't save - complaints of lazy cancer), the solution. For example, scipy, please download pip install scipy in cmd.
imshow () does not show the problem of imag ...
Posted by David Rech on Sat, 08 Feb 2020 09:07:01 -0800
Traditional machine learning has a lot of algorithms. The KNN that I sorted out in my last article is a kind of algorithm. The decision tree that I will talk about in this article is also a very important algorithm. Of course, it should be explained in advance that these algorithms also have a lot of sm ...
Posted by iantresman on Fri, 07 Feb 2020 06:46:08 -0800
System: windows 10
Tools: python 3.7, pycharm, anaconda
Problem: numpy cannot import
First, check where the environment corresponding to your pycharm s interpreter is and whether there is any numpy package installed in it. Here I am in the base environment.
In the anaconda prompt window, enter ...
Posted by enoyhs on Sun, 02 Feb 2020 22:45:58 -0800
Given three ascending integer arrays a[l], b[m], c[n], please find an element in each of the three arrays to minimize the distance between the triples. The definition of triple distance is: suppose a[i], b[j], c[k] is a triple, then the distance is:
Distance=max(| a[i] - b[j] |，| a[ ...
Posted by metkat on Wed, 29 Jan 2020 05:06:26 -0800
What objects in Python support for loops (or traversal)?
Answer: iteratable objects, or objects that implement the iterator protocol, support traversal or looping. (e.g. list, tuple, dictionary, file). The feature is the internal implementation of the \. Example:
f = open('hello.txt', en ...
Posted by Skull on Sun, 26 Jan 2020 21:14:00 -0800
The first reptile in life (python3)
This blog is used to record the first gadget written by Xiaobai in python. It takes more than a day. In addition, I am still learning. This blog is my opinion and notes. There will be many mistakes and shortcomings. I hope you can give me some advice. This ...
Posted by johnnyk on Fri, 24 Jan 2020 02:34:11 -0800
1, Write in front
As a test, sometimes it is often necessary to record their own operation on the screen, so as to facilitate the follow-up development and positioning of students. In the past, screen to GIF was used to record the screen and make dynamic pictures. Occasionally, python can also be realized. Then hurry to learn.
2, Effect display ...
Posted by Monkee Of Evil on Fri, 17 Jan 2020 07:09:22 -0800
01 while loop
while infinite loop
while True: # Dead cycle
print('Incantations of the Great Mercy')
print('Pick me up please,you skilled driver!')
while Structure of the cycle:
# How to termin ...
Posted by iamtheironman on Thu, 16 Jan 2020 03:38:19 -0800