python绘制三维图

python绘制三维散点图 和二维的区别主要在于要从mpl_toolkits.mplot3d中载入Axes3D,并用Axes3D来绘制图形 import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D data=np.random.randint(0,27,(9,3)) x=data[:,0] y=data[:,1] z=data[:,2] fig=plt.figure() ax=Axes3D(fig) ax.s 阅读详情

语法

plt.figure()

figure(num=None, figsize=None, dpi=None, facecolor=None, edgecolor=None, frameon=True)

  • num:图像编号或名称,数字为编号 ,字符串为名称
    figsize:指定figure的宽和高,单位为英寸;
    dpi参数指定绘图对象的分辨率,即每英寸多少个像素,缺省值为80 1英寸等于2.5cm,A4纸是 21*30cm的纸张
    facecolor:背景颜色
    edgecolor:边框颜色
    frameon:是否显示边框

subplot创建单个子图

subplot 可以规划figure划分为n个子图,但是每条subplot命令只会创建一个子图

subplot(nrows,ncols,sharex,sharey,subplot_kw,**fig_kw)

  • nrows:subplot的行数
  • ncols:subplot的列数
  • sharex:所有subplot应该使用相同的x轴刻度(调节xlim将会影响所有的subplot)
  • sharey:所有subplot应该使用相同的y轴刻度(调节ylim将会影响所有的subplot)
  • subplot_kw:用于创建各个subplot的关键字字典
    **fig_kw:创建figure时的其他关键字,如 plt.subplots(2,2,figsize=(8,6))
import matplotlib.pyplot as plt
import numpy as np

x=np.arange(0,100)
# 作图1
plt.subplot(221)
plt.plot(x,x)


# 作图2
plt.subplot(222)
plt.plot(x,-x)

# 作图3
plt.subplot(223)
plt.plot(x,x**2)

# 作图4
plt.subplot(224)
plt.plot(x,np.log(x))
plt.show()

在这里插入图片描述

subplots

subplots的参数与subplot的相似

import numpy as np
import matplotlib.pyplot

x=np.arange(0,100)
# 划分子图
flg,axes=plt.subplots(2,2)
ax1=axes[0,0]
ax2=axes[0,1]
ax3=axes[1,0]
ax4=axes[1,1]

ax1.plot(x,x)
ax2.plot(x,-x)
ax3.plot(x,x**2)
ax3.grid(color='r',linestyle='--',linewidth=1,alpha=0.3)
ax4.plot(x,np.log(x))
plt.show()

在这里插入图片描述

add_subplots

add_subplots的参数与subplots相似

import numpy as np  
import matplotlib.pyplot as plt  
x = np.arange(0, 100)  
#新建figure对象
fig=plt.figure()
#新建子图1
ax1=fig.add_subplot(2,2,1)      
ax1.plot(x, x) 
#新建子图3
ax3=fig.add_subplot(2,2,3)
ax3.plot(x, x ** 2)
ax3.grid(color='r', linestyle='--', linewidth=1,alpha=0.3)
#新建子图4
ax4=fig.add_subplot(2,2,4)
ax4.plot(x, np.log(x))  
plt.show()

在这里插入图片描述

add_axes

用于新增子区域,该区域可以坐落在figure内的任意位置,而且可以设置大小

import numpy as np
import matplotlib.pyplot as plt

# 新建figure
fig=plt.figure()
# 定义数据
x=[1,2,3,4,5,6,7]
y=[1,3,5,1,2,4,10]

# 新建区域ax1
# figure的百分比,从figure 10%开始绘制,宽高是figure的80%
left,botton,width,height=0.1,0.1,0.8,0.8
ax1=fig.add_axes([left,botton,width,height])
ax1.plot(x,y,'r')
ax1.set_title('area1')

# 新增区域2,区域2嵌套在区域1内
left,botton,width,height=0.2,0.6,0.25,0.25
ax2=fig.add_axes([left,botton,width,height])
ax2.plot(x,y,'b')
ax2.set_title('area2')
plt.show()

在这里插入图片描述

绘制空白的三维图形

# 绘制空白的三维图形
import matplotlib.pyplot as plt

fig=plt.figure()
ax=fig.add_subplot(111,projection='3d')
# 添加信息
plt.xlabel('x')
plt.ylabel('y')
plt.title('A blank 3D anxis')
# 保存
# plt.savefig(path,dpi=500)

在这里插入图片描述

散点图绘制

散点图的绘制主要用到 ax.scatter(xs,ys,zs,s=20,c=None,depthshade=True,*args,*kwargs)

  • xs,ys,zs:表示输入数据
  • s:scatter点的尺寸
  • c:颜色,比如 c=‘r’ 表示红色
  • depthshase:透明化,True表示透明,默认为True
  • *args为扩展变量,如maker=‘o’,则scatter的结果为 o 形状
import matplotlib.pyplot as plt
import numpy as np

def randrange(n,vmin,vmax):
    return (vmax-vmin)*np.random.rand(n)+vmin

fig=plt.figure()
ax=fig.add_subplot(111,projection='3d')

n=100
# for c,m,zlow,zhigh in [('r','o',-50,-25)]:
for c,m,zlow,zhigh in [('r','o',-50,-25),('b','^',-30,-5)]:
    xs=randrange(n,23,32)
    ys=randrange(n,1,100)
    zs=randrange(n,zlow,zhigh)
    ax.scatter(xs,ys,zs,c=c,marker=m)

ax.set_xlabel('x label')
ax.set_ylabel('y label')
ax.set_zlabel('z label')

plt.show()

在这里插入图片描述

线框图

ax.plot_wireframe(x,y,z,*args,**kwargs)

  • x,y,z:输入数据
  • rstride:行步长
  • cstride:列步长
  • rcount:行数上限
  • ccount:列数上限
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import axes3d
fig=plt.figure()
ax=fig.add_subplot(111,projection='3d')
x,y,z=axes3d.get_test_data(0.05)
ax.plot_wireframe(x,y,z,rstride=10,cstride=10)
plt.show()

在这里插入图片描述

表面图

ax.plot_surface(x,y,z,*args,**kwargs)

  • x,y,z:数据
  • color:颜色
  • cmap:图层
import matplotlib.pyplot as plt
from matplotlib import cm
from matplotlib.ticker import LinearLocator,FormatStrFormatter
import numpy as np

fig=plt.figure()
ax=fig.gca(projection='3d')

x=np.arange(-5,5,0.25)
y=np.arange(-5,5,0.25)
x,y=np.meshgrid(x,y)
r=np.sqrt(x**2+y**2)
z=np.sin(r)

surf=ax.plot_surface(x,y,z,cmap=cm.coolwarm,linewidth=0,antialiased=False)

ax.set_zlim(-1.01,1.01)
ax.zaxis.set_major_locator(LinearLocator(10))
ax.zaxis.set_major_formatter(FormatStrFormatter('%.02f'))

fig.colorbar(surf,shrink=0.5,aspect=5)

plt.show()

在这里插入图片描述
点击参考链接1
点击参考链接2

[Python] 散点图(二维散点图、三维散点图、散点图矩阵) python 二维散点图、气泡图、三维散点图、二维三点矩阵 【案例+python代码】 阅读详情

相关推荐

Python Matplotlib实现三维数据的散点图绘制

本文采用Python2.7+Matplotlib在PyCharm平台实现实现三维数据的散点图绘制

ChenHaoUESTC的博客 2万+

python制作三维散点图

关于x,y轴,非常简单,使用ticks()方法就可以。对于z轴,比较复杂,网上搜了很多,最后采用的是set_zticklabels()。因为数据分类的原因,散点图有重叠的问题,有两种方法可以解决这个问题,透明度和抖动。透明度可以做区分,但是会显得数据量很少,所以采用的是抖动,产生抖动的点会发生透明度变化。方法比较简单,考虑到后续的标签问题,我直接把数据全部用数字代替,后续再用中文替换三维散点图的坐标轴数字。1.用python读取excel整理的数据,使用的是openpyxl库。

qq_43244633的博客 8439

Cocos2d-x手游逆向实战:Frida高阶Hook与动态解密技术

