Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

XXXX download data

A Simple Graph

XXXXXXX

Create a new Input Visualiser icon. Set Input Plot Type to XYPoints and type a list of values (forward slash-delimited) for both Input X Values and Input Y Values (they should have the same number of elements).

Visualise the icon to get a basic plot of the data. You can drop a customised Symbol Plotting icon into the Display Window to change the numbers into markers. Also try dropping a Graph Plotting icon to get connecting lines between the points.If  If you wish to have a plot where the individual points are coloured according to some value, set Input Values to  to a list of numbers. Then an appropriate Symbol Plotting icon  icon will colour the markers.

Also try dropping a Graph Plotting icon to get connecting lines between the points. Try changing the plot type to a bar chart.

Notice that the automatically-generated view fits your data so that the 'edge points' are on the axes.

...

  • put the lists of x and y values into list variables at the top of the macro and use these variables in the cartesian_view() call
  • to find the minimum value from a list, we need to convert it into a vector variable, then use the minvalue() function on the new vector
    • hint: min_x = minvalue(vector(x_values))
  • similarly for the maximum
  • we need to do this for min and max of both x and y variables to get what we need to set X MinX MaxY Min and Y Max correctly.

 

 

 

Customising Your Plot Title
titles - advanced, GRIB, coloured

...

  • .

You should now be able to change the data values at the top of the macro, and the plot should still look ok.

Plotting a Time Series

XXXXXX