本文整理汇总了Python中holoviews.core.options.Store.options方法的典型用法代码示例。如果您正苦于以下问题:Python Store.options方法的具体用法?Python Store.options怎么用?Python Store.options使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类holoviews.core.options.Store
的用法示例。
在下文中一共展示了Store.options方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _set_style
# 需要导入模块: from holoviews.core.options import Store [as 别名]
# 或者: from holoviews.core.options.Store import options [as 别名]
def _set_style(self, feature, map_type):
fname = feature.name.capitalize()
style_path = ('Image', fname + map_type.capitalize())
options = Store.options(backend='matplotlib')
if style_path not in options.data:
cyclic = True if feature.cyclic and not map_type == 'selectivity' else False
options[style_path] = Options('style', **(dict(cmap='hsv') if cyclic else dict()))
示例2: option_intersections
# 需要导入模块: from holoviews.core.options import Store [as 别名]
# 或者: from holoviews.core.options.Store import options [as 别名]
def option_intersections(backend):
intersections = []
options = Store.options(backend)
for k, opts in sorted(options.items()):
if len(k) > 1: continue
valid_options = {k: set(o.allowed_keywords)
for k, o in opts.groups.items()}
for g1, g2 in combinations(Options._option_groups, 2):
intersection = valid_options[g1] & valid_options[g2]
if intersection:
intersections.append((k, intersection))
return intersections
示例3: Options
# 需要导入模块: from holoviews.core.options import Store [as 别名]
# 或者: from holoviews.core.options.Store import options [as 别名]
for (in_label, out_label), view in grids.items():
results.set_path(('%s_Reverse_Correlation' % in_label, out_label), view)
if p.store_responses:
info = (p.pattern_generator.__class__.__name__,
pattern_dim_label, 'Response')
results.set_path(('%s_%s_%s' % info, in_label),
responses[in_label])
results.set_path(('%s_%s_%s' % info, out_label),
responses[out_label])
return results
from holoviews.core.options import Compositor
from .analysis import toHCS
#Default styles
options = Store.options(backend='matplotlib')
options.Image.Preference = Options('style', cmap='hsv')
options.Image.Selectivity = Options('style', cmap='gray')
options.Image.Activity = Options('style', cmap='gray')
options.Image.Response = Options('style', cmap='gray')
options.Image.FFT_Power = Options('style', cmap='gray')
# Default channel definitions
Compositor.register(
Compositor('Image.Orientation_Preference * Image.Orientation_Selectivity',
toHCS, 'OR PrefSel', mode='display', flipSC=True))
Compositor.register(
Compositor('Image.Direction_Preference * Image.Direction_Selectivity',
toHCS, 'DR PrefSel', mode='display', flipSC=True))
示例4: range
# 需要导入模块: from holoviews.core.options import Store [as 别名]
# 或者: from holoviews.core.options.Store import options [as 别名]
for vind in range(vlines)[:: p.stride]:
lines.append(np.vstack([xsv.data[:, vind].T, ysv.data[:, vind]]).T)
cogmesh = Contours(lines, extents=sheet.bounds.lbrt(), label=proj.name, group="Center of Gravity")
xcog_map = HoloMap((timestamp, xsv), kdims=[features.Time])
xcog_map.metadata = metadata
ycog_map = HoloMap((timestamp, ysv), kdims=[features.Time])
ycog_map.metadata = metadata
contour_map = HoloMap((timestamp, cogmesh), kdims=[features.Time])
contour_map.metadata = metadata
return {"XCoG": xcog_map, "YCoG": ycog_map, "CoG": contour_map}
options = Store.options(backend="matplotlib")
options.Contours.Gravity = Options("style", linewidth=1.0)
options.Image.X_CoG = Options("style", cmap="gray")
options.Image.Y_CoG = Options("style", cmap="gray")
options.CFView.OnOff_CFs = Options("style", cmap="RdYlBu_r", interpolation="nearest")
import types
__all__ = list(
set(
[
k
for k, v in locals().items()
if isinstance(v, types.FunctionType)
or (isinstance(v, type) and issubclass(v, ParameterizedFunction))
and not v.__name__.startswith("_")