Re: QwtPlotMarker/QwtLogScaleEngine conflict
Brought to you by:
rathmann
|
From: wreiter <wol...@wi...> - 2019-01-25 12:39:40
|
On 25.01.19 12:42, Uwe Rathmann wrote: > Hi Wolfgang, > >> The initial coordinates are set to (0, 0) which is certainly inside >> the axis-range > > No, 0 is not a valid value for a logarithmic scale - due to its nature. > Start the bode example, press zoom and pan on the canvas towards > smaller values - you will see, why you will never reach 0.0. > If you need to have the 0 you need to write a tranformation, that is > linear in some range around 0 ( f.e [-1, 1 ] ) and logarithmic > otherwise. But this more advanced stuff. > > Of course you could also use a transformation based on pow(10). This > has a similar effect, but it can pass 0 out of the box. See > https://qwt.sourceforge.io/class_qwt_power_transform.html > > Uwe > > > _______________________________________________ > qwt-interest mailing list > qwt...@li... > https://lists.sourceforge.net/lists/listinfo/qwt-interest Hello Uwe, you are correct, this clears up the misunderstanding of the QwtScaleEngine. Making the marker logic aware of the current axis scaling solves the problem. Best regards -- Wolfgang Reiter Research & Development Wintegral GmbH Phone: +49 89 97890 170 Fax: +49-89-97890-199 eMail: wol...@wi... Web: http://www.wintegral.net Wintegral GmbH, Ehrenbreitsteiner Straße 36, 80993 München Managing Directors: Jürgen Steinbeck, Jürgen Pfab Trade Register: München HRB 202748 Wintegral GmbH routinely monitors the content of e-mail sent and received via its network for the purposes of ensuring compliance with its policies and procedures. Wintegral is not responsible for any changes made to the message after it has been sent. Where opinions are expressed, they are not necessarily those of Wintegral GmbH. This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to which they are addressed. If you are not the intended addressee, or the person responsible for delivering it to them, you may not copy, forward, disclose, or otherwise use it or any part of it in any way. To do so may be unlawful. If you receive this e-mail by mistake, please advise the sender immediately. |