cpsPlotTools

バージョン 1.0.0.0 (68.7 KB) 作成者: Duijnhouwer
Collection of tools for (even) easier figure creation in Matlab
ダウンロード: 179
更新 2023/5/3

Capsaicin (CPS) Plot Tools facilitate many common tasks in the creation of scientific figures. Examples are lettering multi-panel figures, scaling panel axis limits to a global minimum and maximum, and adding reference lines.
The toolbox has a consistent syntax and nomenclature throughout and is designed to be as no-nonsense as possible, i.e., to not override or clash with any default Matlab styles and functions.
The following is an alphabetical list of the most important functions with a short description. A similar overview
can be brought up in the Matlab Command Window with "help cpsPlotTools", which provides clickable links to each function's extensive help-text.

cpsArrange - Rearrange the occlusion in the current Axes
cpsFindFig - Create or find a figure-window by name
cpsLabelPanels - Add lettering to multipart figures
cpsLimits - Selectively set axis limits
cpsRefLine - Draw reference lines
cpsText - Add text in standard locations
cpsTileFigs - Tile all open figure windows on the screen
cpsUnifyAxes - Unify axes limits within or between (sub)plots

For convenience, all files start with 'cps'. This aids recognition and has the added benefit that typing cps followed by the Tab-key will bring up a list of all available cpsPlotTools functions on your path. Provided, of course, that Tab-completion is enabled in Matlab's preferences.

As an example, consider the following code that produced this repository's icon:

cpsFindFig('Ex1');
for i = 1:4
subplot(2, 2, i);
D = mvnrnd([0; 0], [i 1; 1 i], 50*i);
plot(D(:,1), D(:,2), 'o');
cpsText(['N = ' num2str(50*i)], 'Location', 'BottomRight');
end
cpsLabelPanels;
cpsUnifyAxes('within', 'between');
cpsRefLine(gcf, '+', '/', 'k--');

After install, please run "showdemo cpsDemo" to see more illustrated examples.

This code is open-source and maintained on https://github.com/duijnhouwer/cpsPlotTools/

引用

Duijnhouwer (2024). cpsPlotTools (https://github.com/duijnhouwer/cpsPlotTools), GitHub. 取得済み .

MATLAB リリースの互換性
作成: R2015b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersApp Building についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

GitHub の既定のブランチを使用するバージョンはダウンロードできません

バージョン 公開済み リリース ノート
1.0.0.0

Updated the description, again :)

Updates to the Description
Updated the description.
Added example code to Description
added blank line to the description

この GitHub アドオンでの問題を表示または報告するには、GitHub リポジトリにアクセスしてください。
この GitHub アドオンでの問題を表示または報告するには、GitHub リポジトリにアクセスしてください。