FigureWhitespaceRemove is a MATLAB function for the removal of white space around exported figures to png and tiff files.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
To download the code you can use the "clone or download" button to download the zip with the code or use git. To install git on Ubuntu use the following commands in a terminal
sudo apt update
sudo apt install git
To pull the repository from github use the following command in a terminal
git clone https://github.com/avramidis/FigureWhitespaceRemove.git
To use FigureWhitespaceRemove function in any folder use the following command in MATLAB in the folder where FigureWhitespaceRemove folder is located. More information can be found at https://www.mathworks.com/help/matlab/ref/addpath.html
addpath('FigureWhitespaceRemove')
An example code that uses FigureWhitespaceRemove is the following
iminfo=figureWhitespaceRemove('testFigure');
If the run was successful the output will be the iminfor struct that includes information about the image generated by the testFigure.fig. Also, the images testFigure.png and testFigure.tif are generated.
This project is licensed under the MIT License - see the LICENSE file for details
To cite FigureWhitespaceRemove please cite the URL and the DOI of the release version you used. The DOI of the latest release is at the badge at the top of this README.md file.
- This readme file is based on the template found at https://gist.github.com/PurpleBooth/109311bb0361f32d87a2