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


Groups > comp.graphics.apps.gnuplot > #1244 > unrolled thread

density plot at certain points

Started byReza <bakhtiari.reza@gmail.com>
First post2012-07-05 08:39 -0700
Last post2012-07-05 09:17 -0700
Articles 4 — 2 participants

Back to article view | Back to comp.graphics.apps.gnuplot


Contents

  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

#1244 — density plot at certain points

FromReza <bakhtiari.reza@gmail.com>
Date2012-07-05 08:39 -0700
Subjectdensity plot at certain points
Message-ID<cbdca45a-d97d-4f73-93e2-0907760c3edb@googlegroups.com>
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.

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 know vaguely that Matlab fill function would do something like this but I dont have experience with Matlab. Any help from wonderful Gnuplot is appreciated!

Cheers,
Reza

[toc] | [next] | [standalone]


#1245

FromReza <bakhtiari.reza@gmail.com>
Date2012-07-05 08:43 -0700
Message-ID<85ad6977-5f2a-4ec4-bee1-52cfa80a1e7b@googlegroups.com>
In reply to#1244
 (X= column1 and Y= column2 ).

On Thursday, July 5, 2012 5:39:39 PM UTC+2, 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.
> 
> 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 know vaguely that Matlab fill function would do something like this but I dont have experience with Matlab. Any help from wonderful Gnuplot is appreciated!
> 
> Cheers,
> Reza

[toc] | [prev] | [next] | [standalone]


#1246

Fromsfeam <sfeam@users.sourceforge.net>
Date2012-07-05 09:01 -0700
Message-ID<jt4dof$p8i$1@dont-email.me>
In reply to#1244
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?

[toc] | [prev] | [next] | [standalone]


#1247

FromReza <bakhtiari.reza@gmail.com>
Date2012-07-05 09:17 -0700
Message-ID<8b232a17-d83e-417d-b7ff-4bab253a38b0@googlegroups.com>
In reply to#1246
Hi,

Thanks, that link is very helpful. As you mentioned, I want just the proper colorful points in a 2D plot. The idea of pm3d was the 1st came to my mind. In somehow it is doable also with plot 'data' with image but dont know how to make it circle. it generates rectangle, now playing with that as well. 


On Thursday, July 5, 2012 6:01:17 PM UTC+2, sfeam wrote:
> 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?

[toc] | [prev] | [standalone]


Back to top | Article view | comp.graphics.apps.gnuplot


csiph-web