QWT API (中文) 7.3.0
Qt绘图库 - 中文API文档
载入中...
搜索中...
未找到
静态 Public 成员函数 | Public 属性 | 所有成员列表
QwtFormatString结构体 参考

Parsed representation of a matplotlib-style format string 更多...

#include <qwt_pyplot.h>

静态 Public 成员函数

static QwtFormatString parse (const QString &fmt)
 Parse a matplotlib-style format string
 

Public 属性

QColor color
 
QwtSymbol::Style marker = QwtSymbol::NoSymbol
 
Qt::PenStyle lineStyle = Qt::SolidLine
 
bool hasColor = false
 
bool hasMarker = false
 
bool hasLineStyle = false
 
bool noLine = false
 

详细描述

Parsed representation of a matplotlib-style format string

Parses format strings like "r-o", "b--", "g^:", "ko" etc. The format string can contain up to three components:

If only a marker is specified without a line style (e.g. "ro"), the line is suppressed (noLine = true), matching matplotlib behavior.

参见
QwtPyPlot

成员函数说明

◆ parse()

QwtFormatString QwtFormatString::parse ( const QString &  fmt)
static

Parse a matplotlib-style format string

参数
fmtFormat string (e.g. "r-o", "b--", "g^:", "ko")
返回
Parsed format structure

Supported components:

  • Colors: b(blue), g(green), r(red), c(cyan), m(magenta), y(yellow), k(black), w(white)
  • Markers: o(circle), s(square), ^(triangle up), v(triangle down), D(diamond), x(cross), +(plus), *(star), .(dot)
  • Line styles: -(solid), –(dash), -.(dashdot), :(dot)

该结构体的文档由以下文件生成: