
python可视化
文章平均质量分 50
「已注销」
这个作者很懒,什么都没留下…
展开
-
R语言绘制带制图包的定制欧洲地图2
笔者用R语言绘制带制图包的定制欧洲地图原创 2022-12-19 17:20:03 · 214 阅读 · 0 评论 -
R语言绘制带制图包的定制欧洲地图1
笔者用R语言绘制带制图包的定制欧洲地图原创 2022-12-19 17:13:55 · 219 阅读 · 0 评论 -
国庆倒计时---转载
一、先看效果:二、安装python:1、下载安装python下载安装python3.9.6,进入python官方网站://www.python.org/点击Python 3.9.6直接安装即可。2、验证安装成功。按win+R输入cmd,打开控制台,输入python -V,输出python版本号说明安装成功。三、代码##import libraryfrom tkinter import *import timefrom datetime import datetime,time转载 2021-09-30 20:06:22 · 126 阅读 · 0 评论 -
python星型图可视化及红楼梦第一回优化二
红楼梦-----【清】曹雪芹-----高鹗-----原著------北京燕山出版社原创 2021-02-08 17:04:52 · 316 阅读 · 0 评论 -
ruby红楼梦可视化
greyshothot_rhsvhsv_rinfernoinferno_rjetNipySpectralNipyspectral_rhsv_rOrangesOranges_r原创 2021-02-07 09:45:15 · 211 阅读 · 0 评论 -
亿图图示----工业自动化模块展示1
无氧热解处理过程YSG类型沥青生产流程简图原创 2021-02-14 09:26:46 · 355 阅读 · 0 评论 -
Python---陈氏绘制雷达图
import matplotlib.pyplot as pltimport numpy as npvalues = [0.09,-0.05,0.20,-0.02,0.08,0.09,0.03,0.027]x = np.linspace(0,2*np.pi,9)[:-1]c = np.random.random(size=(8,3))fig = plt.figure()plt.axes(polar=True)#获取当前的axesprint(plt.gca())#绘图plt.bar(x,va原创 2021-02-14 09:00:05 · 466 阅读 · 4 评论 -
Python可视化之雷达图和R语言可视化
import matplotlib.pyplot as pltimport numpy as npdef radarMap(values, feature, labels, title):# 中文和负号的正常显示plt.rcParams[‘font.sans-serif’] = ‘Microsoft YaHei’plt.rcParams[‘axes.unicode_minus’] = False#使用ggplot的风格绘图plt.style.use('ggplot')N = len(fea原创 2021-02-13 16:02:20 · 566 阅读 · 2 评论 -
Python可视化陈氏和R语言--星型图形展示
afmhotaftmhot_rautumnautumn_rbinarybinary_rBrBgBrBg_rBrgBrg_rbwrbwr_rcividiscividis_rCMPmapCMPmap_rcoolcool_rcubehelixcubehelix_rgist_earthgist_earth_rgist_graygist_gray_rgist_heatgist_heat_r原创 2021-02-13 15:55:08 · 432 阅读 · 0 评论 -
解决ModuleNotFoundError: No module named ‘numpy.core._multiarray_umath‘的方法
问题: 导入tensorflow时报错ModuleNotFoundError: No module named 'numpy.core._multiarray_umath',异常信息如下所示分析: NumPy是使用Python进行科学计算的基础软件包,这里提示numpy.core._multiarray_umath failed to import和numpy.core.umath failed to import ,得知异常的原因是Numpy库的引用出了问题。 估计是NumPy版本和当前Ten转载 2021-02-08 11:54:02 · 10063 阅读 · 1 评论 -
mpl的Axes3D绘制三维图像
文章目录1.绘制三维图像2.plt.axes()1.绘制三维图像import matplotlib.pyplot as pltfrom mpl_toolkits.mplot3d import Axes3Dfig = plt.figure()ax = fig.add_subplot(111, projection=‘3d’)X = [1, 2, 1, 1]Y = [1, 1, 2, 2]Z = [3, 4, 4, 3]ax.plot_trisurf(X, Y, Z)plt.show()原创 2021-02-06 09:33:48 · 804 阅读 · 1 评论 -
【python】使用plotly画三维立体高逼格图,数据可视化
使用plotly画三维立体高逼格图,代码传送门:import plotly.graph_objects as goimport numpy as npnp.random.seed(1)N = 70fig = go.Figure(data=[go.Mesh3d(x=(70np.random.randn(N)),y=(55np.random.randn(N)),z=(40*np.random.randn(N)),opacity=0.5,color=‘rgba(244,22,100,0.6)’原创 2021-02-06 09:13:54 · 2470 阅读 · 2 评论 -
Python使用Plotly绘图工具,绘制直方图
Python使用Plotly绘图工具,绘制直方图今天我们再来讲解一下Python使用Plotly绘图工具如何绘制直方图使用plotly绘制直方图需要用到graph_objs包中的Histogram函数我们将数据赋值给函数中的x变量,x = data即可绘制出直方图如果将数据赋值给y变量,则会,绘制出水平直方图。下面我们来看个基本例子import plotly as pyimport plotly.graph_objs as goimport numpy as nppyplt = py.o原创 2021-02-06 09:04:12 · 1444 阅读 · 1 评论 -
python机器学习
from sklearn.model_selection import learning_curvefrom sklearn.datasets import load_digitsfrom sklearn.svm import SVCimport matplotlib.pyplot as pltimport numpy as np#引入数据digits=load_digits()X=digits.datay=digits.target#train_size表示记录学习过程中的某一步,比如在原创 2021-02-05 17:01:39 · 646 阅读 · 4 评论 -
最大连通分支Giant Component
最大连通分支Giant ComponentCopyright © 2006-2019Aric Hagberg hagberg@lanl.govDan Schult dschult@colgate.eduPieter Swart swart@lanl.govAll rights reserved.BSD license.import mathimport matplotlib.pyplot as pltimport networkx as nxtry:import pygraphviz原创 2021-02-05 10:51:19 · 1645 阅读 · 0 评论 -
标签和颜色
标签和颜色Labels And ColorsAuthor: Aric Hagberg (hagberg@lanl.gov)import matplotlib.pyplot as pltimport networkx as nx生成立体图G = nx.cubical_graph()确定位置pos = nx.spring_layout(G) # positions for all nodesnodes画节点nx.draw_networkx_nodes(G, pos,nodelist=[0原创 2021-02-04 15:25:26 · 437 阅读 · 0 评论 -
度直方图
import matplotlib.pyplot as pltimport networkx as nxG = nx.gnp_random_graph(100, 0.02)degree_sequence = sorted([d for n, d in G.degree()], reverse=True) # degree sequence打印 “度序列”, 度数序列degreeCount = collections.Counter(degree_sequence)deg, cnt = zip(原创 2021-02-04 10:42:07 · 440 阅读 · 0 评论 -
自我中心网络
自我中心网络Ego GraphAuthor: Drew Conway,chen xiang yu (drew.conway@nyu.edu,cxy_0809@qq.com)from operator import itemgetterimport matplotlib.pyplot as pltimport networkx as nxif name == ‘main’:# Create a BA model graphn = 1000m = 2G = nx.generators.bar原创 2021-02-04 08:49:42 · 718 阅读 · 0 评论 -
2021-02-03
import matplotlib.pyplot as pltimport networkx as nxG = nx.star_graph(30)pos = nx.spring_layout(G)colors = range(30)nx.draw(G, pos, node_color=’#A0CBE5’, edge_color=colors,width=4, edge_cmap=plt.cm.spring, with_labels=False)plt.show()nx.draw(G, po原创 2021-02-03 20:41:26 · 127 阅读 · 0 评论 -
MATLAB矩阵测试
randperm(1)ans = 1randperm(2)ans = 2 1randperm(3)ans = 3 2 1randperm(4)ans = 1 2 3 4randperm(5)ans = 1 4 5 3 2randperm(6)ans = 1 2 6 4 3 5randperm..原创 2021-01-25 17:40:28 · 348 阅读 · 0 评论 -
【kimol君的无聊小发明】—用python写论文下载器(图形化界面)
【kimol君的无聊小发明】—用python写论文下载器(图形化界面)置顶 不正经的kimol君 2021-01-22 19:59:39 11909 收藏 48文章标签: python qt 下载器版权【kimol君的无聊小发明】—用python写论文下载器(图形化界面)前言一、使用说明二、代码分析功能函数回调函数线程生成函数效果展示写在最后前言某个夜深人静的夜晚,夜微凉风微扬,月光照进我的书房~当我打开文件夹以回顾往事之余,惊现许多看似杂乱的无聊代码。我拍腿正坐,转载 2021-02-03 18:02:04 · 215 阅读 · 0 评论 -
2021-02-03
nx.draw(G, pos, node_color=’#A0CBE5’, edge_color=colors,width=4, edge_cmap=plt.cm.coolwarm_r, with_labels=False)nx.draw(G, pos, node_color=’#A0CBE5’, edge_color=colors,width=4, edge_cmap=plt.cm.coolwarm, with_labels=False)nx.draw(G, pos, node_color=’原创 2021-02-03 17:53:10 · 200 阅读 · 0 评论 -
2021-02-03
import matplotlib.pyplot as pltimport networkx as nxG = nx.star_graph(30)pos = nx.spring_layout(G)colors = range(30)nx.draw(G, pos, node_color=’#A0CBE5’, edge_color=colors,width=4, edge_cmap=plt.cm.copper, with_labels=True)plt.show()nx.draw(G, pos原创 2021-02-03 17:36:07 · 152 阅读 · 0 评论 -
MATLAB 补偿系统GUI展示
控制理论MATLAB教程(英文版–中文评注)Katsuhiko Ogata 著 王峻评注百度搜索—MATLAB popupmenu用法—百度经验–MATLAB popupmenu用法实例详解百度搜索–MATLAB switch case用法—百度经验–MATLAB switch case用法实例详解百度搜索–python3d画图mpl_toolkits.mplot3d–优快云:python3d画图mpl_toolkits.mplot3dNumPy Beg...原创 2021-01-27 07:39:32 · 1590 阅读 · 2 评论 -
2021-01-25
odefun=inline(‘y-2*t/y’,‘t’,‘y’);[t,y]=ode45(odefun,[0,4],1);[t,y]ans =0 1.00000.0502 1.04900.1005 1.09590.1507 1.1408…… ……3.8507 2.95033.9005 2.96723.9502 2.98394.0000 3...原创 2021-01-25 18:19:31 · 305 阅读 · 0 评论 -
2021-01-25
syms x a t h;a1=limit(sin(x)/x)a1 =1a2=limit(1/x,x,0,‘right’)a2 =Infa2=limit(1/x,x,0,‘left’)a2 =-Infa4=limit((sin(x+h)-sin(x))/h,h,0)a4 =cos(x)v=[(1+a/x)^x,exp(-x)];a5=limit(v,x,inf,‘left’)a5 =[ exp(a), 0]f=inline(‘2x.3-x.2原创 2021-01-25 18:25:45 · 124 阅读 · 0 评论 -
2021-02-02
import matplotlib.pyplot as pltimport networkx as nx俱乐部数据G = nx.karate_club_graph()print(“Node Degree”)for v in G:print(’%s %s’ % (v, G.degree(v)))画环形,其中节点表示会员nx.draw_circular(G, with_labels=False)plt.show()...原创 2021-02-02 15:15:27 · 313 阅读 · 2 评论 -
2021-02-02
足球footballAuthor: Aric Hagberg (hagberg@lanl.gov)Copyright © 2007-2019 byAric Hagberg hagberg@lanl.govDan Schult dschult@colgate.eduPieter Swart swart@lanl.govchen xiang yu cxy_0809@qq.comAll rights reserved.BSD license.try: # Python 3.ximport u原创 2021-02-02 15:11:58 · 323 阅读 · 0 评论 -
2021-02-02
度序列Degree SequenceAuthor: Aric Hagberg (hagberg@lanl.gov)Date: 2004-11-03 08:11:09 -0700 (Wed, 03 Nov 2004)Revision: 503Copyright © 2004-2019 byAric Hagberg hagberg@lanl.govDan Schult dschult@colgate.eduPieter Swart swart@lanl.govchen xiang yu cxy_原创 2021-02-02 15:03:32 · 337 阅读 · 3 评论 -
2021-02-02
import matplotlib.pyplot as pltimport networkx as nx生成五宫格点G = nx.grid_2d_graph(5, 5) # 4x4 grid点排列pos = nx.spring_layout(G, iterations=100)plt.subplot(332)nx.draw(G, pos, font_size=8)plt.subplot(333)node_color节点的颜色nx.draw(G, pos, node_color=‘k’,原创 2021-02-02 14:57:09 · 235 阅读 · 0 评论 -
2021-02-02
带颜色的房子 House With ColorsAuthor: Aric Hagberg (hagberg@lanl.gov)import matplotlib.pyplot as pltimport networkx as nxG = nx.house_graph()explicitly set positionspos = {0: (0, 1),1: (1, 0),2: (1, 2),3: (2, 1),4: (2, 3),5: (3, 2)}画节点nx.draw_networ原创 2021-02-02 14:41:45 · 118 阅读 · 0 评论 -
2021-02-02
等级排列Degree RankAuthor: Aric Hagberg aric.hagberg@gmail.comimport networkx as nximport matplotlib.pyplot as pltG = nx.gnp_random_graph(100, 0.02)degree_sequence = sorted([d for n, d in G.degree()], reverse=True)print “Degree sequence”, degree_sequence原创 2021-02-02 14:35:28 · 123 阅读 · 0 评论 -
2021-02-02
import matplotlib.pyplot as pltimport networkx as nxG = nx.star_graph(30)pos = nx.spring_layout(G)colors = range(30)edge_color边的颜色nx.draw(G, pos, node_color=’#A0CBE5’, edge_color=colors,width=4, edge_cmap=plt.cm.hsv_r, with_labels=True)plt.show()原创 2021-02-02 14:14:45 · 612 阅读 · 0 评论 -
2021-02-02
import matplotlib.pyplot as pltimport networkx as nxG = nx.star_graph(20)pos = nx.spring_layout(G)colors = range(20)edge_color边的颜色nx.draw(G, pos, node_color=’#A0CBE5’, edge_color=colors,width=4, edge_cmap=plt.cm.Set2_r, with_labels=True)plt.show()原创 2021-02-02 14:02:26 · 111 阅读 · 0 评论 -
2021-02-02
import matplotlib.pyplot as pltimport networkx as nxG = nx.star_graph(20)pos = nx.spring_layout(G)colors = range(20)edge_color边的颜色nx.draw(G, pos, node_color=’#A0CBE5’, edge_color=colors,width=4, edge_cmap=plt.cm.jet_r, with_labels=True)plt.show()原创 2021-02-02 12:36:11 · 245 阅读 · 0 评论 -
2021-02-01
import matplotlib.pyplot as pltimport networkx as nxG = nx.star_graph(20)pos = nx.spring_layout(G)colors = range(20)edge_color边的颜色nx.draw(G, pos, node_color=’#A0CBE2’, edge_color=colors,width=4, edge_cmap=plt.cm.Blues_r, with_labels=False)plt.show(原创 2021-02-01 18:37:09 · 122 阅读 · 0 评论 -
2021-02-01
import matplotlib.pyplot as pltimport networkx as nxG = nx.cycle_graph(28)pos = nx.spring_layout(G, iterations=300)nx.draw(G, pos, node_color=range(28), node_size=900, cmap=“YlGn_r”)plt.show()nx.draw(G, pos, node_color=range(28), node_size=900, cmap原创 2021-02-01 14:51:37 · 110 阅读 · 0 评论 -
2021-02-01
import matplotlib.pyplot as pltimport networkx as nxG = nx.cycle_graph(28)pos = nx.spring_layout(G, iterations=300)nx.draw(G, pos, node_color=range(28), node_size=900, cmap=“hsv”)plt.show()nx.draw(G, pos, node_color=range(28), node_size=900, cmap=“h原创 2021-02-01 14:19:40 · 118 阅读 · 0 评论 -
2021-01-31
clear all;strength=[82 86 79 83 84 85 86 87 74 82 78 75 76 77 79 79 77 78 82 79];alloy={‘st’,‘st’,‘st’,‘st’,‘st’,‘st’,‘st’,‘st’,…‘all’,‘all’,‘all’,‘all’,‘all’,‘all’,…‘al2’,‘al2’,‘al2’,‘al2’,‘al2’,‘al2’};[p,a,s]=anova1(strength,alloy);[c,m,h,nums]=mul原创 2021-01-31 10:10:32 · 399 阅读 · 0 评论 -
2021-01-31
load carbigX=[MPG Acceleration Weight Displacement];[d,p,stats]=manova1(X,Origin);manovacluster(stats);张德丰编著—MATLAB概率与数据统计分析----第305页—【M】机械工业出版社原创 2021-01-31 08:44:13 · 425 阅读 · 0 评论