フィルターのクリア

How can I change the resolution of my plots?

5 ビュー (過去 30 日間)
Behrooz Daneshian
Behrooz Daneshian 2023 年 2 月 10 日
回答済み: Matt J 2023 年 2 月 11 日
Hi everyone,
I am going to plot contour line maps using the code below. My problem is that some contour numbers can not be distinguished in some of the plots. Is there any way to adjust plots' resolution so that one can read contour numbers without any difficulty?
clear
close all
clc
load('POFDE.mat');
data = cell2mat(POFDE);
[lat,lon] = meshgrid(unique(data(:,1)),unique(data(:,2)));
for i = 1:(size(data, 2)-2)
figure
I = scatteredInterpolant(data(:,[1 2]), data(:,i+2));
contourf(lon,lat,min(1,max(0,I(lat,lon))),'ShowText','on')
colorbar
title(['The probability of frost depth exceedance of \Omega_{\delta} = ' num2str(i) ' feet'])
exportgraphics(gca, sprintf('FrostPlot_%d_feet.png', i))
end
Warning: Duplicate data points have been detected and removed - corresponding values have been averaged.
Warning: Duplicate data points have been detected and removed - corresponding values have been averaged.
Warning: Duplicate data points have been detected and removed - corresponding values have been averaged.
Warning: Duplicate data points have been detected and removed - corresponding values have been averaged.
Warning: Duplicate data points have been detected and removed - corresponding values have been averaged.

採用された回答

Matt J
Matt J 2023 年 2 月 11 日
You can zoom in the portion of the contour plot where you want the contour labels better resolved, e.g.,
openfig untitled.fig
ans =
Figure (1) with properties: Number: 1 Name: '' Color: [1 1 1] Position: [680 558 560 420] Units: 'pixels' Show all properties

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeContour Plots についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by