Logo Search packages:      
Sourcecode: ygraph version File versions  Download package

void data_reload_plot ( Plot plot,
gint  action,
GtkItem *  reload_button 
)

Reload all of the data in a given plot.

Parameters:
plot The Plot whose data is to be reloaded.
action The calling action.
reload_button The "reload" button.
Returns:
TRUE if successful, otherwise crash.

Definition at line 859 of file callbacks.c.

References _Plot::data, dataset_read_from_file(), _DataSet::fname, option_read_skip_step, plot_get_data_index(), plot_window_display_all(), and plot_window_reconfigure().

{
  DataSet* data_set;
  guint i;
  
  UNUSED(action);
  UNUSED(reload_button);
  if (plot->data == NULL)
    return;
  
  for (i=0; i<plot->data->len; ++i)
    {
      data_set = plot_get_data_index(plot, i);
      dataset_read_from_file(data_set->fname, option_read_skip_step);
    }

  plot_window_reconfigure(plot);
  plot_window_display_all(plot);
}


Generated by  Doxygen 1.6.0   Back to index