File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -820,7 +820,17 @@ qDebug() << "Populate";
820820 left = transform.map (left);
821821 left.append (right);
822822
823- QwtPlotCurve *cprofileavg = new QwtPlotCurve ( name + " avg" );
823+ ProfileCurve *cprofileavg = new ProfileCurve ( name + " avg" );
824+ if (left.size () >= 2 ) {
825+ // Distance between two samples
826+ double xDel = fabs (left[0 ].x () - left[1 ].x ());
827+
828+ // Recalculate hDelLimit using this specific xDel
829+ double hDelLimit = m_showNm * m_showSurface * ((outputLambda/m_wf->lambda ) * fabs (xDel * tan (arcsecLimit)) / (outputLambda * 1 .e -6 ));
830+
831+ cprofileavg->setSlopeSettings (m_showSlopeError, hDelLimit, Settings2::m_profile->slopeErrorWidth ());
832+ }
833+
824834 cprofileavg->setRenderHint ( QwtPlotItem::RenderAntialiased );
825835 cprofileavg->setLegendAttribute ( QwtPlotCurve::LegendShowSymbol, false );
826836 cprofileavg->setLegendIconSize (QSize (50 ,20 ));
You can’t perform that action at this time.
0 commit comments