简体   繁体   English

在mayavi / mlab中更改颜色图标签

[英]change colormap labels in mayavi/mlab

I'm doing a quiver3d plot with vector length scaled by log(length)+5 in order to visualize a large range of lengths between 0 and 1. Is there however a way to change the colormap back to the original values while showing a logarithmic scale? 我正在做一个quiver3d图,矢量长度由log(length)+5缩放,以便可视化长度在0到1之间的较大范围。规模? I would like to do this purely in python, because if have problems running the mayavi GUI. 我只想在python中执行此操作,因为如果在运行mayavi GUI时遇到问题。

试图将其更改为对数

我不知道有什么好方法,但是我可以想到一个可能很容易做的怪异的事情:用正确的颜色图创建一个不可见的虚拟对象,并显示该对象的颜色条。

I am not sure whether this helps in your case but you could use quiver3d's scale_factor argument to limit the maximum quiver length. 我不确定这是否对您有帮助,但是您可以使用quiver3d的scale_factor参数来限制最大颤抖长度。 But that is of course linear scaling, not logarithmic. 但这当然是线性标度,而不是对数。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM