QWT API (English) 7.3.0
Qt Widget Library for Technical Applications - English API Documentation
Loading...
Searching...
No Matches
Static Public Member Functions | Public Attributes | List of all members
QwtFormatString Struct Reference

Parsed representation of a matplotlib-style format string. More...

#include <qwt_pyplot.h>

Static Public Member Functions

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

Public Attributes

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

Detailed Description

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.

See also
QwtPyPlot

Member Function Documentation

◆ parse()

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

Parse a matplotlib-style format string.

Parameters
fmtFormat string (e.g. "r-o", "b--", "g^:", "ko")
Returns
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)

The documentation for this struct was generated from the following files: