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

电商网站的建设与安全网络软文名词解释

电商网站的建设与安全,网络软文名词解释,网站做成软件免费,如何手机做网站MATLAB绘制局部放大图 1 工具准备 MATLAB官网-ZoomPlot(Kepeng Qiu. Matlab Central, 2022) 初始数据图绘制完成后,调用以下代码: %% 添加局部放大 zp BaseZoom(); zp.plot;1.1 具体绘制步骤 具体绘制步骤如下: 通过鼠标左键框选作图区…

MATLAB绘制局部放大图

1 工具准备

MATLAB官网-ZoomPlot(Kepeng Qiu. Matlab Central, 2022)
在这里插入图片描述
初始数据图绘制完成后,调用以下代码:

%% 添加局部放大
zp = BaseZoom();
zp.plot;

1.1 具体绘制步骤

具体绘制步骤如下:

  • 通过鼠标左键框选作图区域;
  • 鼠标右键确定后,通过鼠标左键框选需要放大的区域;
  • 鼠标右键确定后,完成局部放大图的绘制。

1.2 子坐标系(sub-coordinate system)设置

子坐标系(sub-coordinate system)默认设置:

    % theme of inserted axes (sub-axes)propertiessubAxesBox = 'on'subAxesinsertedLineWidth = 1.2subAxesTickDirection = 'in'subAxesBackgroundColor = 'w'end

例:去除子坐标系并设置线宽为3,具体代码如下:

    % theme of inserted axes (sub-axes)propertiessubAxesBox = 'off'subAxesinsertedLineWidth = 3subAxesTickDirection = 'in'subAxesBackgroundColor = 'w'end

在这里插入图片描述

1.3 放大区域(the zoomed zone)设置

放大区域(the zoomed zone)默认设置:

    % theme of the zoomed zone (figures)propertiesrectangleColor = 'k'rectangleFaceColor = 'none'rectangleFaceAlpha = 0rectangleLineStyle = '-'rectangleLineWidth = 1.2rectangleInteractionsAllowed = 'none'end

例:设置放大区域线条颜色及线宽为2,具体代码如下:

    % theme of the zoomed zone (figures)propertiesrectangleColor = 'r'rectangleFaceColor = 'none'rectangleFaceAlpha = 0rectangleLineStyle = '-'rectangleLineWidth = 2rectangleInteractionsAllowed = 'none'end

在这里插入图片描述

1.4 连接线(the connected lines)设置

连接线(the connected lines)默认设置:

    % theme of the connected lines (figures)properties% setting of lines between arrowsfigureConnectedLineStyle = ':'figureConnectedLineColor = 'k'figureConnectedLineWidth = 1.2% setting of start arrowfigureConnectedLineStartHeadStyle = 'ellipse' % shape of start arrowfigureConnectedLineStartHeadLength = 3figureConnectedLineStartHeadWidth = 3% setting of end arrowfigureConnectedLineEndHeadStyle = 'cback2' % shape of ending arrowfigureConnectedLineEndHeadLength = 7figureConnectedLineEndHeadWidth = 7end

例:设置箭头末端形状及颜色,具体代码如下:

    % theme of the connected lines (figures)properties% setting of lines between arrowsfigureConnectedLineStyle = ':'figureConnectedLineColor = 'r'figureConnectedLineWidth = 1.2% setting of start arrowfigureConnectedLineStartHeadStyle = 'ellipse' % shape of start arrowfigureConnectedLineStartHeadLength = 3figureConnectedLineStartHeadWidth = 3% setting of end arrowfigureConnectedLineEndHeadStyle = 'ellipse' % shape of ending arrowfigureConnectedLineEndHeadLength = 7figureConnectedLineEndHeadWidth = 7end

在这里插入图片描述

2 案例

2.1 案例1:基础图形(设置1个局部放大区)

成图如下:
在这里插入图片描述
MATLAB代码如下:

