ParameterPlotter::ParameterPlotter(QWidget *parent) :
        KPlotWidget(parent)
{
    setAntialiasing(true);
    setLeftPadding(20);
    setRightPadding(10);
    setTopPadding(10);
    setBottomPadding(20);
    m_movepoint = NULL;
    m_colors << Qt::white << Qt::red << Qt::green << Qt::blue << Qt::magenta << Qt::gray << Qt::cyan;
    m_moveX = false;
    m_moveY = true;
    m_moveTimeline = true;
    m_newPoints = false;
    m_activeIndexPlot = -1;
    m_max_y = 0;
    m_min_y = 0;
}
Esempio n. 2
0
/**
 * Set the same padding for all four borders.
 *
 * @param[in] size Size.
 * @param[in] type Padding type.
 */
void Padding::setPadding(const double &size, const Type &type) {
	setLeftPadding(size, type);
	setRightPadding(size, type);
	setBottomPadding(size, type);
	setTopPadding(size, type);
}