On 25 March 2011 15:06, Thiago Macieira <thi...@kde.org> wrote:
> Em sexta-feira, 25 de março de 2011, às 14:39:22, John Tapsell escreveu:
>> I have a widget, KSignalPlotter, which plots data points.
>>
>> The usage is:
>>
>> KSignalPlotter plotter;
>> plotter.setUnit( ki18ncp("Units", "%1 second", "%1 seconds") );
>> plotter.addBeam(Qt::red);
>> plotter.addSample( QList<qreal>() << 2 );
>>
>> For example.
>>
>> The axis will then be labelled using the "unit" string.  The precision
>> will be calculated automatically.
>
> So you might have a graph showing 1, 2, and 3 where the unit is "2.2e4
> seconds" ?

The graph would show  "1 second"  "2 seconds" "3 seconds"   on the
axis in this case.

John

Reply via email to