customized bodeplot in matlab introduces offset in frequency axis

For my Master Thesis i need to have good quality visualisations of a bodeplot. I need a level of customization, which lead me to the usage of subplots where i used semilogx. But i found out, that my x-axis seems to be shifted by 10^1 to the left. Not just visually but my bodeplot has a magnitude at lets say 10^2 which it should have at 10^3. Can anyone help me with finding the error because i am missing it. Here is my Code:

%% Bode Plot of the Transfer Function
% Common parameters
%f = logspace(1, 6, 1000);
w = 2*pi*logspace(log10(10e0), log10(10e5), 1000);

% get magnitude response of closed loop current control with CCF
[mag, phase, w] = bode(G_sys_ol, w);
mag = squeeze(mag);
phase = squeeze(phase);

% Interpolate the magnitude response at the fo
mag_f_o = interp1(w, mag, 2*pi*f_b);
mag_f_o_dB = 20 * log10(mag_f_o)

% Create a figure for Bode plots
figure_CCF = figure('Name', 'REsulting OL Bodeplot of CCF', 'Visible', 'on', 'Color', 'white');

% Plot magnitude responses on the same subplot
ax1 = subplot(2,1,1);

% plot magnitude response
semilogx(w/(2*pi), 20*log10(squeeze(mag)), 'LineWidth', 2);
hold on;

x_norm = 0.2485;
%y1_norm = 0.5;
y1_norm = 0.81;
y2_norm = 0.865;
% Add the double arrow annotation
annotation('doublearrow', [x_norm x_norm],[y1_norm y2_norm]); 


% plot settings
grid on;
ylabel('Magnitude (dB)', 'FontSize', figFontsize);
ax = gca;
ax.FontSize = figFontsize; % Apply font size to axis ticks
ax.TickLength = tickLength; % Adjust the length of the ticks
% Remove x-ticks
ax.XTickLabel = [];
% create y-axis margin
ax.YLimMode = 'auto'; 
ylim_values = ylim;
new_ylim = ylim_values + [-1 1] * 0.1 * diff(ylim_values);
ylim(new_ylim); 



% highlight resonance, crosover and grid frequency
% line([f_r f_r], new_ylim, 'Color', 'k', 'LineStyle', '--', 'LineWidth', 0.8); % Vertical line
% line([f_cr f_cr], new_ylim, 'Color', 'k', 'LineStyle', '--', 'LineWidth', 0.8); % Vertical line
line([f_b f_b], new_ylim, 'Color', 'k', 'LineStyle', '--', 'LineWidth', 0.8); % Vertical line

% Calculate and mark gain and phase margin
[GM, PM, wcg, wcp] = margin(G_sys_ol);
% Convertn GM to dB
GM_dB = 20*log10(GM);
% Mark gain margin on magnitude plot
%text(wcg/(2*pi), (new_ylim(1) + 0)/2, '}', 'FontSize', 24, 'Color', 'r', 'HorizontalAlignment', 'center');
%text(wcg/(2*pi), -3, ['Gain Margin = ', num2str(GM_dB), ' dB'], 'FontSize', figFontsize, 'Color', 'r', 'VerticalAlignment', 'top');
%rectangle('Position', [wcg/(2*pi)*0.75, -GM_dB-5, wcg/(2*pi)*0.9, GM_dB+10], 'EdgeColor', 'k', 'LineWidth', 0.75)

% Adjust subplot position
ax1.Position = [0.1 0.58 0.85 0.4];
% Legend
legend('$G_{mathrm{cc}}^mathrm{ol}$', 'FontSize', figFontsize, 'Location', 'northeast');

%% Plot phase responses on the same subplot
ax2 = subplot(2,1,2);
% get phase response of closed loop current control with CCF
semilogx(w/(2*pi), squeeze(phase), 'LineWidth', 2);
%hold on;

grid on;
xlabel('Frequency (Hz)', 'FontSize', figFontsize);
ylabel('Phase ($^circ$)', 'FontSize', figFontsize);

ax = gca;
ax.FontSize = figFontsize; % Apply font size to axis ticks
ax.TickLength = tickLength; % Adjust the length of the ticks
% create y-axis margin
ax.YLimMode = 'auto';
ylim_values = ylim;
new_ylim = ylim_values + [-1 1] * 0.1 * diff(ylim_values);
ylim(new_ylim); 

% highlight resonance, crossover and grid frequency
% line([f_r f_r], new_ylim, 'Color', 'k', 'LineStyle', '--', 'LineWidth', 0.8); % Vertical line
% line([f_cr f_cr], new_ylim, 'Color', 'k', 'LineStyle', '--', 'LineWidth', 0.8); % Vertical line
line([f_b f_b], new_ylim, 'Color', 'k', 'LineStyle', '--', 'LineWidth', 0.8); % Vertical line
% text(f_r-3000, min(new_ylim)-7, '$f_mathrm{r,LCL}$', 'FontSize', figFontsize, 'Interpreter', 'latex', 'HorizontalAlignment', 'left', 'VerticalAlignment', 'top');
% text(f_cr-400, min(new_ylim)-7, '$f_mathrm{cr}$', 'FontSize', figFontsize, 'Interpreter', 'latex', 'HorizontalAlignment', 'left', 'VerticalAlignment', 'top');
text(f_b-5, min(new_ylim)-1, '$f_mathrm{o}$', 'FontSize', figFontsize, 'Interpreter', 'latex', 'HorizontalAlignment', 'left', 'VerticalAlignment', 'top');

% Mark phase margin on phase plot
%line([wcp wcp]/(2*pi), [new_ylim(1) -180+PM], 'Color', 'b', 'LineStyle', '--', 'LineWidth', 1.5);
%text(wcp/(2*pi), -180+PM+10, ['Phase Margin = ', num2str(PM), '°'], 'FontSize', figFontsize, 'Color', 'b', 'VerticalAlignment', 'top');

% Adjust subplot position
ax2.Position = [0.1 0.1 0.85 0.4];
% Legend
legend('$G_{mathrm{cc}}^mathrm{ol}$', 'FontSize', figFontsize, 'Location', 'northeast');

I tried to have a high quality custom bodeplot, which i did achieve but my x-axis is shifted by 10^1

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật