Data.plot_matrix

Data.plot_matrix(xvals=None, yvals=None, rectang=None, cmap=<matplotlib.colors.ListedColormap object>, show_plot=True, title='', xlabel=None, ylabel=None, zlabel=None, figure=None, plotter=None, **kwords)

Plot a surface plot by assuming that the current dataset represents a regular matrix of points.

Parameters:
  • xvals (index, list or numpy.array) – Either a column index or name or a list or numpytarray of column values. The default (None) uses the first column of data

  • yvals (int or list) – Either a row index or a list or numpy array of row values. The default (None) uses the column_ headings interpreted as floats

  • rectang (tuple) – a tuple of either 2 or 4 elements representing either the origin (row,column) or size (origin, number of rows, number of columns) of data to be used for the z0data matrix

Keyword Arguments:
  • cmap (matplotlib colour map) – Surface colour map - defaults to the jet colour map

  • show_plot (bool) – True Turns on interactive plot control

  • title (string) – Optional parameter that specifies the plot title - otherwise the current DataFile filename is used

  • xlabel (string) – X axes label. Default is None - guess from xvals or metadata

  • ylabel (string) – Y axes label, Default is None - guess from metadata

  • zlabel (string) – Z axis label, Default is None - guess from metadata

  • figure (matplotlib figure) – Controls what matplotlib figure to use. Can be an integer, or a matplotlib.figure or False. If False then a new figure is always used, otherwise it will default to using the last figure used by this DataFile object.

  • plotter (callable) – Optional argument that passes a plotting function into the routine. Sensible choices might be plt.plot (default), py.semilogy, plt.semilogx

  • kwords (dict) – A dictionary of other keyword arguments to pass into the plot function.

  • Returns – The matplotib figure with the data plotted