Gast
2010-11-02, 13:04:55
Hallo Leute
ich habe ein problem bei dem ich nicht weiter komme... ich bin relativ neu in Matlab.
folgendes:
curPlotNr = 2;
axH(curPlotNr) = subplot('Position',[PlotPosLeft 1-(curPlotNr-1)*(FreePlotHeight+PlotHeight)-(FirstAndLastFreePlotHeight+PlotHeight) PlotWidth PlotHeight]);
plot(myData{2}{2},Manipulateur);
title(axH(curPlotNr),'Manipulateur de traction et freinage','FontWeight','bold');
ylabel(axH(curPlotNr),'Cran','color', [1 1 1]);
set(axH(curPlotNr),'YLim',[-12 10]);
set(axH(curPlotNr),'YTick',[-12 -10 -8 -6 -4 -2 0 2 4 6 8 10]);
set(axH(curPlotNr),'YTickLabel',{'U' 'F10' 'F8' 'F6' 'F4' 'F2' '0' 'T2' 'T4' 'T6' 'T8' 'T10'});
set(axH(curPlotNr),'YGrid','on');
set(axH(curPlotNr),'ycolor', [1 0 0]);
jetzt würde ich gerne die YLabels von der YColor abtrennen. Also so, dass nur die hifslinien eine farbveränerung haben. die Labels würde ich gerne weiterhin schwarz behalten.
Mit dem Zeug im Internet komme ich nicht weiter. bspw. geht das oft benannte 'gridcolor' bei mir nicht... da spuckt mein matlab einen error aus.
ich nutze matlab R2008a
danke für die hilfe
ich habe ein problem bei dem ich nicht weiter komme... ich bin relativ neu in Matlab.
folgendes:
curPlotNr = 2;
axH(curPlotNr) = subplot('Position',[PlotPosLeft 1-(curPlotNr-1)*(FreePlotHeight+PlotHeight)-(FirstAndLastFreePlotHeight+PlotHeight) PlotWidth PlotHeight]);
plot(myData{2}{2},Manipulateur);
title(axH(curPlotNr),'Manipulateur de traction et freinage','FontWeight','bold');
ylabel(axH(curPlotNr),'Cran','color', [1 1 1]);
set(axH(curPlotNr),'YLim',[-12 10]);
set(axH(curPlotNr),'YTick',[-12 -10 -8 -6 -4 -2 0 2 4 6 8 10]);
set(axH(curPlotNr),'YTickLabel',{'U' 'F10' 'F8' 'F6' 'F4' 'F2' '0' 'T2' 'T4' 'T6' 'T8' 'T10'});
set(axH(curPlotNr),'YGrid','on');
set(axH(curPlotNr),'ycolor', [1 0 0]);
jetzt würde ich gerne die YLabels von der YColor abtrennen. Also so, dass nur die hifslinien eine farbveränerung haben. die Labels würde ich gerne weiterhin schwarz behalten.
Mit dem Zeug im Internet komme ich nicht weiter. bspw. geht das oft benannte 'gridcolor' bei mir nicht... da spuckt mein matlab einen error aus.
ich nutze matlab R2008a
danke für die hilfe