IDL:IDL 可以在等值线图下方添加颜色条/其他图例信息,以便它不会重叠任何内容吗?

发布于 2024-09-03 23:49:14 字数 112 浏览 4 评论 0原文

我使用 map_set 调用来绘制地图,然后使用轮廓在其上绘制一些数据。

我想向该图添加一个图例以使其有用,但它必须位于整个图的下方,并且我尝试过的所有操作都会在我的图像之上创建一个重叠的图例。

I am using a map_set call to draw a map, and then using contour to plot some data on top of it.

I want to add a legend to this plot to make it useful, but it would have to be below the entire plot, and everything I've tried creates an overlapping legend over top of my image.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

叫思念不要吵 2024-09-10 23:49:15

你能做两幅图吗——一幅用于等高线图,另一幅用于颜色条/图例,
使用系统变量 !P.MULTI 将它们放在另一个之上?你也可能
需要在每个图上适当地指定 YMARGIN 关键字以防止它们重叠。

Can you do two plots -- one for your contour map, and another for the colorbar/legend,
using the system variable !P.MULTI to lay them out one above the other? You might also
need to specify YMARGIN keywords appropriately on each plot to keep them from overlapping.

半步萧音过轻尘 2024-09-10 23:49:15

您可以使用预先编写的颜色条例程(例如,来自 JHU 的 cbar 或来自 Coyote 的颜色条),并使用 POSITION 关键字将它们精确地放置在您想要的位置。您还可以将 POSITION 传递给 MAP_SET 以将其放置在您想要的位置。

You use pre-written colorbar routines (cbar from JHU or colorbar from Coyote, for example) and use the POSITION keyword to put them exactly where you want them. You can also pass POSITION to MAP_SET to position that where you want it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文