       ydata_range: yrange.ref()
       glyphspec: glyphspec
     })
-
-    plot_model.set(
-      renderers: [glyph.ref()]
-      axes: [xaxis.ref(), yaxis.ref()]
-      tools: []
-      width: 500
-      height: 220
-    )
+    plot_model.add_renderers([glyph])
 
     return plot_model
 

Collections = require('base').Collections

all_palettes = require('../palettes/palettes').all_palettes
ColorMapper = require('../color_mapper').ColorMapper

NUM_SAMPLES = 1024
SAMPLING_RATE = 44100

      ydata_range: yrange.ref()
      glyphspec: glyphspec
    })
    plot_model.add_renderers([glyph])

    return plot_model

  create_power: () ->

    xrange = Collections('Range1d').create({start: 0, end: window.TIMESLICE})
    yrange = Collections('Range1d').create({start: -0.25, end: 0.25})

    plot_model = Collections('Plot').create(
      x_range: xrange
      y_range: yrange
      canvas_width: 550
      canvas_height: 220
      outer_width: 550
      outer_height: 220
      tools: []
    )

    # xaxis = Collections('LinearAxis').create(
    #   orientation: 'bottom'
    #   parent: plot_model.ref()
    #   data_range: xrange.ref()
    # )
    # yaxis = Collections('LinearAxis').create(
    #   orientation: 'left'
    #   parent: plot_model.ref()
    #   data_range: yrange.ref()
    # )

    glyphspec = {
      type: 'line'
