主题
PlotArea (属性)
返回一个 PlotArea 对象,该对象表示图表的绘图区。只读。
示例
python
#本示例将图表工作表 Chart1 绘图区的内部颜色设置为蓝绿色
def test():
chart = Application.Charts.Item("Chart1").ChartObjects(1).Chart
chart.PlotArea.Interior.ColorIndex = 8
python
#本示例将工作表Sheet1第一张内嵌图表的图表区设置为虚线边框,绘图区设置为点线边框
def test():
chart = Application.Worksheets.Item("Sheet1").ChartObjects(1).Chart
chart.ChartArea.Border.LineStyle = xlDash
chart.PlotArea.Border.LineStyle = xlDot