\r
self._c['figure'].hold(True)\r
for i,data in enumerate(self._curve.data):\r
- axes.plot(data[:,data.info['columns'].index(self._x_column)],\r
- data[:,data.info['columns'].index(self._y_column)],\r
+ try:\r
+ x_col = data.info['columns'].index(self._x_column)\r
+ y_col = data.info['columns'].index(self._y_column)\r
+ except ValueError:\r
+ continue # data is missing a required column\r
+ axes.plot(data[:,x_col], data[:,y_col],\r
'.',\r
label=data.info['name'])\r
if config['plot legend'] == 'True': # HACK: config should convert\r