[Qt-interest] setAxisScale problem

Ferenc Stelcz ferenc at stelcz.hu
Tue May 19 16:29:07 CEST 2009


Sujan Dasmahapatra írta:
> Dear Friends
> 
> In QwtPlot we have the method  setAxisScale(int axisId,min,max);
> 
>                 Whats the value axisId how would assign these values. I
> want to change the min max for x and y axis. Whats should pass into the
> function as the first argument.
> 

It is _totally unneccessary_ to post *the same question* _n-times_ with 
_n different subjects_ on this list. Especially if it is *not directly 
related to* Qt programming. Qwt is a toolkit written in Qt/C++ but (as 
far as I can tell) *not by Trolltech/Nokia/Qt Software*.

Many of the list members already pointed you yesterday (CET) to the 
mailing list archives of the qwt-interest list. Have you had a look at 
it? Have you tried to search the documentation of Qwt? Have you tried 
typing the words "qwt setAxisScale" into any famous search engine out 
there? Then after reading the first 2 or 3 results, try another search 
on "qwt xAxis()".

And voilá! axisId is the ID of either the X axis or the Y axis of your 
plot _as far as I can tell_ from this little searching around. Both 
xAxis() and yAxis() are members of the QwtPlotItem class.

See here:
http://osdir.com/ml/graphics.qwt.python/2008-06/msg00011.html
-> look for setAxisScale in the message

and here:
http://docs.huihoo.com/qwt/class_qwt_plot_item.html#7af360bf6d5a5b6257ce6b0dd99b7525

Knowing what you are after and then trying to find a way _by yourself_ 
(and finding a solution in about 10 minutes)
is a lot more worth then just posting n messages a day (additionally to 
a partially irrelevant mailing list) from which only 1 or 2 get answered 
and in my point of view there will be less and less people trying to 
help you out...

Please excuse me if I was a bit "raw" but after a time it gets a bit 
boring...

(Oh hell, took me longer to write this message then searching and 
finding... :)

Have a nice day,

--
Ferenc Stelcz
Junior Software Engineer

Banyan Technologies LLC.



More information about the Qt-interest-old mailing list