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


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

Re: density plot at certain points

From sfeam <sfeam@users.sourceforge.net>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: density plot at certain points
Followup-To comp.graphics.apps.gnuplot
Date 2012-07-05 09:01 -0700
Organization gnuplot development team
Message-ID <jt4dof$p8i$1@dont-email.me> (permalink)
References <cbdca45a-d97d-4f73-93e2-0907760c3edb@googlegroups.com>

Followups directed to: comp.graphics.apps.gnuplot

Show all headers | View raw


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?

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


Thread

density plot at certain points Reza <bakhtiari.reza@gmail.com> - 2012-07-05 08:39 -0700
  Re: density plot at certain points Reza <bakhtiari.reza@gmail.com> - 2012-07-05 08:43 -0700
  Re: density plot at certain points sfeam <sfeam@users.sourceforge.net> - 2012-07-05 09:01 -0700
    Re: density plot at certain points Reza <bakhtiari.reza@gmail.com> - 2012-07-05 09:17 -0700

csiph-web