Plot example

131 views
Skip to first unread message

Venkat Subbiah

unread,
Oct 14, 2015, 9:43:35 AM10/14/15
to spark-notebook-user
I am trying to run this plot example.

import notebook.front.third.wisp._
Plot(Seq(SummarySeries((0 to 9) zip (10 to 100 by 10), "area")))

I get  this error 



<console>:50: error: not found: value SummarySeries
              Plot(Seq(SummarySeries((0 to 9) zip (10 to 100 by 10), "area")))

What would be the import statement for SummarySeries?


Thanks,
Venkat

andy petrella

unread,
Oct 24, 2015, 7:18:17 PM10/24/15
to Venkat Subbiah, spark-notebook-user
Hello,

Sorry I know I'm late, but I had hectic days (including illness -_- )

So, you should use one impl, like this f.i.;
```scala
Plot(
  Seq(
    Pairs((0 to 9) zip (10 to 100 by 10), "area"),
    Pairs((0 to 9) zip (100 to 10 by -10), "line")
  )
)
```

tell me if you need more o course!
cheers

--
You received this message because you are subscribed to the Google Groups "spark-notebook-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spark-notebook-...@googlegroups.com.
To post to this group, send email to spark-not...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/spark-notebook-user/ecee3102-92b2-48ca-bfc5-4b5de1814c03%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
andy

Venkat Subbiah

unread,
Oct 25, 2015, 10:41:05 PM10/25/15
to spark-notebook-user, v.su...@gmail.com

Hi Andy,


Thanks for your reply. Your code works as is in Spark Notebook. 


But I am trying to understand what the code does, so tried the following below in a Spark Shell and it doesn't seem to like Pairs. 


Am I missing an import?



scala> Seq(

     |     Pairs((0 to 9) zip (10 to 100 by 10), "area"),

     |     Pairs((0 to 9) zip (100 to 10 by -10), "line")

     |   )

<console>:21: error: not found: value Pairs

                  Pairs((0 to 9) zip (10 to 100 by 10), "area"),

                  ^

<console>:22: error: not found: value Pairs

                  Pairs((0 to 9) zip (100 to 10 by -10), "line")



To unsubscribe from this group and stop receiving emails from it, send an email to spark-notebook-user+unsub...@googlegroups.com.
--
andy
Reply all
Reply to author
Forward
0 new messages