Why is the smoothing effect of【 pcolor() shading interp 】worse on 2025a than the old version 2023b
When I updated the latest 2025a, I tried to draw a picture with pcolor() and found that pixel blocks appeared on the picture drawn by the 2025a version, but not in the 2023b version, so I was a little confused why?
The code is as follows,and the data package and operation results are shown in the attachment
clc;clear;close all
load(‘test.mat’)
figure;
figWidth = 14;
figHeight = figWidth * (10 – (-5)) / (160 – 130);
set(gcf, ‘Units’, ‘centimeters’, ‘Position’, [10 10 figWidth figHeight]);
set(gcf, ‘Color’, ‘white’, ‘InvertHardcopy’, ‘off’);
h = pcolor(a, b, d);
shading interp
set(h, ‘EdgeColor’, ‘none’)
caxis([-1.2 1.2])
set(gca, ‘YDir’, ‘reverse’,’TickDir’,’out’, ‘FontSize’, 8, ‘Box’, ‘on’,’FontName’,’Arial’)
colorbar(‘Location’, ‘eastoutside’,’FontName’,’Arial’,’FontWeight’,’normal’);
exportgraphics(gca,’test.pdf’,’BackgroundColor’,’none’,’ContentType’,’vector’,’Resolution’,600)
close allWhen I updated the latest 2025a, I tried to draw a picture with pcolor() and found that pixel blocks appeared on the picture drawn by the 2025a version, but not in the 2023b version, so I was a little confused why?
The code is as follows,and the data package and operation results are shown in the attachment
clc;clear;close all
load(‘test.mat’)
figure;
figWidth = 14;
figHeight = figWidth * (10 – (-5)) / (160 – 130);
set(gcf, ‘Units’, ‘centimeters’, ‘Position’, [10 10 figWidth figHeight]);
set(gcf, ‘Color’, ‘white’, ‘InvertHardcopy’, ‘off’);
h = pcolor(a, b, d);
shading interp
set(h, ‘EdgeColor’, ‘none’)
caxis([-1.2 1.2])
set(gca, ‘YDir’, ‘reverse’,’TickDir’,’out’, ‘FontSize’, 8, ‘Box’, ‘on’,’FontName’,’Arial’)
colorbar(‘Location’, ‘eastoutside’,’FontName’,’Arial’,’FontWeight’,’normal’);
exportgraphics(gca,’test.pdf’,’BackgroundColor’,’none’,’ContentType’,’vector’,’Resolution’,600)
close all When I updated the latest 2025a, I tried to draw a picture with pcolor() and found that pixel blocks appeared on the picture drawn by the 2025a version, but not in the 2023b version, so I was a little confused why?
The code is as follows,and the data package and operation results are shown in the attachment
clc;clear;close all
load(‘test.mat’)
figure;
figWidth = 14;
figHeight = figWidth * (10 – (-5)) / (160 – 130);
set(gcf, ‘Units’, ‘centimeters’, ‘Position’, [10 10 figWidth figHeight]);
set(gcf, ‘Color’, ‘white’, ‘InvertHardcopy’, ‘off’);
h = pcolor(a, b, d);
shading interp
set(h, ‘EdgeColor’, ‘none’)
caxis([-1.2 1.2])
set(gca, ‘YDir’, ‘reverse’,’TickDir’,’out’, ‘FontSize’, 8, ‘Box’, ‘on’,’FontName’,’Arial’)
colorbar(‘Location’, ‘eastoutside’,’FontName’,’Arial’,’FontWeight’,’normal’);
exportgraphics(gca,’test.pdf’,’BackgroundColor’,’none’,’ContentType’,’vector’,’Resolution’,600)
close all pcolor, resolution MATLAB Answers — New Questions