重叠轮廓标签? [英] Overlapping contour labels?

查看:108
本文介绍了重叠轮廓标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我正在尝试绘制等高线,每个等高线在相关图上代表0.1的增量.

So I'm trying to do contour plotting with each contour representing an increment of 0.1 on a correlation map.

[c2,h2] = contourm(GlobalCorrs,geoidrefvec, .2:.1:1,'k','LineWidth',1);
ht2 = clabelm(c2,h2);

问题是..当有多个紧密间隔的轮廓时,它们往往会重叠,如下图所示.

The issue is.. when there are multiple closely-spaced contours, they tend to overlap, as shown in the top picture below.

但是,如果我放大下面的图片,我可以看到0.4标签被0.2和0.3标签覆盖.这是有问题的,因为0.4的相关性比0.2的相关性重要得多.

But if I zoom into the bottom picture here, I can see that the 0.4 label was covered by up the 0.2 and 0.3 labels. This is problematic since a correlation of 0.4 is a lot more significant than a correlation of 0.2.

有没有一种方法可以解决此问题,以便(1)较高的相关性标签可以掩盖较低的相关性标签,或者(2)可以使相关性标签在图形周围更加随机地分布?

Is there a way to fix this so that either (1) higher correlation labels can cover up lower correlation labels, or (2) where I can get the correlation labels to be more randomly spaced around the figures?

推荐答案

LabelSpacing属性无法为您提供足够的灵活性.在某些幸运的情况下,它可能会有所帮助.我建议:只需手动设置标签即可:

The LabelSpacing property doesn't offer you enough flexibility. It could help in some lucky cases. I'd recommend: just set the labels manually:

clabel(C,h,'manual',...)

给您一个十字准线,以定义在何处设置标签.

giving you a cross hair to define where to set the labels.

这篇关于重叠轮廓标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