b960dd736f6ab1f3135eb4d4373712b5fa9cafa8,pypfopt/plotting.py,,plot_efficient_frontier,#,115
Before Change
ax.plot(sigmas, mus, label="Efficient frontier")
if show_assets:
ax.scatter(
np.sqrt(np.diag(cla.cov_matrix)),
cla.expected_returns,
s=30,
color="k",
label="assets",
)
ax.scatter(optimal_risk, optimal_ret, marker="x", s=100, color="r", label="optimal")
ax.legend()
ax.set_xlabel("Volatility")
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")
In pattern: SUPERPATTERN
Frequency: 3
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: biotite-dev/biotite
Commit Name: dc0f01addc3c31a16ac98688b65a5403730fa33b
Time: 2020-12-04
Author: patrick.kunzm@gmail.com
File Name: doc/examples/scripts/structure/peoe_visualization.py
Class Name:
Method Name:
Project Name: DistrictDataLabs/yellowbrick
Commit Name: 8b6d548492cf2f85ed5bcf3ad4e5a972bc8af8c8
Time: 2016-10-08
Author: benjamin@bengfort.com
File Name: yellowbrick/regressor.py
Class Name: ResidualsPlot
Method Name: draw