Ignore:
Timestamp:
Aug 17, 2012, 11:47:16 PM (9 years ago)
Author:
sommeria
Message:

various bugs corrected. get_field now used in a passive way from uvmat: variable names are transferred from get_field to uvmat.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/set_col_vec.m

    r405 r517  
    2121% vec_C: matlab vector representing the scalar setting the color
    2222function [colorlist,col_vec,colcode_out]=set_col_vec(colcode,vec_C)
    23 col_vec=[];
     23col_vec=ones(size(vec_C));%all vectors at color#1 by default
     24
    2425if ~isstruct(colcode),colcode=[];end;
    2526colcode_out=colcode;%default
    2627if isempty(vec_C) || ~isnumeric(vec_C)
    2728    colorlist=[0 0 1]; %blue
    28     col_vec=ones(size(vec_C));
    2929    return
    3030end
    3131
    32 
    33 
    34 % colcode_out.ColCode1=ColCode1;
    35 % colcode_out.ColCode2=ColCode2;
    3632%% uniform color plot
    3733check_multicolors=0;
    38 col_vec=ones(size(vec_C));%all vectors at color#1 by default
    3934%default input parameters
    4035if ~isfield(colcode,'ColorCode') || isempty(colcode.ColorCode)
Note: See TracChangeset for help on using the changeset viewer.