gnuplot: map view with black and white for 0/1 in the 3rd column


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers gnuplot: map view with black and white for 0/1 in the 3rd column
# 1  
Old 03-17-2011
gnuplot: map view with black and white for 0/1 in the 3rd column

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
 
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How to insert data into black column( Secound Column ) in excel (.XLSX) file using shell script?

Source Code of the original script is down below please run the script and try to solve this problem this is my data and I want it column wise 2019-03-20 13:00:00:000 2019-03-20 15:00:00:000 1 Operating System LAB 0 1 1 1 1 1 1 1 1 1 0 1 (5 Replies)
Discussion started by: Shubham1182
5 Replies

2. Hardware

Black and white inversion on Samsung ML-2010

I have an old Samsung ML-2010 that has obtained a strange problem. When printing a PDF, image, or from chromium what is suppose to be black and white is inverted. In order to print an image, I had to use GIMP to invert the colors. Printing the image with inverted colors caused the image to be... (2 Replies)
Discussion started by: LinuxFreak
2 Replies

3. UNIX for Advanced & Expert Users

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... (1 Reply)
Discussion started by: karman
1 Replies

4. UNIX and Linux Applications

Gnuplot question: how to plot 3D points as colored points 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: - 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
Login or Register to Ask a Question
IMAGERECTANGLE(3)							 1							 IMAGERECTANGLE(3)

imagerectangle - Draw a rectangle

SYNOPSIS
bool imagerectangle (resource $image, int $x1, int $y1, int $x2, int $y2, int $color) DESCRIPTION
imagerectangle(3) creates a rectangle starting at the specified coordinates. PARAMETERS
o $ image -An image resource, returned by one of the image creation functions, such as imagecreatetruecolor(3). o $x1 - Upper left x coordinate. o $y1 - Upper left y coordinate 0, 0 is the top left corner of the image. o $x2 - Bottom right x coordinate. o $y2 - Bottom right y coordinate. o $color - A color identifier created with imagecolorallocate(3). RETURN VALUES
Returns TRUE on success or FALSE on failure. EXAMPLES
Example #1 Simple imagerectangle(3) example <?php // Create a 200 x 200 image $canvas = imagecreatetruecolor(200, 200); // Allocate colors $pink = imagecolorallocate($canvas, 255, 105, 180); $white = imagecolorallocate($canvas, 255, 255, 255); $green = imagecolorallocate($canvas, 132, 135, 28); // Draw three rectangles each with its own color imagerectangle($canvas, 50, 50, 150, 150, $pink); imagerectangle($canvas, 45, 60, 120, 100, $white); imagerectangle($canvas, 100, 120, 75, 160, $green); // Output and free from memory header('Content-Type: image/jpeg'); imagejpeg($canvas); imagedestroy($canvas); ?> The above example will output something similar to:[NOT DISPLAYABLE MEDIA]Output of example : Simple imagerectangle() example PHP Documentation Group IMAGERECTANGLE(3)