Add linearscale default to Plot in Bokehjs
@@ -6,6 +6,7 @@ import {isString, isArray} from "core/util/types"
import {LayoutDOM, LayoutDOMView} from "../layouts/layout_dom"
import {Title} from "../annotations/title"
+import {LinearScale} from "../scales/linear_scale"
import {Toolbar} from "../tools/toolbar"
import {ToolEvents} from "../tools/tool_events"
import {PlotCanvas, PlotCanvasView} from "./plot_canvas"
@@ -326,8 +327,8 @@ export class Plot extends LayoutDOM
y_range: [ p.Instance ]
extra_y_ranges: [ p.Any, {} ] # TODO (bev)
- x_scale: [ p.Instance ]
- y_scale: [ p.Instance ]
+ x_scale: [ p.Instance, () -> new LinearScale() ]
+ y_scale: [ p.Instance, () -> new LinearScale() ]
tool_events: [ p.Instance, () -> new ToolEvents() ]
