Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: sfeam Newsgroups: comp.graphics.apps.gnuplot Subject: Re: density plot at certain points Followup-To: comp.graphics.apps.gnuplot Date: Thu, 05 Jul 2012 09:01:17 -0700 Organization: gnuplot development team Lines: 33 Message-ID: References: Reply-To: sfeam@users.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit Injection-Date: Thu, 5 Jul 2012 16:01:20 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="3mhAfh4CeAIeL3OKnPexDA"; logging-data="25874"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Lq2m9kgzikiMF18SeaaNF" User-Agent: KNode/4.4.9 Cancel-Lock: sha1:nj69SHp5n63WG4j0yl4Okkd4FK0= Xref: csiph.com comp.graphics.apps.gnuplot:1246 Reza wrote: > Hello GnuPlotters! > > I have a c++ code which generates 36 point with their X,Y coordinates > (X= column and Y= column ). There is a quantity that I calculate at > each of this point (e.g say density) which is then stored as 3rd > column. Now I have this data file. > > Q: How can I generate a pm3d plot which shows a circle of attributed > radius to each of (X;Y) points and its color attributes with the > density number in that point? As the simplest case, imagine we want to > generate checkerboard pattern but with a certain circles and > disconnected. The second plot in the demo http://gnuplot.sourceforge.net/demo_canvas/rgb_variable.html shows one way to plot circles with both size and color controlled by the input data. Your case is simpler because it uses a single value for the color rather than separate R/G/B values. On the other hand you might prefer more precise control over the radius of the circles, in which case you could use the plot style "with circles" rather than "with points pointstyle 7". > When I use pm3d map it gives me a blurry image which connected border > between points, i.e does not tale into account the fact that points > are separated. I don't think you want pm3d for this at all. You just want colored circles, right?