Changeset 1175 for trunk/src/uvmat.m


Ignore:
Timestamp:
Mar 11, 2025, 9:51:39 PM (4 days ago)
Author:
sommeria
Message:

add loglin histogram in uvmat and image rescale in civ_series

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/uvmat.m

    r1169 r1175  
    40194019    set(handles.Histogram,'Visible','off')
    40204020    set(handles.HistoMenu,'Visible','off')
     4021    set(handles.LogLinHisto,'Visible','off')
    40214022    set(handles.HistoAxes,'Visible','off')
    40224023    hlegend=findobj(handles.uvmat,'Tag','HistoLegend');
     
    42654266        set(handles.Histogram,'Visible','on')
    42664267        set(handles.HistoMenu,'Visible','on')
     4268        set(handles.LogLinHisto,'Visible','on')
    42674269        set(handles.HistoAxes,'Visible','on')
    42684270        HistoMenu_Callback(handles.HistoMenu, [], handles)% plot first histogram
     
    43834385                C=reshape(double(B),1,nxy(1)*nxy(2));% reshape in a vector
    43844386                Histo.histo(:,col)=hist(C, Histo.(FieldName));  %calculate histogram
    4385             end
    4386         end
    4387         plot_field(Histo,handles.HistoAxes);
     4387                if isequal(get(handles.LogLinHisto,'Value'),2)
     4388                    PlotParam.Type='semilogx';
     4389                else
     4390                    PlotParam.Type='plot';
     4391                end
     4392            end
     4393        end
     4394        plot_field(Histo,handles.HistoAxes,PlotParam);
    43884395        hlegend=findobj(handles.uvmat,'Tag','HistoLegend');
    43894396        if isempty(hlegend)
     
    61806187
    61816188
     6189
     6190
     6191% --- Executes on selection change in LogLinHisto.
     6192function LogLinHisto_Callback(hObject, eventdata, handles)
     6193    HistoMenu_Callback(hObject, eventdata, handles)
     6194% hObject    handle to LogLinHisto (see GCBO)
     6195% eventdata  reserved - to be defined in a future version of MATLAB
     6196% handles    structure with handles and user data (see GUIDATA)
     6197
     6198% Hints: contents = cellstr(get(hObject,'String')) returns LogLinHisto contents as cell array
     6199%        contents{get(hObject,'Value')} returns selected item from LogLinHisto
     6200
     6201
Note: See TracChangeset for help on using the changeset viewer.