-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathaxistickertext.sip
More file actions
36 lines (31 loc) · 1017 Bytes
/
axistickertext.sip
File metadata and controls
36 lines (31 loc) · 1017 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/** PyQt5 binding for QCustomPlot v2.0.0
*
* Authors: Dmitry Voronin, Giuseppe Corbelli
* License: MIT
*
* QCustomPlot author: Emanuel Eichhammer
* QCustomPlot Website/Contact: http://www.qcustomplot.com
*/
%Include qmap_double.sip
class QCPAxisTickerText : public QCPAxisTicker
{
%TypeHeaderCode
#include <QCustomPlot/src/axis/axistickertext.h>
%End
public:
QCPAxisTickerText();
// getters:
// This DOES NOT return a reference as it does in C++ version
// Cannot mark as const as the base C++ method is not
QMap<double, QString> ticks();
int subTickCount() const;
// setters:
void setTicks(const QMap<double, QString> &ticks);
void setTicks(const QVector<double> &positions, const QVector<QString> &labels);
void setSubTickCount(int subTicks);
// non-virtual methods:
void clear();
void addTick(double position, const QString &label);
void addTicks(const QMap<double, QString> &ticks);
void addTicks(const QVector<double> &positions, const QVector<QString> &labels);
};