Home

JSPlot Documentation: Graph plotting styles

  1. The plotting canvas
  2. Plotting data
  3. Plotting functions
  4. Vector graphics
  5. Graph plotting styles
  6. Graph options
  7. Graph axis options
  8. Vector graphics objects

The table below lists the plot styles available in JSPlot. They should be selected using the plotStyle setting passed to a JSPlot_DataSet instance.

The plot styles available in JSPlot loosely follows those available in Pyxplot. These, in turn, loosely follow those available in gnuplot.

Style name Description Required columns (2D) Required columns (3D)
points Data points (x, y) (x, y, z)
lines Straight lines joining points (x, y) (x, y, z)
linespoints Both points and lines styles together (x, y) (x, y, z)
xerrorbars Error bars along the x-axis (x, y, x_error_size) (x, y, z, x_error_size)
yerrorbars Error bars along the y-axis (x, y, y_error_size) (x, y, z, y_error_size)
zerrorbars Error bars along the z-axis (x, y, z, z_error_size)
xyerrorbars Error bars along the x- and y-axes (x, y, x_error_size, y_error_size) (x, y, z, x_error_size, y_error_size)
yzerrorbars Error bars along the y- and z-axes (x, y, z, y_error_size, z_error_size)
xzerrorbars Error bars along the x- and z-axes (x, y, z, x_error_size, z_error_size)
xyzerrorbars Error bars along the x-, y- and z-axes (x, y, z, x_error_size, y_error_size, z_error_size)
xerrorrange Error range along the x-axis (x, y, x_min, x_max) (x, y, z, x_min, x_max)
yerrorrange Error range along the y-axis (x, y, y_min, y_max) (x, y, z, y_min, y_max)
zerrorrange Error range along the z-axis (x, y, z, z_min, z_max)
xyerrorrange Error range along the x- and y-axes (x, y, x_min, x_max, y_min, y_max) (x, y, z, x_min, x_max, y_min, y_max)
yzerrorrange Error range along the y- and z-axes (x, y, z, y_min, y_max, z_min, z_max)
xzerrorrange Error range along the x- and z-axes (x, y, z, x_min, x_max, z_min, z_max)
xyzerrorrange Error range along the x-, y- and z-axes (x, y, z, x_min, x_max, y_min, y_max, z_min, z_max)
dots Tiny circles (x, y) (x, y, z)
impulses Lines from horizontal axis to each point (x, y) (x, y, z)
boxes A bar chart (x, y) (x, y)
wboxes A bar chart, with manually specified width for each bar (x, y, width) (x, y, width)
steps A line to be plotted as steps (x, y) (x, y)
fsteps A line to be plotted as steps (x, y) (x, y)
histeps A line to be plotted as steps (x, y) (x, y)
arrows_head Each datapoint drawn as an arrow (x0, y0, x1, y1) (x0, y0, z0, x1, y1, z1)
arrows_nohead Each datapoint drawn as a line (x0, y0, x1, y1) (x0, y0, z0, x1, y1, z1)
arrows_twohead Each datapoint drawn as a bidirectional arrow (x0, y0, x1, y1) (x0, y0, z0, x1, y1, z1)
surface A surface plot (3D graphs only); data must be sampled on a regular grid in X and Y. (x, y, z) (x, y, z)

Follow