mirror of
https://github.com/Relintai/pandemonium_engine_easy_charts.git
synced 2025-01-17 14:47:24 +01:00
Fix clearing of data structures with multiple calls to plot_from_x
This commit is contained in:
parent
cd5b296eda
commit
e6914a82a4
@ -342,6 +342,8 @@ func plot():
|
||||
emit_signal("chart_plotted",self)
|
||||
|
||||
func plot_from_csv(csv_file : String, _delimiter : String = delimiter):
|
||||
clean_variables()
|
||||
clear_points()
|
||||
load_font()
|
||||
PointData.hide()
|
||||
|
||||
@ -387,7 +389,6 @@ func plot_from_dataframe(dataframe : DataFrame) -> void:
|
||||
clean_variables()
|
||||
clear_points()
|
||||
load_font()
|
||||
load_font()
|
||||
PointData.hide()
|
||||
|
||||
data = dataframe.get_dataframe().duplicate(true)
|
||||
|
@ -384,6 +384,13 @@ func generate_identifier():
|
||||
func structure_datas(database : Array):
|
||||
# @labels_index can be either a column or a row relative to x values
|
||||
# @y_values can be either a column or a row relative to y values
|
||||
|
||||
#This is done to make sure this arrays are empty on subsecuent calls of this function.
|
||||
#This function is called from the "old" methods such as plot_from_array and
|
||||
#for the moment it doesn't clean this variables on clean_variable.
|
||||
x_domain = [[], []]
|
||||
y_domain = [[], []]
|
||||
|
||||
are_values_columns = invert_chart != are_values_columns
|
||||
var x_values := []
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user