josecamachop / MEDA-Toolbox

Multivariate Exploratory Data Analysis Toolbox for Matlab
GNU General Public License v3.0
30 stars 19 forks source link

Making some minor changes to the plot_vec function to allow for flexible axis limits iff there are labels #58

Closed mdarmstr closed 1 year ago

mdarmstr commented 1 year ago

If there are labels, and there are negative values in the input to plot_vec, then the lables will often exceed the minimum ylim. I added an if statement in cases where labels are input, and there are negative values - in this case the y limits are based on +/- the maximum entry, to allow for long labels for negative values. Otherwise nothing changes.