Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #3117

Re: Heatmap doesn't show all the points

X-Received by 10.129.83.85 with SMTP id h82mr3191406ywb.0.1447165422993; Tue, 10 Nov 2015 06:23:42 -0800 (PST)
X-Received by 10.182.250.169 with SMTP id zd9mr34081obc.1.1447165422961; Tue, 10 Nov 2015 06:23:42 -0800 (PST)
Path csiph.com!au2pb.net!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!b51no215922qgf.0!news-out.google.com!fs1ni5042igb.0!nntp.google.com!i2no2274515igv.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.graphics.apps.gnuplot
Date Tue, 10 Nov 2015 06:23:42 -0800 (PST)
In-Reply-To <n1srhe$d4o$1@newsserver.rrzn.uni-hannover.de>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=217.216.99.248; posting-account=7oqUIQoAAAB-DH4jDXAL3cjzBaQWHdtu
NNTP-Posting-Host 217.216.99.248
References <fd56f163-5ad7-4f40-8d45-ab286235943e@googlegroups.com> <n1s77d$716$1@newsserver.rrzn.uni-hannover.de> <6aef38f8-f732-4764-b955-21ef638319d8@googlegroups.com> <n1srhe$d4o$1@newsserver.rrzn.uni-hannover.de>
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <c52eb54e-043e-4008-b951-057c92a50fd6@googlegroups.com> (permalink)
Subject Re: Heatmap doesn't show all the points
From Miguel A. Fernández <mafergon94@gmail.com>
Injection-Date Tue, 10 Nov 2015 14:23:42 +0000
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
X-Received-Bytes 4883
X-Received-Body-CRC 1040071538
Xref csiph.com comp.graphics.apps.gnuplot:3117

Show key headers only | View raw


El martes, 10 de noviembre de 2015, 14:30:24 (UTC+1), Jörg Buchholz  escribió:
> On 10.11.2015 12:52, Miguel A. Fernández wrote:
> > El martes, 10 de noviembre de 2015, 8:43:42 (UTC+1), Jörg Buchholz
> > escribió:
> >> On 09.11.2015 22:12, Miguel A. Fernández wrote:
> >>
> >>> Inside the program i have something like this:
> >>>
> >>> write (*,*) 'set xr [0 to 150] write (*,*) 'set yr [0 to 150]
> >>> write (*,*) 'set zr [-150 to 150] write (*,*) 'set view map'
> >>> write (*,*) 'splot ''heatmapE.dat'' u 1:2:3 with pm3d'
> >>
> >> I think it must be a single ' or a " but not two '' around the
> >> filename. With two '' gnuplot gives empty white plots to me.
> >>
> >>>
> >>>
> >>> The file 'heatmapE.dat' is being generated simultaneously. Once
> >>> the file is completed, I plot it, and then replace it, because I
> >>> have several frames that must be ploted one after the other
> >>>
> >>> So, the problem is, when gnuplot plots the heatmap, some data is
> >>> missing (some pixels are white, a lot of them, indeed). I checked
> >>> the file 'heatmapE.dat' and all the data is there, but somehow
> >>> gnuplot doesnt recognise it.
> >>
> >> Does it works from inside gnuplot, or gives gnuplot some errorcodes
> >> to you?
> >>
> >> First thing I would like to try is starting gnuplot and plot a
> >> example datafile.
> >>
> >> Jörg
> >
> > Hello Jörg, and thank you for your answer. First of all, the thing
> > with the filename it's just a fortran notation, because you have to
> > put the thing you want to output between '...'. In any case, I alredy
> > change it to "...", just  in case.
> >
> > I also tried a little test: -I modified mi program, so that it waits
> > for you to press enter between a file and the next one. -I opened two
> > terminals, one with the program, and one with gnuplot, the last one
> > with all the ranges defined. -I press enter and the program creates
> > the file, then I plot it with gnuplot and... evrything looks great!.
> > I do this several times and there are no white spots.
> >
> > The thing is, I want that to be automatic, without me having to press
> > enter and plotting the data (I want something like a gif).
> >
> > I don't know exactly what could be the problem, but it seems like
> > gnuplot makes the heatmap before the program finish to put all the
> > data in the file (?)
> >
> 
> Can you integrate a waiting time into your fortran code? Instead
> of "waiting for enter". Or something that tests if the datafile is 
> complete.
> But then it is no gnuplot problem.
> 
> Or you call gnuplot to wait befor the plotting command.
> "pause 10" -> gnuplot waits for 10 seconds before going on.
> 
> I think (IMHO) the combination of a | Pipe, writing to a file and 
> reading the same file is problematic.
> 
> Jörg

Thank you Jörg, because I think you just solved my problem. Yesterday I tried adding a pause in the program, but I discovered that the function "pause" has been deleted of fortran a long time ago, so I desisted. Today I searched a little bit more and I found the function "sleep", wich is exactly the same as pause, so I added it just after the plotting. And it works!

Now the program is working, just a bit slow because of the pause. 
I think the problem was that, while gnuplot was plotting all the data, fortran was replacing the file with an empty one, creating as a result those white spots.

Thank you again.

Miguel

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Heatmap doesn't show all the points Miguel A. Fernández <mafergon94@gmail.com> - 2015-11-09 13:12 -0800
  Re: Heatmap doesn't show all the points Jörg Buchholz <bookwood4new@freenet.de> - 2015-11-10 08:43 +0100
    Re: Heatmap doesn't show all the points Miguel A. Fernández <mafergon94@gmail.com> - 2015-11-10 03:52 -0800
      Re: Heatmap doesn't show all the points Jörg Buchholz <bookwood4new@freenet.de> - 2015-11-10 14:30 +0100
        Re: Heatmap doesn't show all the points Miguel A. Fernández <mafergon94@gmail.com> - 2015-11-10 06:23 -0800
          Re: Heatmap doesn't show all the points Karl Ratzsch <mail.kfr@gmx.net> - 2015-11-10 16:52 +0100
            Re: Heatmap doesn't show all the points Miguel A. Fernández <mafergon94@gmail.com> - 2015-11-10 11:36 -0800
              Re: Heatmap doesn't show all the points Karl Ratzsch <mail.kfr@gmx.net> - 2015-11-11 10:36 +0100
                Re: Heatmap doesn't show all the points Miguel A. Fernández <mafergon94@gmail.com> - 2015-11-11 04:22 -0800
          Re: Heatmap doesn't show all the points Jörg Buchholz <bookwood4new@freenet.de> - 2015-11-11 07:15 +0100
            Re: Heatmap doesn't show all the points Miguel A. Fernández <mafergon94@gmail.com> - 2015-11-11 00:49 -0800
              Re: Heatmap doesn't show all the points Jörg Buchholz <bookwood4new@freenet.de> - 2015-11-11 10:13 +0100
                Re: Heatmap doesn't show all the points Miguel A. Fernández <mafergon94@gmail.com> - 2015-11-11 04:25 -0800
                Re: Heatmap doesn't show all the points Jörg Buchholz <bookwood4news@freenet.de> - 2015-11-11 19:50 +0100

csiph-web