2020-12-31 15:17:38 +01:00
|
|
|
tool
|
2021-02-21 11:29:29 +01:00
|
|
|
extends ScatterChartBase
|
2020-12-31 15:17:38 +01:00
|
|
|
class_name ScatterChart
|
|
|
|
|
|
|
|
|
2021-03-02 20:18:31 +01:00
|
|
|
# [ScatterChart] - General purpose node for Scatter Charts
|
|
|
|
# A scatter plot (also called a scatterplot, scatter graph, scatter chart,
|
|
|
|
# scattergram, or scatter diagram) is a type of plot or mathematical diagram
|
|
|
|
# using Cartesian coordinates to display values for typically two variables
|
|
|
|
# for a set of data. If the points are coded (color/shape/size), one additional
|
|
|
|
# variable can be displayed. The data are displayed as a collection of points,
|
|
|
|
# each having the value of one variable determining the position on the
|
|
|
|
# horizontal axis and the value of the other variable determining the position
|
|
|
|
# on the vertical axis.
|
|
|
|
# Source: Wikipedia
|
|
|
|
|
|
|
|
|
2021-02-21 11:29:29 +01:00
|
|
|
func _get_property_list():
|
2021-03-02 20:18:31 +01:00
|
|
|
property_list[0].name = "ScatterChart"
|
|
|
|
return property_list
|
2020-12-31 15:17:38 +01:00
|
|
|
|
|
|
|
|
|
|
|
func _draw():
|
|
|
|
clear_points()
|
|
|
|
draw_grid()
|
|
|
|
draw_chart_outlines()
|
2021-02-21 11:29:29 +01:00
|
|
|
draw_points()
|
|
|
|
draw_treshold()
|