Plot

class Plot(SEDdata=None, x_min=None, x_max=None, y_min=None, y_max=None, interactive=True, plot_workplace=None, title='Plot')[source]

Bases: object

Methods Summary

add_data_plot(SEDdata[, label, color, …])
add_model_plot(model[, label, color, …])
add_res_zeroline()
add_residual_plot(model, data[, label, …])
add_text(lines)
add_xy_plot(x, y[, label, color, …])
autoscale()
clean_data_lines()
clean_model_lines()
del_data_line(line_ID)
del_model_line(line_ID)
list_lines()
rescale(**kw) Rescales the data plot acording to x_min/max, y_min/max values
rescale_res(**kw) Rescales the data plot acording to x_min/max, y_min/max values
save(filename)
set_plot_axis_labels([SEDdata])
update_legend([label])
update_plot()

Methods Documentation

add_data_plot(SEDdata, label=None, color=None, autoscale=False, fmt='o', ms=None, mew=None)[source]
add_model_plot(model, label=None, color=None, line_style=None, autoscale=False, update=True)[source]
add_res_zeroline()[source]
add_residual_plot(model, data, label=None, color=None, autoscale=False, filter_UL=True)[source]
add_text(lines)[source]
add_xy_plot(x, y, label=None, color=None, line_style=None, autoscale=False)[source]
autoscale()[source]
clean_data_lines()[source]
clean_model_lines()[source]
del_data_line(line_ID)[source]
del_model_line(line_ID)[source]
list_lines()[source]
rescale(**kw)[source]

Rescales the data plot acording to x_min/max, y_min/max values if no argument are passed, the plot is rescaled according to current x_min/max, y_min/max values if a value is passed as argument, the corresponding axis min/max is updated, and the plot is rescaled accordingly

Args: x_min,x_max,y_min,y_max

rescale_res(**kw)[source]

Rescales the data plot acording to x_min/max, y_min/max values if no argument are passed, the plot is rescaled according to current x_min/max, y_min/max values if a value is passed as argument, the corresponding axis min/max is updated, and the plot is rescaled accordingly

Args: x_min,x_max,y_min,y_max

save(filename)[source]
set_plot_axis_labels(SEDdata=None)[source]
update_legend(label=None)[source]
update_plot()[source]