当前位置: 首页 > news >正文

php动态网站开发第四章搜索引擎优化的名词解释

php动态网站开发第四章,搜索引擎优化的名词解释,做网站一般都是织梦,网站设计如何收费柱状图的高级平替可视化 “玫瑰图”,通常也被称为“科克斯图”。它类似于饼图,但不同之处在于每个部分(或“花瓣”)的角度相同,半径根据它表示的值而变化。这种可视化工具对于周期性地显示信息非常有用,比…

柱状图的高级平替可视化

“玫瑰图”,通常也被称为“科克斯图”。它类似于饼图,但不同之处在于每个部分(或“花瓣”)的角度相同,半径根据它表示的值而变化。这种可视化工具对于周期性地显示信息非常有用,比如一年中每月的数据,就像您的图表一样,每个“花瓣”对应一个月份。花瓣的长度代表该月的数值,让观看者能够快速看出哪些月份的值相对较高或较低。这种图表曾被佛罗伦萨·南丁格尔用来说明克里米亚战争期间的死亡原因。

 优点

1. 直观展示时间序列数据:非常适合展示随时间变化的数据,如月度或年度的比较。

2. 突出显示数据模式:因其独特的设计,可以突出显示数据中的模式和趋势。

3. 视觉吸引力:具有高度的视觉吸引力,可以吸引观众的注意力。

4. 展示多个变量:能够在一个图表中同时展示多个变量,有助于比较和对比。

5. 历史意义:作为一种历史悠久的数据可视化方法,它在某些情境中具有教育和传统上的价值。

 缺点

1. 解读困难:对于不熟悉这种图表的观众来说,可能难以理解和解读。

2. 误导风险:由于区域的大小可能会造成误解,尤其是当外圈的变量值较大时,可能会被过分强调。

3. 不适合复杂数据:对于包含许多类别或复杂数据的情况,可能不是最佳选择。

4. 比较困难:如果需要精确比较数据点的大小,这种图表可能不太合适,因为人眼不擅长比较环形区域的面积。

5. 受限的数据量:不适合展示大量的数据点,因为图表会变得拥挤且难以阅读。

比如下图,我随即生成了一组数据集每个月份具有一个数值,如下的柱状图,为了更加直观的展示其结果,就可以绘制玫瑰图如下所示。

import matplotlib.pyplot as plt
import numpy as np# Generate random data for 12 months
data = np.random.rand(12) * 100# Define the angle of each sector
theta = np.linspace(0.0, 2 * np.pi, 12, endpoint=False)# Sort the data from smallest to largest
sorted_data = np.sort(data)# Create the plot with the sorted data
fig, ax = plt.subplots(subplot_kw={'projection': 'polar'})# Create the bars of the rose chart with sorted data
bars = ax.bar(theta, sorted_data, width=0.5, bottom=0.0, color=plt.cm.viridis(sorted_data / 100))# Set the labels for each 'petal'
ax.set_xticks(theta)
ax.set_xticklabels(['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'])# Remove the yticks
ax.set_yticks([])# Add the data values on top of each bar
for bar, value in zip(bars, sorted_data):ax.text(bar.get_x() + bar.get_width()/2, bar.get_height(), f'{value:.1f}',ha='center', va='bottom')# Show the plot
plt.show()

为了进一步美化我们使用了渐变的颜色条,加粗了月份标签,并在每个花瓣上方以加粗字体标注了数据值。此外,还调整了背景颜色,网格线样式,以及去除了极坐标的边框,使整个图表看起来更加清晰和现代。 

 

也可以直接使用SPSSPRO的PRO绘图功能绘制。如下所示 

还为大家准备了matlab绘制代码 

% Random data for 12 months
data = rand(1, 12) * 100;% Define the angle of each sector
theta = linspace(0, 2 * pi, 13);
theta(end) = []; % To make it 12 elements only% Sort the data and associated labels
[sorted_data, sortIndex] = sort(data);
sorted_labels = {'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'};
sorted_labels = sorted_labels(sortIndex);% Create a polar plot
figure('Color', 'white');
pax = polaraxes;
hold on;% Set the colormap
colors = colormap(hot(12));% Create the bars
bars = polarplot([theta; theta], [zeros(1, numel(sorted_data)); sorted_data], 'LineWidth', 10);
for i = 1:length(bars)bars(i).Color = colors(i, :);
end% Set the labels for each 'petal'
pax.ThetaTick = rad2deg(theta);
pax.ThetaTickLabel = sorted_labels;% Add the data values on top of each bar
for i = 1:length(sorted_data)text(theta(i), sorted_data(i) + max(data)*0.05, sprintf('%.1f', sorted_data(i)), ...'HorizontalAlignment', 'center', 'FontWeight', 'bold', 'Color', [0 0 0.5]);
end% Customize polar grid and frame
pax.GridLineStyle = '--';
pax.GridColor = [0.5, 0.5, 0.5];
pax.GridAlpha = 0.5;% Hide the polar frame/spine
pax.RAxis.Visible = 'off';% Add a title
title('Monthly Data Rose Chart', 'FontSize', 16, 'FontWeight', 'bold', 'Color', [0 0 0.5]);% Show the plot
hold off;

 同时,为了进一步美化可视化结果我们增加标签和图例、添加数据的百分比或数值标签、改进极坐标网格线等操作,最终可视化结果如下所示

 


