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


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

plot in hexagonal lattice

From zsolti elter <elter.zsolt@gmail.com>
Newsgroups comp.graphics.apps.gnuplot
Subject plot in hexagonal lattice
Date 2012-02-09 01:52 -0800
Organization http://groups.google.com
Message-ID <d92bf6e5-34be-4540-96db-90223e53d475@ge5g2000vbb.googlegroups.com> (permalink)

Show all headers | View raw


Hello!



I would like to plot data-s in a hexagonal lattice. I have a .dat file
in which the 1st and 2nd column are the X and Y coordinates of the
hexagon's centers, and the other columns hold the data, what I want to
plot in the lattice.

I managed only to plot the datas with pm3d, but I don't know, how to
plot the lattice grids, and how to plot hexagons. I plotted the datas
by circles, and I increased the size of it, but it's not the best.
So I would like to get something like the lattice map on the left part
of the picture: http://www.kfki.hu/~aekihp/arlhome/images/verona1.gif

For the lattice I guess I should use a loop and set object polygon,
because from the center of a hexagon ! can evaluate the points of the
hexagon (and I know the lattice pitch), but I don't know how to read
in every step only one X and Y value from my data file, and how to
assign the value of the data (power in my case) to this hexagon.


Thanks for your help!



Best regards,



Zsolti Elter

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


Thread

plot in hexagonal lattice zsolti elter <elter.zsolt@gmail.com> - 2012-02-09 01:52 -0800
  Re: plot in hexagonal lattice Péter Juhász <peter.juhasz83@gmail.com> - 2012-02-10 02:42 -0800
    Re: plot in hexagonal lattice zsolti elter <elter.zsolt@gmail.com> - 2012-02-10 23:16 -0800
  Re: plot in hexagonal lattice Péter Juhász <peter.juhasz83@gmail.com> - 2012-02-10 02:53 -0800

csiph-web