# set_xlog¶

sherpa.astro.ui.set_xlog(plottype='all')

New plots will display a logarithmically-scaled X axis.

This setting only affects plots created after the call to set_xlog.

Parameters: plottype (optional) – The type of plot that is to use a log-scaled X axis. The options are the same as accepted by plot, together with the ‘all’ option (which is the default setting).

plot()
Create one or more plot types.
set_xlinear()
New plots will display a linear X axis.
set_ylog()
New plots will display a logarithmically-scaled Y axis.

Examples

Use a logarithmic scale for the X axis of ‘data’ plots:

>>> set_xlog('data')
>>> plot('data', 'arf')


All plots use a logarithmic scale for the X axis.

>>> set_xlog()
>>> plot_fit()