diff --git a/Code/Mantid/MantidPlot/src/ScaleDetails.cpp b/Code/Mantid/MantidPlot/src/ScaleDetails.cpp index 5359ff1c20d94b240ce847356033ee8c2c40b355..3df4dbe72428369e053f00abf0de7562100f859d 100644 --- a/Code/Mantid/MantidPlot/src/ScaleDetails.cpp +++ b/Code/Mantid/MantidPlot/src/ScaleDetails.cpp @@ -99,6 +99,13 @@ ScaleDetails::ScaleDetails(ApplicationWindow* app, Graph* graph, int mappedaxis, middleLayout->addWidget(m_lblScaleTypeLabel, 2, 0); middleLayout->addWidget(m_cmbScaleType, 2, 1); + m_lblN = new QLabel(tr("n =")); + m_dspnN = new DoubleSpinBox(); + m_dspnN->setLocale(m_app->locale()); + m_dspnN->setDecimals(m_app->d_graphing_digits); + middleLayout->addWidget(m_lblN, 3, 0); + middleLayout->addWidget(m_dspnN, 3, 1); + m_chkInvert = new QCheckBox(); m_chkInvert->setText(tr("Inverted")); m_chkInvert->setChecked(false); diff --git a/Code/Mantid/MantidPlot/src/ScaleDetails.h b/Code/Mantid/MantidPlot/src/ScaleDetails.h index d71401b6e5c30889e6e5bfa0b5c308edccb671d2..ca65cecc23711c31c03e3501fd36c6b257d572ea 100644 --- a/Code/Mantid/MantidPlot/src/ScaleDetails.h +++ b/Code/Mantid/MantidPlot/src/ScaleDetails.h @@ -74,13 +74,13 @@ private: ApplicationWindow* m_app; Graph* m_graph; - DoubleSpinBox *m_dspnEnd, *m_dspnStart, *m_dspnStep, *m_dspnBreakStart, *m_dspnBreakEnd, *m_dspnStepBeforeBreak, *m_dspnStepAfterBreak; + DoubleSpinBox *m_dspnEnd, *m_dspnStart, *m_dspnStep, *m_dspnBreakStart, *m_dspnBreakEnd, *m_dspnStepBeforeBreak, *m_dspnStepAfterBreak, *m_dspnN; QCheckBox *m_chkInvert, *m_chkLog10AfterBreak, *m_chkBreakDecoration; QRadioButton *m_radStep, *m_radMajor; QSpinBox *m_spnMajorValue, *m_spnBreakPosition, *m_spnBreakWidth; QGroupBox *m_grpAxesBreaks; QComboBox *m_cmbMinorTicksBeforeBreak, *m_cmbMinorTicksAfterBreak, *m_cmbScaleType, *m_cmbMinorValue, *m_cmbUnit; - QLabel *m_lblScaleTypeLabel, *m_lblMinorBox, *m_lblStart, *m_lblEnd; + QLabel *m_lblScaleTypeLabel, *m_lblMinorBox, *m_lblStart, *m_lblEnd, *m_lblN; QDateTimeEdit *m_dteStartDateTime, *m_dteEndDateTime; QTimeEdit *m_timStartTime, *m_timEndTime; diff --git a/Code/Mantid/MantidPlot/src/plot2D/PowerScaleEngine.h b/Code/Mantid/MantidPlot/src/plot2D/PowerScaleEngine.h index 03602089d91e1baf810b828d2aac727dd37ec7ce..2361afd644d06bb3cd6e1f74d3e64ece34ddebac 100644 --- a/Code/Mantid/MantidPlot/src/plot2D/PowerScaleEngine.h +++ b/Code/Mantid/MantidPlot/src/plot2D/PowerScaleEngine.h @@ -37,7 +37,7 @@ class PowerScaleTransformation: public ScaleTransformation { public: - PowerScaleTransformation(const ScaleEngine *engine):ScaleTransformation(engine){nth_power = 2.0;}; + PowerScaleTransformation(const ScaleEngine *engine):ScaleTransformation(engine){nth_power = -1.0;}; virtual double xForm(double x, double, double, double p1, double p2) const; virtual double invXForm(double x, double s1, double s2, double p1, double p2) const; QwtScaleTransformation* copy() const;