01aa5b53d9a4ea3fc980382204c5da57735412ff,ggplot/guides/guides.py,guides,validate,#guides#Any#,140
Before Change
Validate guide object
if is_string(guide):
guide = "guide_{}".format(guide)
obj = gg_import(guide)
guide = obj()
if not isinstance(guide, guide_class):
raise GgplotError(
After Change
Validate guide object
if is_string(guide):
guide = Registry["guide_{}".format(guide)]()
if not isinstance(guide, guide_class):
raise GgplotError(
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: has2k1/plotnine
Commit Name: 01aa5b53d9a4ea3fc980382204c5da57735412ff
Time: 2016-05-18
Author: has2k1@gmail.com
File Name: ggplot/guides/guides.py
Class Name: guides
Method Name: validate
Project Name: has2k1/plotnine
Commit Name: 01aa5b53d9a4ea3fc980382204c5da57735412ff
Time: 2016-05-18
Author: has2k1@gmail.com
File Name: ggplot/geoms/annotate.py
Class Name: annotate
Method Name: __init__
Project Name: has2k1/plotnine
Commit Name: 01aa5b53d9a4ea3fc980382204c5da57735412ff
Time: 2016-05-18
Author: has2k1@gmail.com
File Name: ggplot/guides/guide_legend.py
Class Name: guide_legend
Method Name: create_geoms