Turning color bar "upside down"

Submitted by David on

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!

YAN Chao-Gan

Fri, 02/26/2016 - 05:57

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

flgarcia

Mon, 11/13/2017 - 19:53

In reply to by YAN Chao-Gan

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{:});

Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)DPABI_VIEW('MorePopup_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.

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

Attachment Size
colorbar2.png 3.26 KB
colorbar1.png 3.22 KB