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


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

plot pixel intensities on box surface

Started bymattamimi@gmail.com
First post2013-11-12 03:46 -0800
Last post2013-11-17 17:19 -0800
Articles 4 — 2 participants

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


Contents

  plot pixel intensities on box surface mattamimi@gmail.com - 2013-11-12 03:46 -0800
    Re: plot pixel intensities on box surface Ethan A Merritt <sfeam@users.sourceforge.net> - 2013-11-12 17:11 -0800
      Re: plot pixel intensities on box surface mattamimi@gmail.com - 2013-11-13 17:36 -0800
        Re: plot pixel intensities on box surface mattamimi@gmail.com - 2013-11-17 17:19 -0800

#2192 — plot pixel intensities on box surface

Frommattamimi@gmail.com
Date2013-11-12 03:46 -0800
Subjectplot pixel intensities on box surface
Message-ID<478f2b50-ce16-4b0c-acb9-c06b6fd200b0@googlegroups.com>
Hi
I am working on a project that I need to generate graphs for.
I would like to plot the results as pixel intensities at the surfaces of a box and as xy image plot (as CT slice).
How do I do that? and what is the correct data format to achieve that?
I looked through the demos and could not find similar plots. I tried to plot the data using the following command:
plot 'datafile.dat' binary array=(100,100) with image

No matter what I do (changing the terminal type) all the plots the same and does not make sense.

[toc] | [next] | [standalone]


#2196

FromEthan A Merritt <sfeam@users.sourceforge.net>
Date2013-11-12 17:11 -0800
Message-ID<l5ujk4$g1b$1@dont-email.me>
In reply to#2192
mattamimi@gmail.com wrote:

> Hi
> I am working on a project that I need to generate graphs for.
> I would like to plot the results as pixel intensities at the surfaces of a
> box and as xy image plot (as CT slice). How do I do that? and what is the
> correct data format to achieve that? I looked through the demos and could
> not find similar plots. I tried to plot the data using the following
> command: plot 'datafile.dat' binary array=(100,100) with image
> 
> No matter what I do (changing the terminal type) all the plots the same
> and does not make sense.

You probably want to use commands such as in this demo:
   http://gnuplot.sourceforge.net/demo_cvs/image2.html

It shows how to project the image described by a 2D array onto
a rectangle in 3D.  You are on your own to piece together six
rectangles describing the sides of a 3D box.

	Ethan

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


#2197

Frommattamimi@gmail.com
Date2013-11-13 17:36 -0800
Message-ID<af1b7ca0-4c41-4df3-8f99-1767189420c8@googlegroups.com>
In reply to#2196
On Tuesday, November 12, 2013 8:11:32 PM UTC-5, Ethan A Merritt wrote:
> mattamimi@gmail.com wrote: > Hi > I am working on a project that I need to generate graphs for. > I would like to plot the results as pixel intensities at the surfaces of a > box and as xy image plot (as CT slice). How do I do that? and what is the > correct data format to achieve that? I looked through the demos and could > not find similar plots. I tried to plot the data using the following > command: plot 'datafile.dat' binary array=(100,100) with image > > No matter what I do (changing the terminal type) all the plots the same > and does not make sense. You probably want to use commands such as in this demo: http://gnuplot.sourceforge.net/demo_cvs/image2.html It shows how to project the image described by a 2D array onto a rectangle in 3D. You are on your own to piece together six rectangles describing the sides of a 3D box. Ethan


Hi
Thanks for the link. I will try it.

sincerely 
Mat

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


#2198

Frommattamimi@gmail.com
Date2013-11-17 17:19 -0800
Message-ID<57ca8f56-4b0e-406b-bc3e-b34eef3b86a8@googlegroups.com>
In reply to#2197
On Wednesday, November 13, 2013 8:36:06 PM UTC-5, matt...@gmail.com wrote:
> On Tuesday, November 12, 2013 8:11:32 PM UTC-5, Ethan A Merritt wrote: > mattamimi@gmail.com wrote: > Hi > I am working on a project that I need to generate graphs for. > I would like to plot the results as pixel intensities at the surfaces of a > box and as xy image plot (as CT slice). How do I do that? and what is the > correct data format to achieve that? I looked through the demos and could > not find similar plots. I tried to plot the data using the following > command: plot 'datafile.dat' binary array=(100,100) with image > > No matter what I do (changing the terminal type) all the plots the same > and does not make sense. You probably want to use commands such as in this demo: http://gnuplot.sourceforge.net/demo_cvs/image2.html It shows how to project the image described by a 2D array onto a rectangle in 3D. You are on your own to piece together six rectangles describing the sides of a 3D box. Ethan Hi Thanks for the link. I will try it. sincerely Mat


Hi
I tried image2 demo. I could not get it to work with my data very well.
I arranged my box surfaces data in an ascii file into (100 x 100) matrix. 
I was able to plot the data using the following command

splot 'MatrixData.dat' matrix with image

I could not flip, rotate, center the data. I am not sure why. 
Anyone know why???

Mat

[toc] | [prev] | [standalone]


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


csiph-web