~ubuntu-branches/ubuntu/utopic/python-chaco/utopic

« back to all changes in this revision

Viewing changes to chaco/shell/plot_maker.py

  • Committer: Package Import Robot
  • Author(s): Andrew Starr-Bochicchio
  • Date: 2014-06-01 17:04:08 UTC
  • mfrom: (7.2.5 sid)
  • Revision ID: package-import@ubuntu.com-20140601170408-m86xvdjd83a4qon0
Tags: 4.4.1-1ubuntu1
* Merge from Debian unstable. Remaining Ubuntu changes:
 - Let the binary-predeb target work on the usr/lib/python* directory
   as we don't have usr/share/pyshared anymore.

Show diffs side-by-side

added added

removed removed

Lines of Context:
157
157
    '+': 'plus',
158
158
    's': 'square',
159
159
    '^': 'triangle',
160
 
    'v': 'down triangle'
 
160
    'v': 'inverted_triangle'
161
161
}
162
162
 
163
163
line_re = re.compile('--|-\.|[-:]')
285
285
            format["marker"] = marker
286
286
            format["color"] = markercolor
287
287
 
288
 
        # Check the data sort order, but only if it will create a new datasource
289
 
        if x not in active_plot.datasources:
290
 
            x_sort_order = _check_sort_order(plotdata.get_data(x))
 
288
        x_sort_order = _check_sort_order(plotdata.get_data(x))
291
289
        plots.extend(active_plot.plot((x,y), type=",".join(plot_type), **format))
292
290
 
293
291
        # Set the sort order
327
325
    x = None
328
326
    y = None
329
327
    try:
330
 
        z = _get_or_create_plot_data(data[0])
 
328
        z = _get_or_create_plot_data(data[0], plotdata)
331
329
    except ValueError:
332
330
        # z is the name of the file
333
331
        # create plot data
348
346
    if len(data) == 1:
349
347
        x = None
350
348
        y = None
351
 
        z = _get_or_create_plot_data(data[0])
 
349
        z = _get_or_create_plot_data(data[0], plotdata)
352
350
 
353
351
    # three data sources means we got x-y grid data of some sort, too
354
352
    elif len(data) == 3:
372
370
    if len(data) == 1:
373
371
        x = None
374
372
        y = None
375
 
        z = _get_or_create_plot_data(data[0])
 
373
        z = _get_or_create_plot_data(data[0], plotdata)
376
374
 
377
375
    # three data sources means we got x-y grid data of some sort, too
378
376
    elif len(data) == 3: