2

这是我生成简单正弦函数的代码。如何操作 linePlotImageDisplay 中 X/Y 轴标签和刻度的字体大小。?

Number N = 360, phase =60*pi()/180
image sine := RealImage("Sine Pattern", 4, N, 1)
sine = cos(4*pi()*(icol/N)-phase)
setDisplayType(sine, 4)
sine.ImageSetDimensionUnitString(0, "Angle (degree)" )
sine.ImageSetIntensityUnitString("Radius (pixels)" )
linePlotImageDisplay lpid = sine.imageGetImageDisplay(0)
lpid.linePlotImageDisplaySetDoAutoSurvey(0,0)
showImage(sine)

正弦函数

4

1 回答 1

1

您要查找的命令仅在较新的 GMS 版本中可用,并且仅在 GMS 3 之后才记录。它们是:

void LinePlotImageDisplaySetFontSize( LinePlotImageDisplay lpid, Number size )

void LinePlotImageDisplaySetFontFamily( LinePlotImageDisplay lpid, string familyName )

void LinePlotImageDisplaySetFontAttributes( LinePlotImageDisplay lpid, number bold, number style )

void LinePlotImageDisplaySetFontColor( LinePlotImageDisplay lpid, number r, number g, number b )

Get...以及F1 帮助文档(最近的 GMS 版本)中描述的相应命令:

在此处输入图像描述

于 2016-02-25T08:43:22.980 回答