Cocos2d-x作为主流跨平台游戏引擎,其混合架构(C++核心+JNI桥接+Lua/JS脚本)和强加固策略(符号剥离、anti-frida、so加壳)使传统逆向方法失效。本文围绕‘无符号定位’‘C++函数硬编码地址识别’‘Lua层AST级劫持’‘OpenGL内存回溯解密’四大关键技术展开,深入解析如何在真实上线项目中稳定hook被strip的libcocos2d.so关键函数、绕过反调试心跳检测、从glTexImage2D参数逆向追踪明文资源,并结合熵值扫描实现零先验知识的内存明文发现。面向已掌握Frid

weixin_30345577的博客 675

python 绘制三维图

一、初始化 假设已经安装了matplotlib工具包。 利用matplotlib.figure.Figure创建一个图框: import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D fig = plt.figure() ax = fig.add_subplot(111, projection='3d') 二、直线绘制(Line plots) 基本用法:ax.plot(x,y,z,label=' ') code: imp

班吉拉的博客 2万+

【密码学】生成8位26个字母和数字的全排列(密码字典,密钥)c++代码(非递归高效直接)

生成8位26个字母和数字的全排列(密钥)代码(非递归高效直接) 用C语言或C++,生成一个8位的26个字母和数字的全排列的原代码,例如从:00000000到ZZZZZZZZ。 说明:生成的这个字典会非常大,有36^8条记录,估计要3T的硬盘,跑一个晚上看看         这个方法比递归更高效,更直接。                                                ...

Wu_Being 的优快云 博客 1万+

电脑蓝牙与ESP32蓝牙连接,让电脑发现ESP32

让PC发现ESP32蓝牙

injre! injre~ 5446

Python数据分析40——Python绘制matplotlib三维图

Python绘制三维图 声明:本文是转载的。原作者是 hitrjj,原博客地址是 Python三维绘图–Matplotlib 。 1.创建三维坐标轴对象Axes3D 创建Axes3D主要有两种方式,一种是利用关键字projection='3d’l来实现,另一种则是通过从mpl_toolkits.mplot3d导入对象Axes3D来实现,目的都是生成具有三维格式的对象Axes3D. #方法一...

Py.ziMing的博客 1万+

【Ranger】mac下Apache Ranger编译安装

a、编译过程中出现测试用例不通过和文件认证错误错误:带上参数-DskipTests=true -Drat.skip=true 重新编译;b、若编译过程中出现缺少jar包的情况,可能下载不了,需要手动自动添加;c、编译所需的其他工具如maven等安装配置略。采用这个会报错,因此我才用了下面一个命令。初始化设置Ranger Admin:执行。然后进入target目录。

九师兄 2104

如何用matlab+Python绘制三维图

如何绘制三维图,带轨迹

python_qiuxue的博客 129

在 SAP 中,Primary Cost Element(初级成本要素)与Secondary Cost Element(次级成本要素)的核心区别、作用及业务含义可归纳如下

摘要:SAP中初级成本要素与次级成本要素的核心区别在于:初级要素必须关联FI模块的损益科目,直接影响财务报表,用于记录外部成本(如电费、薪酬);次级要素仅存在于CO模块,用于内部成本分配(如分摊、作业分配),不影响外部报表。初级要素是"外部成本入口",次级要素是"内部成本搬运工",二者共同实现成本的多维度追踪与管理。

金牌架构师 759

数据分析:蛋白质组的GO term的富集分析详解

在获取差异表达蛋白质的数据之后,依据蛋白质与基因的对应映射关系,开展GO(Gene Ontology)term的富集分析。通过这一分析流程,能够精准地识别出不同实验组中过表达基因所关联的显著富集的GO term通路。这些富集的GO term通路为后续的生物学研究提供了关键线索,有助于深入探究基因功能、揭示潜在的生物学机制,从而推动生物学发现的进程。

专注生信领域 1368

python绘制三维图添加文本标注—已解决

经常遇到对所绘制三维图片进行标注的情况,下面进行一个简单的示例: #!/usr/bin/env python # # -*- coding: utf-8 -*- # # Author:'ZML' # # Time:2020/03/13 22:13 import matplotlib.pyplot as plt fig = plt.figure() ax = fig.gca(projecti...

