当前位置:网站首页>Installation tutorial and simple call of Matplotlib
Installation tutorial and simple call of Matplotlib
2022-07-02 18:11:00 【Full stack programmer webmaster】
Hello everyone , I meet you again , I'm your friend, Quan Jun .
Catalog
1.matplotlib The download
Our normal download method is to enter :pip install matplotlib, So you can download it from the official , But the download speed is very slow , We are The most detailed Anaconda Installers Installation 【numpy,jupyter】( chart + writing ) This blog once wrote , Can be in pip install matplotlib Add after -i https://pypi.tuna.tsinghua.edu.cn/simple, This is to download from the address of Tsinghua , Download much faster , If we add a new module every time we download it -i https://pypi.tuna.tsinghua.edu.cn/simple, It's really a troublesome big project , So is there a way to do it once and for all ? That is, how to specify the download from Tsinghua University ?
We find C disc , Find our users , Click in user name , And then create a pip Folder :
Then open the downloaded compressed package , find pip.ini file Download zip : link :https://pan.baidu.com/s/1y32LXxZ9Yx8GOn6YYlvwfw Extraction code :6sl5
Drag this file into the newly created pip In the folder :
such , We will configure the download address , We can type in pip install matplotlib, The default installed website is the website of Tsinghua University , There is no need to write -i https://pypi.tuna.tsinghua.edu.cn/simple
️ notes : If you have followed the blogger according to the blog : The most detailed Anaconda Installers Installation 【numpy,jupyter】( chart + writing ) Installed Anaconda Installers, So before you enter pip install matplotlib after , Will be displayed :
This is because you have already installed matplotlib, There is no need to repeat the installation , Can be used directly
After installed , We can log in to our jupyter To run :
2. The roses
Our data :
link :https://pan.baidu.com/s/1VaPHJa6YttfnedO0ewDRtQ Extraction code :5u92
After downloading the data , Move it into our folder :( Download directly to the desktop , Find the location of the folder , Then drag it in ), It is suggested to compare this picture with jupyter Created on Python3 The code is in the same folder , In this way, you can operate according to the blogger's figure below , Otherwise, you need to find the path of the image file by yourself .
We call our imread Methods to check the flower before us .
It can be seen that , This is a three-dimensional array , We can also use shape Or is it ndim To view the :
Why are there three dimensions ? This is because a picture has : Height , Width , Color Where is calling shape The three parameters displayed :(1200, 1920, 4) Represent the : Height pixel , Width pixels , Color channel .
Now? , Let's call imshow() Function to display this flower :
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/148246.html Link to the original text :https://javaforall.cn
边栏推荐
- Vi/vim delete: one line, one character, word, the first character of each line command
- 567.字符串中的排列
- 微信小程序视频分享平台系统毕业设计毕设(6)开题答辩PPT
- Solution pour arrêter automatiquement les paquets Jar en cours d'exécution en éteignant le serveur de connexion xshell
- Tips for self defined packaging of Yingguang SCM 003 burner
- Pychar modify pep8 e501 line too long > 0 characters
- Pfc232-sop8/14/16 should be wide-ranging and can be tape programmed with burning program
- Use Zadig to build a continuous delivery platform from 0 to 1
- em120.gige. h
- Simple understanding of cardinality sorting
猜你喜欢

515. Find the maximum value in each tree row

pycharm 修改 pep8 E501 line too long > 0 characters

515. 在每个树行中找最大值

求求你们,别再刷 Star 了!这跟“爱国”没关系!

MySQL --- 数据库的基本概念

Outsourcing for five years, abandoned

MySQL进阶-事务及索引

Deep understanding of ThreadLocal

Embedded ~ introduction

Pfc232-sop8/14/16 should be wide-ranging and can be tape programmed with burning program
随机推荐
Songhan sn8p2511 sop8 single chip microcomputer can be used for burning, providing single chip microcomputer scheme development and single chip microcomputer decryption
win10 kms activator
Asemi rectifier bridge umb10f parameters, umb10f specifications, umb10f package
Use Zadig to build a continuous delivery platform from 0 to 1
详解Kubernetes网络模型
pycharm 修改 pep8 E501 line too long > 0 characters
C # detect whether the picture is rotated and modified to the true rotation
Embedded development board ~ description
微信核酸检测预约小程序系统毕业设计毕设(1)开发概要
把xshell连接服务器关掉,运行的jar包就自动停止的解决方案
Solution pour arrêter automatiquement les paquets Jar en cours d'exécution en éteignant le serveur de connexion xshell
567.字符串中的排列
使用NPOI导出Excel文件
vimium映射鍵
Remember to use ternary expressions when switching transformations
ORA-19838 -- 恢复控制文件到备库
D构造函数问题
辉芒微IO单片机FT60F11F-MRB
Two pieces of nature a day! Duan Fengfeng, an alumnus of the University of science and technology of China, was the third Chinese winner of the belby medal
Hbuilderx runs to the mobile phone or simulator and prompts that the device is not found