Gnuplot logarithmic contours; "cntrparam level incremental" bug revisited

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Gnuplot logarithmic contours; "cntrparam level incremental" bug revisited

Aapo Lankinen
Hi!

After discussing the cntrparm problem on this list, the following script
still doesn't work as expected with the newest Gnuplot CVS:

---- clip ----
unset surface
set contour
set log z
set palette model HSV functions gray, gray, 0.8-0.5*gray
set log cb
unset colorbox
set view map
set cntrparam level incremental 5,2,200
splot x**2+y**2+1.0 palette
---- clap ----

Nothing is plotted.  The problem is in the "cntrparam level incremental"
definition; Gnuplot recognizes the values as linear increments in
logarithmic axis, which leads in HUGE steps in the actual z-value.  The
steps go like (10^5, 10^7, 10^9, ... , 10^200), which is obviously very
wrong.

I wrote a very small patch so that '5,2,200' delivers tics at
(5,10,20,40,80,160), as should be the case.

Best Regards,
Aapo Lankinen

--
Aapo Lankinen <[hidden email]>



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
gnuplot-beta mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gnuplot-beta
Reply | Threaded
Open this post in threaded view
|

Re: Gnuplot logarithmic contours; "cntrparam level incremental" bug revisited

Aapo Lankinen
On Wed, 2005-06-15 at 14:38 +0300, Aapo Lankinen wrote:
> I wrote a very small patch so that '5,2,200' delivers tics at
> (5,10,20,40,80,160), as should be the case.

Oops, forgot to attach the patch; sorry.

--
Aapo Lankinen <[hidden email]>

contourlog.patch (719 bytes) Download Attachment