当前位置:网站首页>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
边栏推荐
- 1288_ Implementation analysis of vtask resume() interface and interrupt Security version interface in FreeRTOS
- Aptos教程-参与官方激励测试网(AIT2 激励测试网)
- Design of the multi live architecture in different places of the king glory mall
- Nvidia 显卡 Failed to initialize NVML Driver/library version mismatch 错误解决方案
- 567.字符串中的排列
- 515. 在每个树行中找最大值
- 微信核酸检测预约小程序系统毕业设计毕设(5)任务书
- Detailed explanation of map set
- What should we pay attention to in the development process of Yingguang single chip microcomputer?
- wait_for_gap -- 从主库归档备库恢复归档
猜你喜欢
随机推荐
Pms132b single chip microcomputer TWS digital tube Bluetooth charging chamber program development
应广单片机开发调试应注意的问题
A4988与42步进电机
Babbitt | metauniverse daily must read: can you buy a virtual anchor for 1000 yuan? Is this the live gospel of small businesses or "cutting leeks"
android之循环定时器实现,实现定Android时缓存清理
Hbuilderx runs to the mobile phone or simulator and prompts that the device is not found
怎么可以省去大量的switch语句,省去switch语句
C# 检测图片是否被旋转并修改到正真的旋转
Easyai notes - deep learning
aloam 代码阅读与总结
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
王者荣耀商城异地多活架构设计
MySQL -- basic operation of database
Use Zadig to build a continuous delivery platform from 0 to 1
Customize a loading instruction
应广单片机003烧录器自定义封装使用技巧
vimium映射键
使用Zadig从0到1搭建持续交付平台
切换变换的时候记得使用三元表达式
一个优秀程序员可抵五个普通程序员!