10-05-2009
matching points in Gnuplot
Does anyone know how can one draw lines between 2 sets of data for the same point.
let's say that the three points
(x1,y1) = (1,2) (4,5) (8.9)
became:
(x2,y2) = (3,6) (6,4) (4, 0)
so if I want to plot these points and match every (x1,y1) with the corresponding (x2,y2), how can I do it?
Any idea??
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi, I am a beginner using UNIX, and was wondering how to use gnuplot from UNIX on my pc. I am connected remotely to my work's UNIX server using Secure Shell Client, and gnuplot won't open a new window when I use the plot command. How do I do this?
Moreover, is it possible to save things from the... (0 Replies)
Discussion started by: KTTFB64
0 Replies
2. 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
3. UNIX and Linux Applications
Hi,
I am trying to make a plot of an ASCII file using GNUplot, but I keep getting error msg:
for example plot filename.txt
It says that (.txt ) is not identified ... I tried to write it without the .txt part, but I also get the error msg.
Any idea why? :confused: (1 Reply)
Discussion started by: cosmologist
1 Replies
4. Shell Programming and Scripting
Hi All,
Seems I have an xargs stdin problem that I don't understand.
I have a script (call it myscript.sh) that takes the names of one or more file(s) specified on the command line and creates a single gnuplot command file containing multiple records, one for each specified file. Each of... (9 Replies)
Discussion started by: paulianna2002
9 Replies
5. Programming
Hi,
I am trying to arrange my graphs with GNUPLOT. Although it looked like simple at the beginning, I could not figure out an answer for the following: I want to change the style of my data points (not the line, just exact data points) The terminal assigns first + and then x to them but what I... (0 Replies)
Discussion started by: natasha
0 Replies
6. Shell Programming and Scripting
Hello,
I have two files file 1 and file 2 each having result of a query on certain database tables and need to compare for Col1 in file1 with Col3 in file2, compare Col2 with Col4 and output the value of Col1 from File1 which is a) not present in Col3 of File2 b) value of Col2 is different from... (2 Replies)
Discussion started by: RasB15
2 Replies
7. 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
8. Shell Programming and Scripting
Hello
I have a text file with tens of thousands of rows
The format is
x y
where both x and y can be anything between -100 and +100.
What I would like to do is have a 3d gnuplot where there are 10,000 squared or bins and each bin will count how many rows have a value that would be... (1 Reply)
Discussion started by: garethsays
1 Replies
9. Shell Programming and Scripting
Need assistance in getting a script right. It requires little tweaking and I am not getting it right .
Using below data and the below script it creates a table with png file but regarding the time it create 6,7,8 and i want each time 6:15 ,6:30 and so on
So that i can view the exact graph... (3 Replies)
Discussion started by: ajayram_arya
3 Replies
LEARN ABOUT CENTOS
xcb_poly_line
xcb_poly_line(3) XCB Requests xcb_poly_line(3)
NAME
xcb_poly_line - draw lines
SYNOPSIS
#include <xcb/xproto.h>
Request function
xcb_void_cookie_t xcb_poly_line(xcb_connection_t *conn, uint8_t coordinate_mode, xcb_drawable_t drawable, xcb_gcontext_t gc,
uint32_t points_len, const xcb_point_t *points);
REQUEST ARGUMENTS
conn The XCB connection to X11.
coordinate_mode
One of the following values:
XCB_COORD_MODE_ORIGIN
Treats all coordinates as relative to the origin.
XCB_COORD_MODE_PREVIOUS
Treats all coordinates after the first as relative to the previous coordinate.
drawable The drawable to draw the line(s) on.
gc The graphics context to use.
points_len
The number of xcb_point_t structures in points.
points An array of points.
DESCRIPTION
Draws points_len-1 lines between each pair of points (point[i], point[i+1]) in the points array. The lines are drawn in the order listed in
the array. They join correctly at all intermediate points, and if the first and last points coincide, the first and last lines also join
correctly. For any given line, a pixel is not drawn more than once. If thin (zero line-width) lines intersect, the intersecting pixels are
drawn multiple times. If wide lines intersect, the intersecting pixels are drawn only once, as though the entire request were a single,
filled shape.
RETURN VALUE
Returns an xcb_void_cookie_t. Errors (if any) have to be handled in the event loop.
If you want to handle errors directly with xcb_request_check instead, use xcb_poly_line_checked. See xcb-requests(3) for details.
ERRORS
xcb_drawable_error_t
TODO: reasons?
xcb_gc_error_t
TODO: reasons?
xcb_value_error_t
TODO: reasons?
xcb_match_error_t
TODO: reasons?
EXAMPLE
/*
* Draw a straight line.
*
*/
void my_example(xcb_connection *conn, xcb_drawable_t drawable, xcb_gcontext_t gc) {
xcb_poly_line(conn, XCB_COORD_MODE_ORIGIN, drawable, gc, 2,
(xcb_point_t[]) { {10, 10}, {100, 10} });
xcb_flush(conn);
}
SEE ALSO
xcb-requests(3), xcb-examples(3)
AUTHOR
Generated from xproto.xml. Contact xcb@lists.freedesktop.org for corrections and improvements.
XCB
2014-06-10 xcb_poly_line(3)