2

I am using qwt 6.1.0. I tried:

linEngine = new QwtLinearScaleEngine;
logEngine = new QwtLogScaleEngine;

these codes to make my axis logarithmic and linear. But I want to use them together for example;

1 - 10 ---> in this interval must be linear

10 - 10000 ---> in this interval must be logarithmic

enter image description here

is that possible?

Martin Thorsen Ranang
  • 2,394
  • 1
  • 28
  • 43
alperyazir
  • 203
  • 1
  • 4
  • 14
  • If I were your user, I'd hate you - for such "innovations" are almost always misguided and go against what is commonly expected. You need to *at least* provide a visual indication (a broken line symbol) on **both** the axis *and* the plot, at the location where the change of scaling occurs. What is the purpose of this craziness? – Kuba hasn't forgotten Monica Jul 16 '14 at 08:01

1 Answers1

0

Not out of the box. You will have to create your own implementation of QwtScaleEngine. Use the methods of the API to split the incoming arguments in linear and exponential parts and then you can delegate to private instances of both classes to actually do the work.

But that will only give you the scale. You'll have to do the same for rendering the actual data.

Aaron Digulla
  • 321,842
  • 108
  • 597
  • 820