Prev: rescaling for fmincon
Next: visual studio 2010 express
From: PO_STA St-Arnaud on 28 Jul 2010 16:34 I would like to have the Y axis at the origin rather than "left" or "right". I need my Ytickmarks to stay the same and I dont want my legend to change. Heres my code right now ; TEST(:,1) = line(deplacement_axial, Vessel_pressure,'DisplayName',pconfinement); hold on TEST(:,2) = line(deplacement_radial, Vessel_pressure); GraphyLabel = ylabel('In Vessel LC pressure'); GraphxLabel = xlabel('Axial strain (mm/mm)'); hasbehavior(TEST(2),'legend',false); GraphLegend = legend('-DynamicLegend','location', 'NorthEastOutside' ); set(gca, ... 'Box' , 'on' , ... 'TickDir' , 'in' , ... 'TickLength' , [.02 .02] , ... 'XMinorTick' , 'on' , ... 'YMinorTick' , 'on' , ... 'YGrid' , 'on' , ... 'XColor' , [.3 .3 .3], ... 'YColor' , [.3 .3 .3], ... 'LineWidth' , 1 ); Any ideas??
From: someone on 28 Jul 2010 17:26 "PO_STA St-Arnaud" <pierre-olivier.st-arnaud.1(a)ulaval.ca> wrote in message <i2q47s$aqn$1(a)fred.mathworks.com>... > I would like to have the Y axis at the origin rather than "left" or "right". I need my Ytickmarks to stay the same and I dont want my legend to change. Heres my code right now ; > > TEST(:,1) = line(deplacement_axial, Vessel_pressure,'DisplayName',pconfinement); > hold on > TEST(:,2) = line(deplacement_radial, Vessel_pressure); > GraphyLabel = ylabel('In Vessel LC pressure'); > GraphxLabel = xlabel('Axial strain (mm/mm)'); > hasbehavior(TEST(2),'legend',false); > GraphLegend = legend('-DynamicLegend','location', 'NorthEastOutside' ); > set(gca, ... > 'Box' , 'on' , ... > 'TickDir' , 'in' , ... > 'TickLength' , [.02 .02] , ... > 'XMinorTick' , 'on' , ... > 'YMinorTick' , 'on' , ... > 'YGrid' , 'on' , ... > 'XColor' , [.3 .3 .3], ... > 'YColor' , [.3 .3 .3], ... > 'LineWidth' , 1 ); > > Any ideas?? % You might download & try (from the MATLAB FEX) either draworigin: http://www.mathworks.com/matlabcentral/fileexchange/24509-draworigin-m % and/or axiscenter: http://www.mathworks.com/matlabcentral/fileexchange/22956-axescenter
|
Pages: 1 Prev: rescaling for fmincon Next: visual studio 2010 express |