chemtools.outputs.plot.plot_scatter

chemtools.outputs.plot.plot_scatter(x, y, fname, color='b', xlabel=None, ylabel=None, xlim=None, ylim=None)[source]

Scatter plot of y versus x.

Parameters:
  • x (1-D array or sequence.) – Array or sequence containing data on x axis.
  • y (1-D array or sequence.) – Array or sequence containing data on y axis.
  • fname (str) –

    A string representing the path to a filename for storing the plot. If the given filename does not have a proper extension, the ‘png’ format is used by default, i.e. plot is saved as filename.png. Supported formats, which can be specified as filename extensions, include:

    • ’svgz’ or ‘svg’ (Scalable Vector Graphics)
    • ’tif’ or ‘tiff’ (Tagged Image File Format)
    • ’raw’ (Raw RGBA bitmap)
    • ’png’ (Portable Network Graphics)
    • ’ps’ (Postscript)
    • ’eps’ (Encapsulated Postscript)
    • ’rgba’ (Raw RGBA bitmap)
    • ’pdf’ (Portable Document Format)
  • color (str, optional) – Color of plot. To customize color, see http://matplotlib.org/users/colors.html
  • xlabel (str, optional) – The x axis label.
  • ylabel (str, optional) – The y axis label.
  • xlim (1-D array or sequence of length 2, optional) – The lower and higher limit of x axis.
  • ylim (1-D array or sequence of length 2, optional) – The lower and higher limit of y axis.