Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 2.17 KB

README.md

File metadata and controls

42 lines (30 loc) · 2.17 KB

figLib 💽 Alpha - Early access

Library created for saving figures in Matlab.

Library installation

Copy and paste this in your MATLAB console, if you want to update use git pull command

proj_path = pwd; cd(fullfile(userpath)); if(exist("figLib","dir")) rmdir("figLib", 's'); end
gitclone("https://github.com/informacja/fig", "figLib", Depth=1);
addpath(strcat(fullfile(userpath),"/figLib")); addpath(strcat(fullfile(userpath),"/figLib/extras")); savepath;
cd(proj_path); clc; fprintf(1,'To save current figure, just type here "figPW" (if not exist, empty will be created)\nAfter that you can type "help figPW" for more information about function arguments.\nIf you want save all opened figures just run "figPSW". For more information about whole library type "help figLib"\n')

Library uninstallation

Copy and paste this in your MATLAB console

proj_path = pwd; cd(fullfile(userpath)); fprintf(1,'Uninstalling ... "figLib"\n'); if(exist("figLib","dir")) rmdir("figLib", 's'); end
rmpath(strcat(fullfile(userpath),"/figLib")); rmpath(strcat(fullfile(userpath),"/figLib/extras")); savepath;
cd(proj_path); fprintf(1,'Successfully uninstalled "figLib"\n')

Example for saving figures to pdf (for article)

figPW art % paste and run in Command Window

If you have deleted or permission error, check you have opened file in PDF reader

Article data flow proposed to use with figLib

What is interesting you don't have to open the github.com, is possible to use only Github Desktiop and Overleaf (in real work process).

Everything what is needed, is an account on github and enabled synchronization with Desktop app and Overleaf.

Article data flow proposed to use with figLib

Basic functions

image

Heart of library

image