Turning color bar "upside down"

Hey,

I have maps of p-values and view them in DPABI viewer. The problem ist, that the color bar is the other way around, i.e. high values correspond to p-values of 0.05 and low values to p-values of 0.001 asf. When I try to use the threshold slider it start turning the slider towards higher p-values, although in the case of p-values I want the slider to start with high p-values and move towards lower p-values. Is it possible to change this somehow, that is turning the colorbar upside down somehow :)? I attached two pictures: colorbar2.png shows the colorbar when the threshold slider was moved to the right a bit.

 

thanks!

AttachmentSize
Image icon colorbar1.png3.22 KB
Image icon colorbar2.png3.26 KB

Hi,

You can use 1-p maps.

Or you can play with DPABI_VIEW->"more"->Save colorbar to MAT and Load colorbar from MAT.

Best,

Chao-Gan

I see, thanks :)

Hi Dr. Yan,

While trying to manually change the color bar range, I got the error below (also, please see attached image). Can you please help me find a solution to this?

Thanks in advance,

Felix

 

Error using feature
HGUsingMATLABClasses will be removed in a future release. Use ~verLessThan('matlab','8.4.0') instead.

Error in w_colormapeditor (line 135)
if feature('HGUsingMATLABClasses') % Work around G621525

Error in DPABI_VIEW>MorePopup_Callback (line 1431)
        w_colormapeditor(handles.DPABI_fig);

Error in gui_mainfcn (line 95)
        feval(varargin{:});

Error in DPABI_VIEW (line 43)
    gui_mainfcn(gui_State, varargin{:});

Could you try if it works in an older version of matlab?

Hi Dr. Yan,

I don't have any other versions installed at the moment, but if I am not the only user having this issue and there's a possibility that gathering this info could help if/when debugging is needed, I'd be happy to try it out after I get past some deadlines. For my current purposes, the best solution I have found is to change the ranges within the overlay selection GUI. Once again, thank you for your quick feedback!

Best,

Felix