concept object in category gnuplot

appears as: object, objects, object, n object
Gnuplot in Action

This is an excerpt from Manning's book Gnuplot in Action.

Gnuplot defines three shapes that can be used as plotting symbols: arrows, circles, and ellipses. What’s different about these plot elements is that they have a nontrivial internal structure that can be used to encode information: the arrow has not only a position (as does any other point symbol) but also a direction and a length. An ellipse has a variable shape and orientation; and circles are interesting, because gnuplot lets you draw arc segments in addition to full circles. (As I pointed out earlier, these styles share many properties with set arrow and set object—see sections 7.3.2 and 7.3.4 for additional details.)

Labels, arrows, and geometric shapes (objects) are organized in two layers, one of which is (visually) behind the plotted data; the other one is on the top of the visual stack. When creating a decoration, you can assign it to either of these two layers using the keywords front and back; the default is back. Within each layer, arrows are visually in front of labels, and geometric shapes are even further behind. As you’ll learn in the next section, each arrow (or label or object) has a numeric tag, and this tag is used to sort elements of the same type: arrows with lower tag numbers are drawn first, and all arrows are drawn before any text labels are drawn.

Because gnuplot’s shapes and objects are a bit outside this book’s primary goal (which is to help you understand data with graphs), I won’t discuss them much further, except for some cautionary notes. (See the standard reference documentation for details.)

All objects share a single tag counter, which is separate from the tag counters for arrows and labels; but keep in mind that there is no separate tag counter for (say) circles as opposed to rectangles. All shapes are of type object; the particular shape (whether circle, rectangle, ellipse, or polygon) is specified as a property of each individual object. For rectangles, you can define a global style using set style rectangle; the other shapes inherit properties from the global fill style, which is defined through set style fill. (See section 9.4 for information on global styles.) Finally, let me remind you that elements of type object are the only items that can be placed in the layer at the bottom of the visual stack (using the behind keyword). This can be useful to give a colored background to the entire graph. (Most contemporary terminals let you specify a background color, which may be a more convenient alternative, provided you want to give a single color to the entire canvas area.)

Arrows, labels, and objects are graphical elements that you can use to make graphs more interesting and more informative. But they aren’t the only elements that can go on a plot besides data, and they aren’t even the most useful ones. The single most useful element is probably the graph’s legend or key, which explains what all the lines and symbols on the plot stand for. Gnuplot’s set key facility is very powerful and therefore deserves a section by itself.