Next: , Previous: image, Up: plotting_styles


2.13 impulses

The impulses style displays a vertical line from the x axis to the y value of each point (2D) or from the xy plane to the z value of each point (3D). Note that the y or z values may be negative. As with most plot styles, data from additional columns can be used to control the color of each impulse. To use this style effectively in 3D plots, it is useful to use thick lines (linewidth > 1). This approximates a 3D bar chart.

          1 column:   y        # implicit x coordinate from row number (2D)
          2 columns:  x  y     # line from [x,0] to [x,y]  (2D)
          3 columns:  x  y  z  # line from [x,y,0] to [x,y,z] (3D)