Skip to content
Snippets Groups Projects
Commit b1d761f0 authored by Langella Olivier's avatar Langella Olivier
Browse files

clear isotope ratio bar graph

parent 269e66f5
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,6 @@
#include "../../project_view/projectwindow.h"
#include <pappsomspp/xic/detection/xicdetectionzivy.h>
#include <pappsomspp/exception/exceptionnotpossible.h>
#include <qcustomplot.h>
......@@ -206,8 +205,11 @@ void XicBox::setXic(std::vector< pappso::XicSp> xic_sp_list) {
qDebug() << "XicBox::setXic plot" ;
ui->xic_widget->plot();
QCPBars * observed_intensity = new QCPBars(ui->histo_widget->xAxis, ui->histo_widget->yAxis2);
observed_intensity->setName("XIC area");
if (_isotope_ratio_graph_observed_intensity != nullptr) {
_isotope_ratio_graph_observed_intensity->clearData();
}
_isotope_ratio_graph_observed_intensity = new QCPBars(ui->histo_widget->xAxis, ui->histo_widget->yAxis2);
_isotope_ratio_graph_observed_intensity->setName("XIC area");
//ui->histo_widget->yAxis2->setLabel("intensity");
......@@ -230,11 +232,11 @@ void XicBox::setXic(std::vector< pappso::XicSp> xic_sp_list) {
i++;
}
observed_intensity->setPen(QPen(QColor("red")));
_isotope_ratio_graph_observed_intensity->setPen(QPen(QColor("red")));
//_graph_peak_surface_list.back()->setScatterStyle(QCPScatterStyle::ssDot);
// observed_intensity->setBrush(QBrush(QColor(170, 255, 0, 0)));
observed_intensity->setData(ticks, observed_intensity_data);
_isotope_ratio_graph_observed_intensity->setData(ticks, observed_intensity_data);
ui->histo_widget->yAxis2->setVisible(true);
ui->histo_widget->yAxis2->setRange(0, sum);
......
......@@ -37,6 +37,7 @@
#include "../xicwindow.h"
#include <pappsomspp/xic/xic.h>
#include <pappsomspp/peptide/peptidenaturalisotopelist.h>
#include <qcustomplot.h>
namespace Ui {
class XicBox;
......@@ -70,6 +71,8 @@ private:
pappso::XicSp _xic_sp;
std::vector<pappso::XicWidget *> _xic_widget_list;
std::vector<pappso::XicPeak> _xic_peak_match_list;
QCPBars * _isotope_ratio_graph_observed_intensity= nullptr;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment