搜索此博客

2018年6月6日星期三

IDL Plot函数绘制散点图时设置透明度

目标:
如图1散点图中如果点数太多,簇与簇之间的混淆则难以辨识。因而,希望通过更改某一类簇的透明度来清晰表现不同类簇之间的混淆性与可分性。
图1 散点图

IDL中PLOT函数的关键字:

Syntax


graphic = PLOT(Y[Format] [, Keywords=value] [, Properties=value])
graphic = PLOT(XY[Format] [, Keywords=value] [, Properties=value])
graphic = PLOT(Equation[Format] [, Keywords=value] [, Properties=value])

Keywords

Keywords are applied only during the initial creation of the graphic.
AXIS_STYLE=value
/BUFFER, /CURRENT, /DEVICEDIMENSIONS=[widthheight], LAYOUT=arrayLOCATION=[xy], MARGIN=scalar or [leftbottomrighttop], /NO_TOOLBAR, /NODATA, /OVERPLOT, /WIDGETS

Properties

Properties can be set as keywords to the function during creation, or retrieved or changed using the "." notation after creation.

参数有很多,与目标相关的参数为SYM_TRANSPARENCY,范围为0-100。其中,默认值为0,即不透明,100为完全透明。

SYM_TRANSPARENCY

An integer between 0 and 100 that specifies the percent transparency of the symbols. The default value is 0.

Reference:


没有评论:

发表评论

LibSVM Chinese Brief Infroduction

Reference: [1]  https://blog.csdn.net/v_july_v/article/details/7624837 [2]  https://wenku.baidu.com/view/c402e983336c1eb91b375d37.html?fr...

  • Word (2)