Quantcast
Channel: Latest Discussions - COMSOL Forums
Viewing all articles
Browse latest Browse all 26527

LiveLink for MATLAB Y Axis Label Mirroring Problem in Mac OS X

$
0
0
When plotting a figure with the LiveLink for MATLAB, the Y label appears as a mirror image. I am running COMSOL 4.3a (4.3.1.161) with 64-bit Matlab R2012b (8.0.0.783) in Mac OS X Version 10.8.3. The problem does not occur if I make the plot directly in Matlab, so I believe it must be a bug in the LiveLink. Has anyone else experienced this problem or know if it is a known bug or have any workarounds? 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');


Viewing all articles
Browse latest Browse all 26527

Trending Articles