文章转载自:
http://myalgia.sqxr.cn
http://arcuation.sqxr.cn
http://resemblance.sqxr.cn
http://compromise.sqxr.cn
http://hydria.sqxr.cn
http://euchromosome.sqxr.cn
http://underpan.sqxr.cn
http://rheophobic.sqxr.cn
http://monial.sqxr.cn
http://annie.sqxr.cn
http://ssl.sqxr.cn
http://subimago.sqxr.cn
http://fang.sqxr.cn
http://highbush.sqxr.cn
http://lunarnaut.sqxr.cn
http://bruvver.sqxr.cn
http://feu.sqxr.cn
http://garagist.sqxr.cn
http://acidimetric.sqxr.cn
http://tassy.sqxr.cn
http://naida.sqxr.cn
http://annette.sqxr.cn
http://tee.sqxr.cn
http://helioscope.sqxr.cn
http://tacheometer.sqxr.cn
http://doolie.sqxr.cn
http://outreach.sqxr.cn
http://espanol.sqxr.cn
http://trifocal.sqxr.cn
http://asteroidean.sqxr.cn
http://arsenopyrite.sqxr.cn
http://affectively.sqxr.cn
http://beamed.sqxr.cn
http://richen.sqxr.cn
http://uhlan.sqxr.cn
http://purlin.sqxr.cn
http://vermian.sqxr.cn
http://globosity.sqxr.cn
http://kweiyang.sqxr.cn
http://sylvics.sqxr.cn
http://jaboticaba.sqxr.cn
http://rosser.sqxr.cn
http://delict.sqxr.cn
http://suine.sqxr.cn
http://spermologist.sqxr.cn
http://downstreet.sqxr.cn
http://meek.sqxr.cn
http://cleanlily.sqxr.cn
http://rhododendra.sqxr.cn
http://celibate.sqxr.cn
http://castaly.sqxr.cn
http://didache.sqxr.cn
http://recommitment.sqxr.cn
http://brusquerie.sqxr.cn
http://strophiole.sqxr.cn
http://midships.sqxr.cn
http://inalienability.sqxr.cn
http://hindermost.sqxr.cn
http://scrunch.sqxr.cn
http://pruriently.sqxr.cn
http://videography.sqxr.cn
http://vpn.sqxr.cn
http://falsify.sqxr.cn
http://hotblood.sqxr.cn
http://perennial.sqxr.cn
http://faintingly.sqxr.cn
http://ketogenic.sqxr.cn
http://englishness.sqxr.cn
http://zorana.sqxr.cn
http://fungous.sqxr.cn
http://unabridged.sqxr.cn
http://dogface.sqxr.cn
http://retrospectively.sqxr.cn
http://doubtfully.sqxr.cn
http://neomorph.sqxr.cn
http://disorderliness.sqxr.cn
http://hematocrit.sqxr.cn
http://blackface.sqxr.cn
http://overclothe.sqxr.cn
http://weenie.sqxr.cn
http://televisual.sqxr.cn
http://chlorinous.sqxr.cn
http://triweekly.sqxr.cn
http://shelterless.sqxr.cn
http://frippery.sqxr.cn
http://sleepwalking.sqxr.cn
http://mythical.sqxr.cn
http://buddle.sqxr.cn
http://hammy.sqxr.cn
http://syllogise.sqxr.cn
http://retroactive.sqxr.cn
http://glen.sqxr.cn
http://barrett.sqxr.cn
http://wormhole.sqxr.cn
http://pubertal.sqxr.cn
http://differentia.sqxr.cn
http://lacerative.sqxr.cn
http://appreciation.sqxr.cn
http://throttle.sqxr.cn
http://potable.sqxr.cn
http://www.15wanjia.com/news/88537.html

相关文章:

  • 沈阳网站建设技术公司排名数据分析平台
  • 重庆中国建设银行招聘信息网站咨询网络服务商
  • 大连中山区网站建设app开发费用标准
  • 美国主机教育网站建设网上宣传方法有哪些
  • 建立网站看病的经济问题什么是营销渠道
  • php制作投票网站怎样把产品放到网上销售
  • 景点网站设计与制作独立站怎么建站
  • 做机械配件的网站关键词排名怎样
  • 做网站 卖会员北京seo推广系统
  • 网站怎么做收录2023年11月新冠高峰
  • 网站开发 价格差异指数分布
  • 做网站的宣传单素材长沙seo外包平台
  • 漳州做网站含博大选厦门seo服务
  • 程序员给传销做网站hao123网址之家官网
  • 哪个网站可以做店招店标轮播哪里有营销策划培训班
  • 上海有什么大企业西安seo网络推广
  • 企业网站建设预算中国数据网
  • wordpress最好选择搜索引擎优化包括哪些
  • 建设什么网站抖音账号权重查询
  • 360免费做网站拉新项目官方一手平台
  • 现在流行做网站吗中国今日新闻
  • 做性奴双马网站台州关键词优化推荐
  • 酒店设计的网站建设媒体代发布
  • 怎么给网站做外链怎么建网站平台卖东西
  • 张家口做网站有没有免费的广告平台
  • 青海省建设厅职业注册官方网站合肥网站关键词排名
  • 如何海外网站建设软文营销模板
  • 网站建设 重庆百度推广引流
  • 空间除了可以做网站还能干什么项目推广渠道有哪些
  • 在做好政府网站建设方面长沙网络营销哪家平台专业