XY Plot

 In Plotting

Our XY Plot visualizer lets you send x,y pairs through your microcontroller’s serial port to view plots of the data.

XYPlot

MegunoLink Pro plots x-y data sent from a microcontroller, such as the Arduino, over a serial, or UDP, port.

To create a new x-y plot, select the X-Y visualizer from the Visualizers panel. Click the Visualizer icon on the main toolbar to show the Visualizers panel.

Create XY Plot

Select X-Y Plot from the Visualizer Panel to create a new xy plot visualizer in MegunoLink Pro.

Reference

  • Arduino XYPlot library reference: for details on plotting data using our Arduino Library
  • Raw plotting message reference: for details on the raw message format for sending data to MegunoLink Pro for plotting. It is usually easier to use the Arduino library than creating raw messages if you are on the Arduino platform.

Sending Data from an Arduino

We’ve created an Arduino library to make it easier to send data to MegunoLink Pro for plotting. After you install the Arduino library:

  1. Add #include "MegunoLink.h" to the top of your Arduino program
  2. Create a XYPlot variable
  3. Call SendData to send data to MegunoLink Pro for plotting

This simple example sets the graph titles and plots points using analog channel 0 for the x-axis and analog channel 1 for the y-axis.

Channels

Channel selector

The channel selector on the plot toolbar can be used to select a collection of series to display on the plot. Leave it blank to show the default channel.

MegunoLink Pro plots support channels, a short text string for grouping series together. Channels let you have several plots in a project, sending different data to each.

Refer to the Arduino Library documentation and the message format reference for more information on setting up channels in your microcontroller.

Use the channel selector on the plot toolbar to choose which channel the plot should show. The channel selector is automatically populated with channels as they are detected. You can also type a channel name directly into the selector’s text box.

User Interface

Plot properties and series styles can be set using buttons on the plot toolbar. Along with tools to select and remove series, zoom and pan, you can also hide or show the plot legend and toggle visibility of the summary table. The summary table lists the series which have been detected along with useful statistics including the minimum, maximum and average value received for each series.

XY Plot Chart Controls

All xy plot properties can be adjusted using the plotting toolbar.

Recent Posts
Showing 3 comments
  • Marthijn Feddes
    Reply

    Hi there.

    I was wondering if it is possible to adjust the Y-axis so that it’s in the middel. I would like the margin (0 point) of both axis to be in the middle so that there is a clear representation of positive and negative parts of the axes. The result would be the axis’ making a +.

    Thankyou

    • Philip Rowe
      Reply

      Hi Marthijn, unfortunately with our current setup that is not possible. I’ll add to the request list.

      Cheers
      Phil

  • Muhammad Kamran
    Reply

    Really a helpful software

Leave a Comment

Contact Us

Send us an email and we will get back to you shortly.

Not readable? Change text.

Start typing and press Enter to search