中文亚洲精品无码_熟女乱子伦免费_人人超碰人人爱国产_亚洲熟妇女综合网

當前位置: 首頁 > news >正文

發(fā)布網(wǎng)站建設信息百度網(wǎng)站推廣價格

發(fā)布網(wǎng)站建設信息,百度網(wǎng)站推廣價格,柳州建設網(wǎng)栗園新居,首都醫(yī)科大學網(wǎng)站建設MATLAB繪制局部放大圖 1 工具準備 MATLAB官網(wǎng)-ZoomPlot(Kepeng Qiu. Matlab Central, 2022) 初始數(shù)據(jù)圖繪制完成后,調(diào)用以下代碼: %% 添加局部放大 zp BaseZoom(); zp.plot;1.1 具體繪制步驟 具體繪制步驟如下: 通過鼠標左鍵框選作圖區(qū)…

MATLAB繪制局部放大圖

1 工具準備

MATLAB官網(wǎng)-ZoomPlot(Kepeng Qiu. Matlab Central, 2022)
在這里插入圖片描述
初始數(shù)據(jù)圖繪制完成后,調(diào)用以下代碼:

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

1.1 具體繪制步驟

具體繪制步驟如下:

  • 通過鼠標左鍵框選作圖區(qū)域;
  • 鼠標右鍵確定后,通過鼠標左鍵框選需要放大的區(qū)域;
  • 鼠標右鍵確定后,完成局部放大圖的繪制。

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 放大區(qū)域(the zoomed zone)設置

放大區(qū)域(the zoomed zone)默認設置:

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

例:設置放大區(qū)域線條顏色及線寬為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個局部放大區(qū))

成圖如下:
在這里插入圖片描述
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個局部放大區(qū)

成圖如下:
在這里插入圖片描述
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.risenshineclean.com/news/28351.html

相關文章:

  • 項目營銷策劃方案360優(yōu)化大師官方下載
  • dede可以做視頻網(wǎng)站百度關鍵詞指數(shù)排行
  • 羅源網(wǎng)站建設seo搜索引擎優(yōu)化技術教程
  • iis7 無法添加網(wǎng)站網(wǎng)站優(yōu)化聯(lián)系
  • 云南城市建設職業(yè)學院網(wǎng)站軟文推廣渠道
  • 移動端的網(wǎng)站怎么做今日全國最新疫情通報
  • 幾分鐘弄清楚php做網(wǎng)站手機系統(tǒng)優(yōu)化
  • 昆明網(wǎng)絡營銷網(wǎng)站怎么提高seo關鍵詞排名
  • 寶豐網(wǎng)站建設長春網(wǎng)站建設
  • 淘寶客網(wǎng)站虛擬主機盤多多百度網(wǎng)盤搜索引擎
  • 如何管理好一個網(wǎng)站怎樣才能注冊自己的網(wǎng)站
  • web網(wǎng)站雙語切換怎么做在線seo短視頻
  • 有關網(wǎng)站建設的公眾號2022最好的百度seo
  • 怎么做網(wǎng)站的步驟網(wǎng)站制作的要點和步驟詳解
  • 網(wǎng)站接入地查詢互聯(lián)網(wǎng)最賺錢的行業(yè)
  • 轉(zhuǎn)轉(zhuǎn)怎么做釣魚網(wǎng)站知名網(wǎng)絡營銷推廣
  • 桂林手機網(wǎng)站建設seo推廣經(jīng)驗
  • 購物網(wǎng)站建設機構(gòu)網(wǎng)絡營銷策略分析方法
  • 公文寫作 課程中心網(wǎng)站建設百度seo怎么優(yōu)化
  • 兼職做網(wǎng)站系統(tǒng)搜索引擎營銷的案例有哪些
  • 給博彩網(wǎng)站做推廣犯法樂云seo官網(wǎng)
  • 衢州市火車站片區(qū)規(guī)劃直通車推廣計劃方案
  • 網(wǎng)站屏蔽國內(nèi)ip個人seo外包
  • 南寧營銷型網(wǎng)站一個公司可以做幾個百度推廣
  • 快樂彩網(wǎng)站做谷歌在線瀏覽器入口
  • 那些網(wǎng)站做網(wǎng)批百度注冊公司地址
  • 電子商務網(wǎng)站建設與管理試題免費網(wǎng)站在線客服軟件
  • B2B行業(yè)門戶網(wǎng)站模板百度關鍵詞優(yōu)化點擊 教程
  • 網(wǎng)站程序模板下載seo收費標準多少
  • 最有效的網(wǎng)站推廣費用必應搜索引擎網(wǎng)站