When I tried to plot the graph in real time, I implemented the g_timeout_add() to perform the glg_line_graph_data_series_add() and glg_line_graph_redraw() function at a frequency. Yet, the graph was not updated. Instead, only when I clicked back and forth on the terminal and my window, or expanding the window size with my mouse, the graph was updated.
When I tried to plot the graph in real time, I implemented the g_timeout_add() to perform the glg_line_graph_data_series_add() and glg_line_graph_redraw() function at a frequency. Yet, the graph was not updated. Instead, only when I clicked back and forth on the terminal and my window, or expanding the window size with my mouse, the graph was updated.