Commit 6916d308 authored by Giacomo Strangolino's avatar Giacomo Strangolino
Browse files

axis title inverted - issue

parent 024c31e4
......@@ -156,8 +156,8 @@ void I0mapmon_topo::m_txf(bool txf) {
foreach(QString n, m_names) {
m_multiread_plu_i->insertSource(m_dev + "/" + n + (txf ? "_txf" : ""), i++);
}
txf ? ui->chart->canvas()->setPalette( QColor( "black" )) : ui->chart->canvas()->setPalette( QColor( "white" ) );
txf ? ui->chart->setAxisTitle( QwtPlot::yLeft, "Transmission" ) : ui->chart->setAxisTitle( QwtPlot::yLeft, "Intensity (uJ)" );
txf ? ui->chart->canvas()->setPalette( QColor( "black" )) : ui->chart->canvas()->setPalette( QColor( "white" ) );
txf ? ui->chart->setAxisTitle( QwtPlot::xBottom, "Transmission" ) : ui->chart->setAxisTitle( QwtPlot::xBottom, "Intensity (μJ)" );
}
void I0mapmon_topo::m_onStateChanged(const CuData &da) {
......
......@@ -37,7 +37,7 @@ I0MMTopoBarChart::I0MMTopoBarChart(QWidget *parent) : QwtPlot(parent)
setPalette( Qt::white );
canvas()->setPalette( QColor( "white" ) );
setAxisTitle( QwtPlot::yLeft, "Fel Intensity" );
setAxisTitle( QwtPlot::xBottom, "Intensity (μJ)" );
m_barchart = new QwtPlotMultiBarChart("Fel Intensity");
m_barchart->setLayoutPolicy( QwtPlotMultiBarChart::AutoAdjustSamples );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment