MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / _set_rgba

Function _set_rgba

lib/matplotlib/backends/backend_cairo.py:38–42  ·  view source on GitHub ↗
(ctx, color, alpha, forced_alpha)

Source from the content-addressed store, hash-verified

36
37
38def _set_rgba(ctx, color, alpha, forced_alpha):
39 if len(color) == 3 or forced_alpha:
40 ctx.set_source_rgba(*color[:3], alpha)
41 else:
42 ctx.set_source_rgba(*color)
43
44
45def _append_path(ctx, path, transform, clip=None):

Callers 3

_fill_and_strokeMethod · 0.85
draw_pathMethod · 0.85
set_alphaMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…