SetXScaleType — Select linear or logarithmic scale




SetXScaleType sets the scale type along the X axis to be either linear (the default) or logarithmic.



A string specifying the scale type: 'linear' or 'log'.


No X value may be less than or equal to 0 with logarithmic X scale.

Support for logarithmic scales in PHPlot is limited. One problem is that tick interval is fixed for the entire range of data, which is inappropriate for logarithmic scales where the data spans more than one magnitude.

The default X and Y scale types are linear. Logo

This version of the manual was produced for the PHPlot Sourceforge project web service site, which requires the logo on each page.

To download a logo-free copy of the manual, see the PHPlot project downloads area.