Grapher Automation 学习及绘制彩色渐变平面剖面图原理

本文介绍了使用Grapher Automation创建和设置图形对象,特别是如何绘制彩色渐变剖面图。内容涵盖Application Object、AutoPlot和AutoGraph对象,以及AddLinePlotGraph方法、坐标轴设置等,详细阐述了绘图过程和关键步骤。
摘要由CSDN通过智能技术生成

Application Object

Application 对象是Grapher Automation的顶级对象,包括其他对象。
The Application object represents the Grapher program. It is a single instance of Grapher and it is the root of all objects in Grapher. External programs typically create an instance of the Application object during initialization**. In VB this is done using the CreateObject function as in:**

Set GrapherApp = CreateObject(“Grapher.Application”)

The CreateObject function activates a new instance of Grapher, and returns a reference to the Application object to the script.

When Grapher is started by a script, its main window is initially hidden. To make the Grapher window visible, you must set the Application object’s Visible property to True:

当grapher由脚本启动时,其主窗口最初是隐藏的。若要使图示器窗口可见,必须将应用程序对象的Visible属性设置为true:

Set GrapherApp = CreateObject(“Grapher.Application”)
GrapherApp.Visible = True

AutoPlot Object

The AutoPlot object is the basic plot object from which most plots are derived.
autoplot对象是基本绘图对象,大多数的绘图都是由它派生的。
Derived from: AutoShape object (All methods and properties of AutoShape apply to this object.)
派生自:AutoShape object,继承了AutoShape object的所有对象和方法(AutoShape object的所有方法和属性都应用于此对象。)

Dim GrapherApp As Object
Set GrapherApp = CreateObject(“Grapher.Application”) '创建Grapher.Applicatio对象
GrapherApp.Visible = True’设置grapher窗口可见
Dim Plot As Object
Set Plot = GrapherApp.Documents.Add(grfPlotDoc)'AutoPlot 对象
Dim Shapes As Object
Set Shapes = Plot.Shapes’shapes对象

AutoGraph Object

AutoGraph 对象包含对Graph(图形)的设置
Dim GrapherApp As Object
Set GrapherApp = CreateObject(“Grapher.Application”) '创建Grapher.Applicatio对象
GrapherApp.Visible = True’设置grapher窗口可见
Dim Plot As Object
Set Plot = Gr

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值