MCPcopy Create free account
hub / github.com/nodejs/node / Item

Class Item

deps/v8/tools/gc-nvp-trace-processor.py:71–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69x2y2 = 'x2y2'
70
71class Item(object):
72 def __init__(self, title, field, axis = x1y1, **keywords):
73 self.title = title
74 self.axis = axis
75 self.props = keywords
76 if type(field) is list:
77 self.field = field
78 else:
79 self.field = [field]
80
81 def fieldrefs(self):
82 return self.field
83
84 def to_gnuplot(self, context):
85 args = ['"%s"' % context.datafile,
86 'using %s' % context.format_fieldref(self.field),
87 'title "%s"' % self.title,
88 'axis %s' % self.axis]
89 if 'style' in self.props:
90 args.append('with %s' % self.props['style'])
91 if 'lc' in self.props:
92 args.append('lc rgb "%s"' % self.props['lc'])
93 if 'fs' in self.props:
94 args.append('fs %s' % self.props['fs'])
95 return ' '.join(args)
96
97class Plot(object):
98 def __init__(self, *items):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected