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

长沙别墅图纸网站建设网站建设防火墙级别要求

长沙别墅图纸网站建设,网站建设防火墙级别要求,网站如何优化排名软件,许昌建设网站三轴坐标图 1 函数 MATLAB绘制三轴图函数可见MATLAB帮助-multiplotyyy 基础图形绘制是很简单#xff0c;但坐标轴及字体设置该如何实现呢#xff1f; 本文以以下几个例子为例#xff0c;希望可以解决在利用MATLAB绘制三轴坐标图时常见的疑惑。 2 案例 2.1 案例1#xf…三轴坐标图 1 函数 MATLAB绘制三轴图函数可见MATLAB帮助-multiplotyyy 基础图形绘制是很简单但坐标轴及字体设置该如何实现呢 本文以以下几个例子为例希望可以解决在利用MATLAB绘制三轴坐标图时常见的疑惑。 2 案例 2.1 案例1绘图及基础设置 根据给定案例添加坐标轴及字体设置成图如下 MATLAB相关代码如下 clc close all clear %% 导入数据 pathFigure .\Figures\ ; figureUnits centimeters; figureWidth 25; figureHeight 15;x1 (0:0.01:1); x2 (0:0.1:1); x3 (0:0.05:1); y1 x1; y2 x2.^2; y3 x3.^3; y4 sin(x1); y5 fliplr(2*x1.^2); y6 7*cos(x1); y7 7*log(x11.2);%% 开始绘图ylabels{1}First y-label; ylabels{2}Second y-label; ylabels{3}Third y-label; [ax,hlines] multiplotyyy({x1,y1,x2,y2,x3,y3,x1,y4},{x1,y5},{x1,[y6,y7]},ylabels); set(gcf, Units, figureUnits, Position, [0 0 figureWidth figureHeight]); set(hlines{1}(:),LineStyle,-,Marker,o,MarkerFaceColor,b,Markersize,3); set(hlines{2}(:),LineStyle,--,Marker,o,MarkerFaceColor,g,Markersize,3); set(hlines{3}(:),LineStyle,none,Marker,o,MarkerFaceColor,r,Markersize,3); xlabel(ax(1),X,FontName,Times New Roman,FontSize,12); ylabel(ax(1),Y1,FontName,Times New Roman,FontSize,12); ylabel(ax(2),Y2,FontName,Times New Roman,FontSize,12); ylabel(ax(3),Y3,FontName,Times New Roman,FontSize,12); set(ax(1),xlim,[0 1],xtick,0:0.1:1,xticklabel, 0:0.1:1 ,FontSize,12,FontName,Times New Roman); set(ax(1),ylim,[0 1],ytick,0:0.1:1,yticklabel,0:0.1:1,FontSize,12,FontName,Times New Roman); set(ax(2),ylim,[0 2],ytick,0:0.2:2,yticklabel,0:0.2:2,FontSize,12,FontName,Times New Roman); set(ax(3),ylim,[0 7],ytick,0:1:7,yticklabel,0:1:7,FontSize,12,FontName,Times New Roman); hl legend(cat(1,hlines{:}),a,b,c,d,e,f,g,location,w); set(hl,Box,off,location,NorthWest,NumColumns,2,FontSize,12,FontName,Times New Roman); set(gca,FontSize,12,Fontname, Times New Roman);str strcat(pathFigure, Fig.1, .tiff); print(gcf, -dtiff, -r600, str);2.2 案例2更改坐标轴颜色 此外可根据需要更改坐标轴颜色成图如下 MATLAB相关代码如下 clc close all clear %% 导入数据 pathFigure .\Figures\ ; load(Streamflow.mat); ylabels{1}干旱历时/月; ylabels{2}干旱烈度; ylabels{3}干旱强度; x1 1:nYear; mycolor [0 0 0;77,133,189;237,119,69;80 80 80]/255;figureUnits centimeters; figureWidth 25; figureHeight 15;% 站点1安宁渡 % --------------------------------------------------------------------------------- [ax,hlines] multiplotyyy({x1,droughtCharacter{1,1}(:,3)},{x1,droughtCharacter{1,1}(:,4)},{x1,droughtCharacter{1,1}(:,5)},ylabels); set(gcf, Units, figureUnits, Position, [0 0 figureWidth figureHeight]); set(hlines{1}(:),LineStyle,-,linewidth,1.5,color,mycolor(4,:),Marker,o,MarkerFaceColor,mycolor(4,:),Markersize,3); set(hlines{2}(:),LineStyle,--,linewidth,1.5,color,mycolor(2,:),Marker,^,MarkerFaceColor,mycolor(2,:),Markersize,3); set(hlines{3}(:),LineStyle,none,linewidth,1.5,color,mycolor(3,:),Marker,.,MarkerFaceColor,mycolor(3,:),Markersize,12); set(ax(1),xlim,[0 nYear1],xtick,1:5:nYear1,xticklabel, yearStart:5:yearEnd ,FontSize,12,FontName,Times New Roman,XColor,mycolor(1,:)); set(ax(1),ylim,[0 33],YAxisLocation,left,ytick,0:6:33,yticklabel,0:6:33,FontSize,12,FontName,Times New Roman,YColor,mycolor(1,:)); set(ax(2),ylim,[0 36],ytick,0:5:36,yticklabel,0:5:36,FontSize,12,FontName,Times New Roman,YColor,mycolor(2,:)); set(ax(3),ylim,[0 1.8],ytick,0:0.3:1.8,yticklabel,0:0.3:1.8,FontSize,12,FontName,Times New Roman,YColor,mycolor(3,:)); xlabel(ax(1),年份,FontName,宋体,FontSize,12); ylabel(ax(1),ylabels{1},FontName,宋体,FontSize,12,Fontweight,bold); ylabel(ax(2),ylabels{2},FontName,宋体,FontSize,12,Fontweight,bold); ylabel(ax(3),ylabels{3},FontName,宋体,FontSize,12,Fontweight,bold); str strcat(pathFigure, Fig. , .tiff); print(gcf, -dtiff, -r600, str);根据此案例可以发现当坐标轴1和坐标轴2刻度不一致时图1右侧刻度会与坐标轴2刻度同时出现那么此问题应该如何解决呢 2.3 案例3解决坐标轴1和2刻度不一致问题 成图如下 对比案例2修改代码如下 [ax,hlines] multiplotyyy({x1,droughtCharacter{1,1}(:,3)},{x1,droughtCharacter{1,1}(:,4)},{x1,droughtCharacter{1,1}(:,5)},ylabels); set(gcf, Units, figureUnits, Position, [0 0 figureWidth figureHeight]); set(hlines{3}(:),LineStyle,none,linewidth,1.5,color,mycolor(3,:),Marker,.,MarkerFaceColor,mycolor(3,:),Markersize,14); set(hlines{1}(:),LineStyle,-,linewidth,1.5,color,mycolor(4,:));%,Marker,o,MarkerFaceColor,mycolor(4,:),Markersize,3); set(hlines{2}(:),LineStyle,:,linewidth,1.5,color,mycolor(2,:));%,Marker,^,MarkerFaceColor,mycolor(2,:),Markersize,3); set(ax(1),xlim,[0 nYear1],xtick,1:5:nYear1,xticklabel, yearStart:5:yearEnd ,FontSize,12,FontName,Times New Roman,XColor,mycolor(1,:)); set(ax(1),ylim,[0 33],YAxisLocation,left,ytick,0:6:33,yticklabel,0:6:33,FontSize,12,FontName,Times New Roman,YColor,mycolor(1,:),LineWidth,0.5,box, off); ax1 axes(Position,get(ax(1),Position),...XAxisLocation,top,...YAxisLocation,left,...Color,none,...YColor,k); set(ax1,XTick, [],YTick, []); set(ax(2),ylim,[0 36],ytick,0:5:36,yticklabel,0:5:36,FontSize,12,FontName,Times New Roman,YColor,mycolor(2,:),LineWidth,1); set(ax(3),ylim,[0 1.8],ytick,0:0.3:1.8,yticklabel,0:0.3:1.8,FontSize,12,FontName,Times New Roman,YColor,mycolor(3,:),LineWidth,1); xlabel(ax(1),年份,FontName,宋体,FontSize,14); ylabel(ax(1),ylabels{1},FontName,宋体,FontSize,14,Fontweight,bold); ylabel(ax(2),ylabels{2},FontName,宋体,FontSize,14,Fontweight,bold); ylabel(ax(3),ylabels{3},FontName,宋体,FontSize,14,Fontweight,bold); str strcat(pathFigure, Fig. 站点1安宁渡, .tiff); print(gcf, -dtiff, -r600, str);2.4 案例4设置右侧俩坐标轴间距 根据案例3发现右侧两坐标轴间距过大通过修改原函数代码可调整其间距成图如下所示 具体修改multiplotyyy函数代码修改参数如下 % Set the axes position and size pos [0.1 0.1 0.8 0.8]; offset pos(3)/10; pos(3) pos(3) - offset/2; ax(1).Position pos; ax(2).Position pos;参考 1.MATLAB帮助-multiplotyyy 引用格式 Laura Proctor (2023). multiplotyyy (https://www.mathworks.com/matlabcentral/fileexchange/39595-multiplotyyy), MATLAB Central File Exchange.
http://www.hkea.cn/news/14395373/