喵喵love的博客 1万+

置顶必读(1) | 《YOLOv26实战:从入门到深度优化》专栏导读与完整目录导航(持续更新中)

🏆 本文收录于 《YOLOv26实战:从入门到深度优化》 专栏。 本专栏系统梳理并持续复现 YOLOv26 官方特性、核心改进、多任务支持、部署优化与行业落地,内容坚持 持续更新 + 深度拆解 + 工程落地导向,不仅讲“怎么用”,更讲“为什么这样设计、如何真正落地到项目中”。

**My Coding Family** 9万+

Python绘制三维图详解

x_,y_返回网格数组,通过打印x_和y_的形状,可以看到x_,y_都是(100*50) 的二维数组,也就是数组x的长度乘以数组y的长度。画曲面的第一步是就是要创建一个二维平面的网格,在Python当中,我们使用。然后调用numpy中的meshgrid函数,进行网格化操作。创建数据:首先创建x和y,它们的范围都是(-1,1)函数,在matlab中也是这个函数哦。利用Python绘制三维图。目标: 绘制图像。

北山啦的博客 8954

MATLAB基础应用精讲-【数模应用】PPO算法(附python代码实现)(二)

表示为状态转移概率和动作选择概率的乘积,因为状态和动作决定轨迹。

qq_36130719的博客 413

VB摄像头监控

该VB模块可对摄像头捕获的画面进行录像等,可在创建的窗口进行控制

【Python & SolidWorks】锂电行业 基于python的solidworks 绘制料仓三维图的二次开发

本人是从事机械,锂电行业的产线设计,包含工艺流程的设计和设备制造的开发。机械和IT行业不同,IT行业由于,工作者本身就是身在IT行业内,会有各种提高工作效率的便利小工具。而机械行业,在这方面是比较欠缺的,而又有大量的重复,浪费时间的工作需要处理。由于工作原因,本人需要在一个项目里绘制各种不同尺寸,但是形状类似的料仓,所以用python写了个可以重复出料仓三维图的小工具。...

joivyhnman的博客 2070

Camera2Demo

在Camera2 的基础上进行封装,使得Camera2一堆初始化逻辑与Activity分离,降低耦合度,完成预览拍照并保存的操作

python雷达图的相似度_Matplotlib绘制雷达图和三维图的示例代码

1.雷达图程序示例'''1.空白极坐标图'''import matplotlib.pyplot as pltplt.polar()plt.show()'''2.绘制一个极坐标点'''import numpy as npimport matplotlib.pyplot as plt# 极坐标(0.25*pi,20)plt.polar(0.25*np.pi, 20, 'ro', lw=2) # 'r...

weixin_39557583的博客 217

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

jdk-8u144-linux-x64.tar.gz.

该资源为搭建Linux系统Java环境用,资源的后缀为tar.gz格式的压缩包

圆形和多边形雷达图python-Matplotlib绘制雷达图和三维图的示例代码

1.雷达图程序示例'''1.空白极坐标图'''import matplotlib.pyplot as pltplt.polar()plt.show()'''2.绘制一个极坐标点'''import numpy as npimport matplotlib.pyplot as plt# 极坐标(0.25*pi,20)plt.polar(0.25*np.pi, 20, 'ro', lw=2) # 'r...

weixin_37988176的博客 2046

【python学习】-多张三维图共用一个colorbar(matplotlib绘制)

多张三维图共用一个colorbar一张三维图多张三维图 一张三维图 绘制一张三维图,大概步骤是:导入相关库;生成三维图框,对X,Y数据进行统一网格化,绘制图形,添加colorbar,设置图形其他参数(如坐标轴,刻度范围,图形像素及大小),显示图形。 from mpl_toolkits.mplot3d import axes3d import matplotlib.pyplot as plt from matplotlib import cm import matplotlib import numpy as

袁家瑜的博客 5262
上一篇: pytorch学习(一)线性模型
下一篇: pytorch(二)梯度下降算法
@@老胡
博客等级 码龄7年 291粉丝 184原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值