Note: Either public, protected or private keyword is used in place of access_specifier term used in the above code. Example of public, protected and private inheritance in C++
The graph of a relation of the form y = 5 is a line parallel to the x-axis because the y value never changes. A line parallel to the x-axis is called a horizontal line. The graph of a relation of the form x = 5 is a line parallel to the y-axis because the x value never changes. A line parallel to the y-axis is called a vertical line. Plot the graph of each of the following relations: horizontal line, vertical line.
Different Types of Graphs. If you transfer data from a table to a graph, the most immediate result is a scatterplot, which consists of a number of different points on the coordinate plane. In connecting those points, you arrive at a line graph. The horizontal axis functions the same in both of these cases. In a bar graph, however, the horizontal axis can take on a slightly different role. For example, if you are comparing the populations from three different years in a bar graph, the horizontal axis would merely have labels for each year.