Use a scatter plot overlay to create real-time chart markers

See your buys, sells, and predictions in real time

October 14 2022

Chip KentChip KentChief Data Scientist @Deephaven
Stable diffusion prompt: marker drawing on a scatter plot, written notes, line plot, graph, chart with dots on the lines Seed-2953402 Steps-25 Guidance-7.5

On Deephaven Community Slack, we frequently get interesting questions from users. Recently, a user asked us how to draw markers on a chart. In his case, he wanted to plot financial predictions with markers when his automated trading system bought or sold a stock or option.

Drawing markers is easy, but it may not be obvious until you have seen it once. To draw markers on a chart, you need to:

  1. Draw your primary chart.
  2. Clone the x- and y- axes using twin.
  3. Set the new axes to be a scatter plot.
  4. Draw the points on the new axes.

That's it.

Let's look at an example:

Tell us about your project or feature requests on Deephaven Community Slack.