09-23-2007
Gnuplot question: plotting 3D data in map view
I have a simple gnuplot question. I have a set of points (list of x,y,z values; irregularly spaced, i.e. no grid) that I want to plot. I want the plot to look like this:
- map view (no 3D view)
- color of each point should depend on z-value.
- I want to define my own color scale
- plot should contain a little legend box in the form of a color bar listing what z-value corresponds to what color
I tried pm3d, but it seems it only handles gridded data, i.e. x,y's on a regular grid, or at least displays them as such. I just want to see the individual points (no interpolation).
Thanks for your help here.
9 More Discussions You Might Find Interesting
1. UNIX and Linux Applications
I have a simple gnuplot question. I have a set of points (list of x,y,z values; irregularly spaced, i.e. no grid) that I want to plot. I want the plot to look like this:
- points in map view (no 3D view)
- color of each point should depend on its z-value.
- I want to define my own color scale
-... (0 Replies)
Discussion started by: karman
0 Replies
2. UNIX for Dummies Questions & Answers
I have a set of data that looks similar to the following in UNIX:
0.12_0.008_fall_ff.out:bisect return: 0.08056640625
0.12_0.04_fall_ff.out:bisect return: 0.07470703125
0.12_0.12_fall_ff.out:bisect return: 0.06298828125
0.12_0.24_fall_ff.out:bisect return: 0.05126953125
Previously I have... (4 Replies)
Discussion started by: EDALBNUG
4 Replies
3. UNIX for Dummies Questions & Answers
I have attached a txt file, what I would like to be able to do is:
1. Extract Data from Columns labeled E/N and Ko into a new file
2. Then in the new file I would like to be able to plot E/N on the X axis and Ko on the y axis.
3. Lastly I would like to be able to extract multiple data sets and... (6 Replies)
Discussion started by: gingburg
6 Replies
4. UNIX for Dummies Questions & Answers
When I plot a set of data in gnuplot from a file like:
1 5
2 3
4 6
5 1
using
plot "file.txt" w boxes
I would expect that at the x value of 3 it will go to a value of 0 for y... but it doesn't. Is there a way to fix that, or do I actually have to type by hand an... (1 Reply)
Discussion started by: cosmologist
1 Replies
5. Shell Programming and Scripting
My input data has occasional holes in it, spots where a sensor couldn't be read. These are ERR in the data file instead of a floating point number. What should I change them to, for gnuplot to ignore these values instead of whining about them? (1 Reply)
Discussion started by: Corona688
1 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I am using gnuplot to plot a 3D plot with "set view map".
My data looks like
======
X Y Z
======
100 200 0
200 300 1
200 200 0
.
.
.
The third column only has either 0 or 1. How do I generate a map view plot that will have black (white) for 0 (1)?
Thanks,
Gaurab (0 Replies)
Discussion started by: gaurab
0 Replies
7. Shell Programming and Scripting
I have a data file of the following format:
servername,2013-05-11 17:46:03,SomeText,195,195,11,202
servername,2013-05-11 17:47:03,SomeText,192,192,23,103
servername,2013-05-11 17:48:03,SomeText,189,190,14,117
servername,2013-05-11 17:49:03,SomeText,196,195,24,231
...
...
I want to... (0 Replies)
Discussion started by: BeeryM
0 Replies
8. Shell Programming and Scripting
Hi!
Let's say I have these two columns in file.txt
0 1
1 5
2 10
3 15
4 20
5 25
in gnuplot, i would plot usingplot 'file.txt' u 1:2
If I wanted to add a label to the y-axis I would useset label "Ef" at 0.0,7.0
However, I want the label Ef to be on the otherside of the y-axis. Not... (0 Replies)
Discussion started by: sidiq1983
0 Replies
9. Shell Programming and Scripting
One of the great thing about unix is the ability to pipe multiple programs together to manipulate data. Plain, unstructured text is the most common type of data that is passed between programs, but these days JSON is becoming more popular.
I thought it would be fun to pipe together some command... (1 Reply)
Discussion started by: kbrazil
1 Replies
plot(3x) plot(3x)
Name
openpl, erase, label, line, circle, arc, move, cont, point, linemod, space, closepl, box, color, dot - graphics interface
Syntax
openpl()
erase()
label(s)
char s[];
line(x1, y1, x2, y2)
circle(x, y, r)
arc(x, y, x0, y0, x1, y1)
move(x, y)
cont(x, y)
point(x, y)
linemod(s)
char s[];
space(x0, y0, x1, y1)
closepl()
box(x0, x1, y0, y1)
color(c)
dot()
Description
These subroutines generate graphic output in a device-independent manner. See for a description of their effect. The subroutine precedes
the other subroutines as it opens the device for writing. The subroutine flushes the output. The and routines are used by the lvp16 and
hp7475a plotters only.
String arguments to and are null-terminated and do not contain newlines.
Many of these functions have additional options for different output devices. They are accessed by the options as follows:
-lplot device-independent graphics stream on standard output for filters
-lplotaed AED 512 color graphics terminal
-lplotbg BBN bitgraph graphics terminal
-lplotdumb dumb terminals without cursor addressing or line printers
-lplotgigi gigi graphics terminal
-lplotgrn grn files
-lplot2648 HP 2648 graphics terminal
-lplot7221 HP 7221 graphics terminal
-lplotimagen Imagen laser printer (default 240 DPI resolution)
-l300 GSI 300 terminal
-l300s GSI 300S terminal
-l450 DASI 450 terminal
-l4013 Tektronix 4013 terminal
-l4014 Tektronix 4014 terminal
-llvp16 DEC LVP16 and HP7475A plotters
See Also
graph(1g), plot(1g), plot(5)
plot(3x)