clc
clear
close all
%%
addpath(genpath(pwd)) %  basic plotting
x = linspace(-0.1*pi,2*pi, 30);
y = cell(1, 3);
y{1, 1} = 0.4*sinc(x)+0.8;
y{1, 2} = tanh(x);
y{1, 3} = exp(-sinc(x));figure(1);
color_ = [0, 114, 189; 126, 47, 142; 162, 20, 47]/255;
ax = axes('Units', 'normalized');
hold(ax, 'on');
box(ax,'on');
set(ax, 'LineWidth', 1.2, 'TickDir', 'in');
for i = 1:3plot(x, y{1, i}, 'Parent', ax, 'Color', color_(i, :), 'LineWidth', 3)
end
set(gca,'Layer','top','FontSize',14,'Fontname', 'Times New Roman');% add a zoomed zone
zp = BaseZoom();
zp.plot;

2.2 案例2:设置2个局部放大区

成图如下:
在这里插入图片描述
MATLAB代码如下:

clc
clear
close all
%% 
addpath(genpath(pwd)) %  basic plotting
tmp_ = 5;
t1 = 0:pi/20:8*pi;     
t2 = 8*pi:pi/20:16*pi;
y1_ = exp(-t1/tmp_ );
y2_ = exp(-t1/tmp_ ).*sin(tmp_ *t1);
t = [t1, t2];
y1 = [y1_, fliplr(y1_)];
y2 = [y2_, fliplr(y2_)];figure(1);
plot(t, y2, 'Color', 'r', 'LineStyle', '-', 'LineWidth', 1.5) 
hold on
plot(t, y1, 'Color', 'b', 'LineStyle', ':', 'LineWidth', 1.5) 
plot(t, -y1, 'Color', 'b', 'LineStyle', ':','LineWidth', 1.5) 
xlim([min(t), max(t)])
set(gca,'Layer','top','FontSize',14,'Fontname', 'Times New Roman');% add 2 zoomed zones
zp = BaseZoom();
zp.plot;
zp.plot;

参考

http://www.dt0577.cn/news/43878.html

相关文章:

  • 怎么样做搜索引擎网站网络热词2023
  • 做电商网站一般需要什么流程国内新闻大事
  • 网站建设网页设计用什么软件seo快排技术教程
  • 蓬莱专业做网站公司2345网址中国最好
  • 行业门户网站的优化怎么做yps行业门户系统武汉千锋教育培训机构怎么样
  • b2c网站建设广告设计与制作
  • 怎样做网站公司如何推广小程序
  • 专业做网站的公司有哪些长春关键词优化排名
  • 公司网站制作开发公司扬州百度推广公司
  • 计算机网站php设计代做app拉新推广平台渠道商
  • 平台网站如何做推广北京做网站公司哪家好
  • 网站建设合同浩森宇特网络服务合同
  • 网站制作公司有没有版权推广计划怎么做推广是什么
  • 临沂做网站推广的公司哪家好外链发布工具下载
  • 动易网站 模板链接买卖平台
  • 网站建设重庆seo顾问
  • 种子搜索网站开发seo网站优化服务
  • 企业大型网站开发需要多少钱网络营销推广策划的步骤是什么
  • 广州建设工程造价管理站网站自己做网站的软件
  • 上海创新网站建设网址链接生成器
  • 企业网站的功能列表营销型网站方案
  • 微信公众号是在哪个网站做的seo tdk
  • 网站推广赚钱吗东莞网络营销推广专业
  • 网站测试的方法网络营销的作用
  • 公司经营范围上海谷歌seo公司
  • 有没有帮忙做问卷调查的网站app推广多少钱一单
  • 中企动力初期做的网站武汉网络关键词排名
  • 南昌网站推广¥做下拉去118cr自己建网站怎么弄
  • 怎么做用网站赚钱吗编程培训班学费一般多少钱
  • 关于做甜品的网站百度推广客户端app下载