DISCRETECOLORBAR is the jGraph module of jLab.

 DISCRETECOLORBAR  Plots a colorbar with discrete variation.
 
    In filled contour plots one has discrete values of color (or of
    shading), but the colorbar resulting from Matlab's COLORBAR command    
    has a continuous spectrum of color.                                   
                                                                          
    DISCRETECOLORBAR(HC,CAX,CI) where HC is a handle to a colorbar axis   
    (i.e. from calling HC=COLORBAR), CAX=[CMIN CMAX] are the color axis   
    limits, and CI is a vector of contour intervals, redraws the colorbar 
    with discrete breaks at values CI and axis limits CAX.    
 
    HC=DISCRETECOLORBAR(...) also outputs the handle to teh .....
                                                                          
    DISCRETECOLORBAR(HC,CAX,CI,STR) where STR is either 'hori' or 'vert'  
    specifies whether the colorbar should have a horizontal or vertical   
    orientation; STR defaults to 'vert'.                                  
                                                                          
    Make sure to set the color axis of the contour plot is also is set    
    to CAX [via CAXIS(CAX)].        
 
    Usage:  discretecolorbar(hc,cax,ci);
            discretecolorbar(hc,cax,ci,str);
    _________________________________________________________________
    This is part of JLAB --- type 'help jlab' for more information 
    (C) 2001--2015 J.M. Lilly --- type 'help jlab_license' for details  

contents | allhelp | index