Skip to content

marker

Add or get a data-point marker on a graph.

h = marker(name, ...)

Adds a labeled marker pinned to a specific data point on the active graph, or returns a handle to an existing marker by name. Persists with the chart and stays in sync with data updates.

MathJet-specific (used by the chart’s marker functionality — see Reference > Visualization > Markers).

marker('peak', 'X', 5.2, 'Y', 0.97)
  • dmarker — Add a delta marker (difference between two data points).
  • xmarker — Add an x-axis marker (vertical line at a specific x value).
  • ymarker — Add a y-axis marker (horizontal line at a specific y value).