【原始碼】Scrollsubplot:subplot函式的升級版
SCROLLSUBPLOT在平鋪位置上建立座標軸。
SCROLLSUBPLOT Create axes in tiled positions.
SCOLLSUBPLOT(m,n,p)將圖形視窗拆分為小座標軸的m乘n矩陣,為當前繪圖選擇第p個軸,並返回軸控制程式碼。軸沿圖形視窗的頂行計數,然後再按第二行計數,以此類推。
SCOLLSUBPLOT(m,n,p), breaks the Figure window into
an m-by-n matrix of small axes, selects the p-th axes for the current plot, and returns the axis handle. The axes are counted along the top row of the Figure window, then the second row, etc. For example,
SCROLLSUBPLOT(3,1,-1), PLOT(income)
SCROLLSUBPLOT(3,1,1), PLOT(declared_income)
SCROLLSUBPLOT(3,1,2), PLOT(tax)
SCROLLSUBPLOT(3,1,3), PLOT(net_income)
SCROLLSUBPLOT(3,1,4), PLOT(the_little_extra)
plots declared_income on the top third of the window, tax in the middle, and the net_income in the bottom third. Above the top of the figure income is ploted and below the lower edge
the_little_extra is to be found. To navigate there is a slider along the right figure edge.
SCROLLSUBPLOT now also work with less regular subplot-layouts:
axs3(1) = scrollsubplot(3,3,1);
axs3(2) = scrollsubplot(3,3,3);
axs3(3) = scrollsubplot(3,3,[4,7]);
axs3(4) = scrollsubplot(3,3,5);
axs3(5) = scrollsubplot(3,3,[3,6]);
axs3(6) = scrollsubplot(3,3,10);
axs3(7) = scrollsubplot(3,3,[8,9,11,12]);
axs3(8) = scrollsubplot(3,3,[13,14,15);
for i1 = 1:8,
if ishandle(axs3(i1))
axes(axs3(i1))
imagesc(randn(2+3*i1))
end
end
The function works well for regular grids where m,n is constant for all p. When m,n varies there is no guaranti that the steps of the slider is nicely adjusted to the sizes of the subplots.
SCROLLSUBPLOT now also works with mouse-wheel scroll.
Differences with SUBPLOT: SCROLLSUBPLOT requires 3 input arguments, no compatibility with subplot(323), no handle as input. Further PERC_OFFSET_L is decreased from 2*0.09 to 0.07
and PERC_OFFSET_R is decreased from 2*0.045 to 0.085. This leaves less space for titles and labels, but give a plaid grid of subplots even outside the visible figure area.
Bug/feature when the slider is shifted from its initial position and then extra subplots is added, they get mis-positioned.
See also SCROLL, SUBPLOT,
更多精彩文章請關注公眾號:
相關文章
- 原始碼分析:升級版的讀寫鎖 StampedLock原始碼
- 原始碼升級SUSE openssh原始碼
- js的call函式”原始碼”JS函式原始碼
- MetaForce佛薩奇系統開發原始碼(升級版)原始碼
- C++(STL原始碼):37---仿函式(函式物件)原始碼剖析C++原始碼函式物件
- Vue 原始碼中的工具函式Vue原始碼函式
- 臨時讀原始碼的函式原始碼函式
- count 函式原始碼分析函式原始碼
- 最佳實踐 | 原始碼升級gcc原始碼GC
- Centos5 原始碼升級sshdCentOS原始碼
- 【Vue原理】Diff - 原始碼版 之 相關輔助函式Vue原始碼函式
- bind函式polyfill原始碼解析函式原始碼
- ClickHouse原始碼筆記5:聚合函式的原始碼再梳理原始碼筆記函式
- SpringCloud升級之路2020.0.x版-22.Spring Cloud LoadBalancer核心原始碼SpringGCCloud原始碼
- 升級版佛薩奇3.0NFT系統開發原始碼案例原始碼
- snabbdom原始碼解析(二) h函式原始碼函式
- 讀 zepto 原始碼之工具函式原始碼函式
- [PHP原始碼閱讀]strlen函式PHP原始碼函式
- Vue原始碼: 建構函式入口Vue原始碼函式
- PHP原始碼分析-函式array_merge的”BUG”PHP原始碼函式
- 升級後欄位引數有自定義函式失效函式
- vue原始碼解讀-建構函式Vue原始碼函式
- redux原始碼分析之四:compose函式Redux原始碼函式
- Redis分散式鎖升級版RedLock及SpringBoot實現Redis分散式Spring Boot
- apisix~升級原始外掛的方法API
- 人人都能懂的Vue原始碼系列(三)—resolveConstructorOptions函式Vue原始碼Struct函式
- Vue原始碼探祕(五)(_render 函式的實現)Vue原始碼函式
- ClickHouse原始碼筆記1:聚合函式的實現原始碼筆記函式
- MySQL函式大全(字串函式,數學函式,日期函式,系統級函式,聚合函式)MySql函式字串
- 【C++】【原始碼解讀】std::is_same函式原始碼解讀C++原始碼函式
- 函式的冪級數展開式函式
- jQuery 原始碼學習 (三) 回撥函式jQuery原始碼函式
- jQuery 原始碼剖析(一) - 核心功能函式jQuery原始碼函式
- ONNX Runtime 原始碼閱讀:Graph::SetGraphInputsOutputs() 函式原始碼函式
- Excel函式的初級用法Excel函式
- windows10 家庭版升級專業版的圖文步驟(無損升級)Windows
- 10240版本的win10如何升級_10240版本的win10升級的方法Win10
- 我的足跡 地圖— 升級版地圖