/*! \return the number format for the major scale labels of a specified axis \param axis axis index \retval f format character \retval prec precision */ void Plot::axisLabelFormat(int axis, char &f, int &prec) const { if (axisValid(axis)){ ScaleDraw *sd = (ScaleDraw *)axisScaleDraw (axis); sd->labelFormat(f, prec); } else {//for a bad call we return the default values f = 'g'; prec = 4; } }
int Plot::axisLabelFormat(int axis) { if (axisValid(axis)) { int prec; char format; ScaleDraw *sd = (ScaleDraw *)axisScaleDraw (axis); sd->labelFormat(format, prec); if (format == 'g') return Automatic; else if (format == 'e') return Scientific; else if (format == 'f') return Decimal; else return Superscripts; } return 0; }