|
|
plot_data( [id], [replot=False, overplot=False] )
The plot_data command plots the data values for a given
dataset.
| id |
1 (can be changed, see "ahelp get_default_id") |
the id of the dataset to plot |
| replot |
False
|
should previously-calculated arrays be used to create the plot?
|
| overplot |
False
|
If
True
then add the data to the current plot, otherwise erase the frame and
create a new plot.
|
The plot is displayed in a ChIPS plotting window. If there is
no plotting window open, one is created. If a plotting window
exists, the overplot parameter value determines whether the
new plot is overlaid on any existing plots in the window or if
the window is cleared before the plot is drawn.
ChIPS commands may be used within Sherpa to modify plot
characteristics and create hardcopies; refer to the ChIPS website for
information.
The default values for the plot can be read - and changed - using
the get_data_plot_prefs() command. See
unix% ahelp get_data_plot
and the examples below for more information.
sherpa> plot_data()
sherpa> log_scale(XY_AXIS)
sherpa> print_window("data")
Plot the data in the default dataset.
The ChIPS command log_scale() is used to change the scaling of
the axes to logarithmic and the print_window() command
is used to create a postscript version of the plot
called "data.ps".
sherpa> get_data_plot_prefs()["xlog"] = True
sherpa> get_data_plot_prefs()["ylog"] = True
sherpa> plot_data()
The plot preferences for data plots is changed to use a logarithmic
scale for both X and Y axes. Any new plots created by plot_data()
will therefore be drawn with both axes logged.
sherpa> plot_data()
sherpa> plot_data("src", overplot=True)
sherpa> set_curve(["symbol.color", "green"]);
Plots the default dataset and then overplots the data from the "src"
dataset. The second dataset is changed, using ChIPS commands,
to green symbols.
- py.sherpa
-
calc_data_sum,
calc_data_sum2d,
calc_ftest,
calc_kcorr,
calc_mlr,
calc_model_sum2d,
calc_source_sum2d,
clean,
contour,
contour_data,
contour_ratio,
contour_resid,
copy_data,
dataspace1d,
dataspace2d,
delete_data,
get_arf_plot,
get_axes,
get_bkg_plot,
get_chisqr_plot,
get_counts,
get_data,
get_data_plot,
get_default_id,
get_delchi_plot,
get_dep,
get_dims,
get_error,
get_filter,
get_rate,
get_ratio,
get_resid,
get_specresp,
get_split_plot,
group,
histogram1d,
histogram2d,
image_data,
list_data_ids,
list_response_ids,
load_ascii,
load_data,
plot,
plot_arf,
plot_bkg,
plot_chisqr,
plot_delchi,
plot_fit,
plot_model,
plot_order,
plot_ratio,
plot_resid,
plot_source,
rebin,
set_data,
ungroup,
unpack_ascii,
unpack_data
- py.sherpa_contrib
-
get_data_prof,
get_data_prof_prefs,
get_delchi_prof,
get_delchi_prof_prefs,
get_fit_prof,
get_model_prof,
get_model_prof_prefs,
get_resid_prof,
get_resid_prof_prefs,
get_source_prof,
get_source_prof_prefs,
plot_chart_spectrum,
plot_energy_flux,
plot_instmap_weights,
plot_photon_flux,
prof_data,
prof_delchi,
prof_fit,
prof_fit_delchi,
prof_fit_resid,
prof_model,
prof_resid,
prof_source
|