b960dd736f6ab1f3135eb4d4373712b5fa9cafa8,pypfopt/plotting.py,,plot_efficient_frontier,#,115

Before Change



    if show_assets:
        ax.scatter(
            np.sqrt(np.diag(cla.cov_matrix)),
            cla.expected_returns,
            s=30,
            color="k",

After Change


    
    if isinstance(opt, CLA):
        ax = _plot_cla(opt, points, show_assets=show_assets)
    elif isinstance(opt, EfficientFrontier):
        ax = _plot_ef(opt, ef_param, ef_param_range, show_assets=show_assets)
    else:
        raise NotImplementedError("Please pass EfficientFrontier or CLA object")

    ax.legend()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: robertmartin8/PyPortfolioOpt
Commit Name: b960dd736f6ab1f3135eb4d4373712b5fa9cafa8
Time: 2021-01-28
Author: martin.robertandrew@gmail.com
File Name: pypfopt/plotting.py
Class Name:
Method Name: plot_efficient_frontier


Project Name: fabianp/mord
Commit Name: a636a0a45e30d2a8813d9c3dafb3f10dfb863b2f
Time: 2015-07-16
Author: f@bianp.net
File Name: mord/threshold_based.py
Class Name:
Method Name: threshold_fit


Project Name: nipy/dipy
Commit Name: 30eadc321c1755eca615a39bb4b8b5fc1e769f70
Time: 2019-03-10
Author: rafaelnh21@gmail.com
File Name: dipy/reconst/mdki.py
Class Name:
Method Name: _wls_fit_mdki


Project Name: cornellius-gp/gpytorch
Commit Name: 6caac4bf947a3e2d146bc0d0e6d758f8fc51de70
Time: 2020-11-09
Author: wjm363@nyu.edu
File Name: gpytorch/lazy/kronecker_product_lazy_tensor.py
Class Name: KroneckerProductLazyTensor
Method Name: _symeig