(plot)
| 123 | return ':'.join([str(self.field_to_index[field]) for field in fieldref]) |
| 124 | |
| 125 | def collect_fields(plot): |
| 126 | field_to_index = {} |
| 127 | fields = [] |
| 128 | |
| 129 | def add_field(field): |
| 130 | if field not in field_to_index: |
| 131 | fields.append(field) |
| 132 | field_to_index[field] = len(fields) |
| 133 | |
| 134 | for field in flatten([item.fieldrefs() for item in plot]): |
| 135 | add_field(field) |
| 136 | |
| 137 | return (fields, field_to_index) |
| 138 | |
| 139 | def is_y2_used(plot): |
| 140 | for subplot in plot: |
no test coverage detected