Aufgrund einer Störung des s3 Storage, könnten in nächster Zeit folgende GitLab Funktionen nicht zur Verfügung stehen: Container Registry, Job Artifacs,. Wir bitten um Verständnis. Es wird mit Hochdruck an der Behebung des Problems gearbeitet. Weitere Informationen zur Störung des Object Storage finden Sie hier:

Commit 204e2c0f authored by Jan-Gerrit Richter's avatar Jan-Gerrit Richter
Browse files

added custom colorplot mode to ita_plottools_colortable

this allows to set a custom color-scheme before plotting with the toolbox.
best call
and set set(groot,'defaultAxesColorOrder',values)
parent d02a0da6
......@@ -13,6 +13,9 @@ function varargout = ita_plottools_colortable(varargin)
% Call: color_out = ita_plottools_colortable(N) gives the Nth color
% Call: colorTableMatrix = ita_plottools_colortable('ita') Sets a colororder defined in this file
% Call: colorTableMatrix = ita_plottools_colortable('winter(N)') If you have only N channels %
% Call: ita_plottools_colortable('custom') to retain previous settings
% best done by calling: ita_preferences('colortablename','custom');
% before the toolbox plot functions
% Then you can set it as default with set(0,'DefaultAxesColorOrder',colorTableMatrix)
% See also ita_toolbox_setup.
......@@ -92,6 +95,11 @@ if nargin == 1
ita_verbose_info('ITA_PLOTTOOLS_COLORTABLE:Setting ITA Color Order.',2);
result = [0 0 0];
elseif strcmpi(varargin{1},'custom')
colorTableName = 'custom';
% set(0,'DefaultAxesLineStyleOrder','-|-.|--|:')
ita_verbose_info('ITA_PLOTTOOLS_COLORTABLE:Setting Custom Color Order.',2);
result = get(0,'defaultAxesColorOrder');
colorTableName = varargin{1};
hfig = figure;
......@@ -121,7 +129,9 @@ ita_preferences('colortablename', colorTableName);
% ita_verbose_info('ITA_PLOTTOOLS_COLORTABLE:Preferences Set.',1);
%% Set it as default
if ~strcmp(colorTableName,'custom')
%% Find output parameters
varargout(1) = {result};
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment