当前位置:网站首页>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
边栏推荐
- MySQL -- basic concept of database
- 【Golang | gRPC】使用gRPC实现简单远程调用
- Yingguang single chip microcomputer pms150/pmc150/pms150c consumer single chip microcomputer
- 自定义一个loading指令
- Vi/vim delete: one line, one character, word, the first character of each line command
- Mysql 备份的三种方式
- Hbuilderx runs to the mobile phone or simulator and prompts that the device is not found
- 辉芒微IO单片机FT60F010A-URT
- 使用Zadig从0到1搭建持续交付平台
- 微信小程序视频分享平台系统毕业设计毕设(2)小程序功能
猜你喜欢

MySQL --- 数据库的基本概念
![[games101] operation 4 B é zier curve](/img/57/e7a9191b959cb1177b7bd1a439df2a.png)
[games101] operation 4 B é zier curve

如何开启IDEA的Run Dashboard功能

【Golang | gRPC】使用openssl生成证书

巴比特 | 元宇宙每日必读:一千块就能买一个虚拟主播?这是小企业的直播福音还是在“割韭菜”?...

能解决 80% 故障的排查思路

Mysql - opérations de base de la base de données

Enter a valid user name and password in the Microsoft LDAP configuration page, and enter a valid user name in the Microsoft LDAP configuration page

1288_ Implementation analysis of vtask resume() interface and interrupt Security version interface in FreeRTOS

微信小程序视频分享平台系统毕业设计毕设(6)开题答辩PPT
随机推荐
微信小程序视频分享平台系统毕业设计毕设(5)任务书
辉芒微IO单片机FT60F010A-URT
怎么可以省去大量的switch语句,省去switch语句
Viewing technological changes through Huawei Corps (VI): smart highway
My creation anniversary
Pms132b single chip microcomputer TWS digital tube Bluetooth charging chamber program development
一个优秀程序员可抵五个普通程序员!
把xshell連接服務器關掉,運行的jar包就自動停止的解决方案
切换变换的时候记得使用三元表达式
Typescript
使用NPOI导出Excel文件
What should we pay attention to in the development process of Yingguang single chip microcomputer?
Deep understanding of ThreadLocal
基数排序的简单理解
Redisson high performance redis distributed lock source code analysis
Mysql 备份的三种方式
Hbuilderx runs to the mobile phone or simulator and prompts that the device is not found
MySQL --- 数据库的基本概念
Microsoft LDAP 配置页中输入有效的用户名及密码,microsoft ldap 配置页中输入有效的用户名
Huimang micro IO MCU ft60f011a-rb