PySide6.QtGraphs.QAreaSeries¶
- class QAreaSeries¶
QAreaSeries
类在面积图中展示数据。更多…在版本6.8中添加。
概要¶
属性¶
borderColorᅟ
- 区域的边框颜色。默认值为 Qt::transparent,表示边框颜色由主题定义colorᅟ
- 区域的填充颜色。默认值为 Qt::transparent,表示颜色由主题定义
方法¶
def
__init__()
def
borderColor()
def
brush()
def
color()
def
pen()
def
pointsVisible()
def
setBorderColor()
def
setBrush()
def
setColor()
def
setPen()
信号¶
def
clicked()
def
colorChanged()
def
doubleClicked()
def
hovered()
def
pressed()
def
released()
def
selected()
注意
本文档可能包含从C++自动翻译到Python的代码片段。我们始终欢迎对代码片段翻译的贡献。如果您发现翻译问题,您也可以通过在我们的https:/bugreports.qt.io/projects/PYSIDE上创建工单来告知我们。
详细描述¶
面积图用于绘制由点组成的区域。这些点由两个系列定义:
upperSeries
和lowerSeries
。系列之间的区域被绘制为图形。如果只定义了upperSeries
,则区域位于图形底部和上部系列之间。注意
当使用
from __feature__ import true_property
时,属性可以直接使用,否则通过访问器函数使用。此属性保存区域的边框颜色。默认值为
Qt::transparent
,表示边框颜色由主题定义。- Access functions:
此属性保存区域的填充颜色。默认值为
Qt::transparent
,表示颜色由主题定义。- Access functions:
- property pointLabelsClippingᅟ: bool¶
- Access functions:
- Access functions:
- Access functions:
- property pointLabelsFormatᅟ: str¶
- Access functions:
- property pointLabelsVisibleᅟ: bool¶
- Access functions:
- borderColor()¶
- Return type:
另请参阅
属性
borderColorᅟ
的获取器。属性
borderColorᅟ
的通知信号。- color()¶
- Return type:
另请参阅
属性
colorᅟ
的获取器。属性
colorᅟ
的通知信号。- pointLabelsClipping()¶
- Return type:
布尔
属性
pointLabelsClippingᅟ
的获取器。- pointLabelsClippingChanged(clipping)¶
- Parameters:
clipping – bool
属性
pointLabelsClippingᅟ
的通知信号。属性
pointLabelsColorᅟ
的获取器。属性
pointLabelsColorᅟ
的通知信号。属性
pointLabelsFontᅟ
的获取器。属性
pointLabelsFontᅟ
的通知信号。- pointLabelsFormat()¶
- Return type:
字符串
属性
pointLabelsFormatᅟ
的获取器。- pointLabelsFormatChanged(format)¶
- Parameters:
format – str
属性
pointLabelsFormatᅟ
的通知信号。- pointLabelsVisibilityChanged(visible)¶
- Parameters:
visible – 布尔值
属性
pointLabelsVisibleᅟ
的通知信号。- pointLabelsVisible()¶
- Return type:
布尔
属性
pointLabelsVisibleᅟ
的获取器。- pointsVisible()¶
- Return type:
布尔
- selected()¶
属性
borderColorᅟ
的设置器。属性
colorᅟ
的设置器。- setPointLabelsClipping([enabled=true])¶
- Parameters:
enabled – 布尔值
属性
pointLabelsClippingᅟ
的设置器。属性
pointLabelsColorᅟ
的设置器。属性
pointLabelsFontᅟ
的设置器。- setPointLabelsFormat(format)¶
- Parameters:
format – str
属性
pointLabelsFormatᅟ
的设置器。- setPointLabelsVisible([visible=true])¶
- Parameters:
visible – 布尔值
属性
pointLabelsVisibleᅟ
的设置器。- setPointsVisible([visible=true])¶
- Parameters:
visible – 布尔值