Graph Dialog Class
Create a GeoDict graph with the graph dialog class.
Graph dialogs allow displaying multiple graphs with multiple data sets per graph.
Input: None
gDlg = gd.makeGraphDialog() |
# create a graph # dialog object |
graph1 = gDlg.addGraph("Graph title", "X-Axis Legend", "Y-Axis Legend") |
# add a graph object # with the given title, # x-axis legend # and y-axis legend |
graph1.addData([1,2,3], [1,2,3], "Linear function: y = x") |
# add a single dataset # with the given x values, # y values and # legend to this graph |
graph1.addData([1,2,3], [1,4,9], "Quadratic function: y = x^2") |
# add another dataset |
gDlg.run() |
# execute the # graph dialog |