Python pandas.scatter_matrix() Examples
The following are 6
code examples of pandas.scatter_matrix().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
pandas
, or try the search function
.
Example #1
Source File: core.py From ffn with MIT License | 6 votes |
def plot_scatter_matrix(self, freq=None, title=None, figsize=(10, 10), **kwargs): """ Wrapper around pandas' scatter_matrix. Args: * freq (str): Data frequency used for display purposes. Refer to pandas docs for valid freq strings. * figsize ((x,y)): figure size * title (str): Title if default not appropriate * kwargs: passed to pandas' scatter_matrix method """ if title is None: title = self._get_default_plot_title( freq, 'Return Scatter Matrix') plt.figure() ser = self._get_series(freq).to_returns().dropna() pd.scatter_matrix(ser, figsize=figsize, **kwargs) return plt.suptitle(title)
Example #2
Source File: test_deprecated.py From vnpy_crypto with MIT License | 5 votes |
def test_scatter_plot_legacy(self): df = pd.DataFrame(randn(100, 2)) with tm.assert_produces_warning(FutureWarning): plotting.scatter_matrix(df) with tm.assert_produces_warning(FutureWarning): pd.scatter_matrix(df)
Example #3
Source File: DyStatsTableWidget.py From DevilYuan with MIT License | 5 votes |
def _scatterMatrixAct(self): df = self.getNumberDataFrame() if df is None: return DyMatplotlib.newFig() pd.scatter_matrix(df) plt.gcf().show()
Example #4
Source File: test_deprecated.py From elasticintel with GNU General Public License v3.0 | 5 votes |
def test_scatter_plot_legacy(self): tm._skip_if_no_scipy() df = pd.DataFrame(randn(100, 2)) with tm.assert_produces_warning(FutureWarning): plotting.scatter_matrix(df) with tm.assert_produces_warning(FutureWarning): pd.scatter_matrix(df)
Example #5
Source File: DyStatsTableWidget.py From DevilYuan with MIT License | 5 votes |
def _scatterMatrixAct(self): df = self.getNumberDataFrame() if df is None: return DyMatplotlib.newFig() pd.scatter_matrix(df) plt.gcf().show()
Example #6
Source File: test_deprecated.py From twitter-stock-recommendation with MIT License | 5 votes |
def test_scatter_plot_legacy(self): df = pd.DataFrame(randn(100, 2)) with tm.assert_produces_warning(FutureWarning): plotting.scatter_matrix(df) with tm.assert_produces_warning(FutureWarning): pd.scatter_matrix(df)