相关文章:

  • 云南公司网站制作网站开发电销常遇到问题
  • 做百度网站每年的费用多少合适wordpress最大上传
  • 企业信息公开网站网站flash背景
  • 网站建设开票单位珠海 旅游 网站建设
  • html网页设计网站网站怎么做关键词怎么优化
  • 学会python做网站下载百度网盘app最新版
  • 宜章泰鑫建设有限公司网站网页无法访问但是有网什么原因
  • 名字找备案网站通信网络维护是做什么的
  • 做ppt的网站兼职重庆seo推广服务
  • 莒南县网站建设网站后台 黑链接
  • 淄博临淄建设局网站中国空间站
  • 大学一学一做视频网站有没有专门做建材的网站
  • 餐饮网站建设的模板织梦网站突然打开很慢
  • 大型菜谱网站建设软件开发基本流程
  • 进出口贸易公司网站建设网络隐私安全
  • 有名的网站上海优质网站seo有哪些
  • 企业网站推广技巧有哪些张家界建设企业网站
  • 网站上传后wordpress4.7.5下载
  • 云南省和城乡建设厅网站泰安城市建设吧
  • 网站开发公司招聘无锡天罡建设有限公司网站
  • 山西企业模板建站企业网站怎么建立
  • 建站软件接网站建设单子
  • 织梦网站后台地址谁做网站收录
  • 织梦网站被挂马怎么处理佛山网站建设服务
  • 杭州哪家做网站好wordpress反馈插件
  • 做网站mfdos杭州建设网 工程信息网站
  • 正版宝安网站推广wordpress右侧广告位
  • 泉州手机网站建设seo免费推广
  • 湖南省住房和城乡建设厅网站怎样用html制作网站
  • 导航网站能个人备案做原创音乐的网站