Path: csiph.com!news.mixmin.net!weretis.net!feeder4.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Karl Ratzsch Newsgroups: comp.graphics.apps.gnuplot Subject: Re: dgrid3d and logscale xy with gridded data Date: Thu, 8 Nov 2018 11:17:06 +0100 Organization: solani.org Lines: 28 Message-ID: References: <6eaf3631-1502-4e26-9228-487ece8e7bfc@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: solani.org 1541672226 8115 127.0.0.43 (8 Nov 2018 10:17:06 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Thu, 8 Nov 2018 10:17:06 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 In-Reply-To: <6eaf3631-1502-4e26-9228-487ece8e7bfc@googlegroups.com> Cancel-Lock: sha1:gdEkUhbEaDaY1dbVRYwuG43QMDg= Content-Language: de-DE-1901 X-User-ID: eJwNxdEVADEEBMCWOHZRTnjRfwm5+RkYlRNO0LHYzpslXJRLxXTaDdyFlCQ/bp8Y+admnVV7ECQQkQ== Xref: csiph.com comp.graphics.apps.gnuplot:4053 Am 08.11.2018 um 09:22 schrieb rowlesmr@gmail.com: > Hi all > > I have some grid data which I would like to plot as a surface. I want the xy axes to be logscale. > > I would like to interpolate the data onto a finer grid so that I can have nice contours and that the colour gradient looks nicer. > > As far as I can tell, it looks like dgrid3d does the gridding in linear space, and then logscale does the axis conversion. > > How can I grid the data in log space? > I would say don't logscale the axes, but plot the logarithmised (is that an adjective?) data: reset set dgrid3d splines 60,60 splot "dat.txt" using (log10($1)):(log10($2)):3 w l If you want your regular (nonlog) axis ticlabels back, you can manually relabel them, or perhaps someone else can help with getting the linked set link x2 via 10**x inverse log10(x) set link y2 via 10**y inverse log10(y) x2 and y2 axes to show. Not sure how/if that works. Karl