standardize_1d¶
- standardize_1d(self, *args, data=None, autoformat=None, **kwargs)[source]¶
Interpret positional arguments for the “1D” plotting methods so usage is consistent. Positional arguments are standardized as follows:
If a 2D array is passed, the corresponding plot command is called for each column of data (except for
boxplotandviolinplot, in which case each column is interpreted as a distribution).If x and y or latitude and longitude coordinates were not provided, and a
DataFrameorDataArray, we try to infer them from the metadata. Otherwise,np.arange(0, data.shape[0])is used.
Important
This function wraps
plot,plotx,step,stem,vlines,hlines,scatter,scatterx,bar,barh,hist,fill_between,fill_betweenx,boxplot,violinplot,pie,parametric,hexbin, andhist2d.- Parameters
data (dict-like, optional) – A dict-like dataset container (e.g.,
DataFrameorDataArray). If passed, positional arguments must be validdatakeys and the arrays used for plotting are retrieved withdata[key]. This is a native matplotlib feature previously restricted to justplotandscatter.autoformat (bool, optional) – Whether x axis labels, y axis labels, axis formatters, axes titles, legend labels, and colorbar labels are automatically configured when a
Series,DataFrameorDataArrayis passed to the plotting command. Default isrc.autoformat=True.
See also