breeze plot would compile inside eclipse

11 views
Skip to first unread message

Bruce Ho

unread,
Aug 28, 2016, 7:41:19 PM8/28/16
to Scala Breeze

I tried running the simple breeze plot sample code in a scala file inside eclipse, and it won't compile. on the line

import breeze.plot._


    val f = Figure()

    val p : Plot = f.subplot(0)

    

    val x = linspace(0.0,1.0)

    p += plot(x, x :^ 2.0, '.')


for the last line, I get compilation error: - too many arguments for method plot: ()Unit


However, I move the exact same code into scala interpreter inside eclipse, it runs fine. Any one knows what's the problem?


Bruce

Reply all
Reply to author
Forward
0 new messages