How to correct y axis label mirroring problem in Mac OS X.
Mostrar comentarios más antiguos
The Y label appears as a mirror image in figures. I am running 64-bit Matlab R2012b (8.0.0.783) in Mac OS X Version 10.8.3. I have seen some forums about similar problems with older versions but I haven't seen any discussion of it in more recent versions. Any help would be appreciated - thank you. Code for the figure pasted below.
% Create figure for permeability dispersion
figure3 = figure('Color',[1 1 1],'Position',[1 51 640 450],'PaperPositionMode','Auto','Visible','on');
% Create axes
axes('Parent',figure3,...
'YGrid','on',...
'XLim',[min(lambda_0)*1e9 max(lambda_0)*1e9],...
'XMinorTick','on',...
'XGrid','on',...
'LineWidth',3,...
'FontWeight','bold',...
'FontSize',18,...
'FontName','Times');
box('on');
hold('all');
% Create real part of simulated plot
plot(lambda_0.*1e9,real(mu_sim),'MarkerSize',20,'Marker','.','LineStyle','-','LineWidth',2,'Color',[1 0 0]);
% Create imag part of simulated plot
plot(lambda_0.*1e9,imag(mu_sim),'MarkerSize',20,'Marker','.','LineStyle','-','LineWidth',2,'Color',[0 0 1]);
% Create xlabel
xlabel('Wavelength [nm]','FontWeight','bold','FontSize',18,...
'FontName','Times');
% Create ylabel
ylabel('Relative Permeability (\mu)','FontWeight','bold','FontSize',18,...
'FontName','Times');
% Create legend
legend('{\mu}_{real} (COMSOL)','{\mu}_{imag} (COMSOL)','location','Best');
Respuesta aceptada
Más respuestas (1)
the cyclist
el 28 de Mzo. de 2013
0 votos
I have Mac OS X 10.8.3, and I did not see anything unusual, in either MATLAB 2012b or 2013a.
[I had to put in my own values for lambda_0 and mu_sim. Could it be that the bug is specific to that?]
Categorías
Más información sobre Numerical Integration and Differential Equations en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!