-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGalliaVizTest.scala
46 lines (33 loc) · 1.35 KB
/
GalliaVizTest.scala
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package gallia
package pyviz
import aptus._
// ===========================================================================
object GalliaVizTest {
lazy val Test1 = bobjs(bobj(_vle -> 1), bobj(_vle -> 2), bobj(_vle -> 3), bobj(_vle -> 2)).identity
lazy val Flights = "/data/seaborn/flights.csv".stream()
// ===========================================================================
def main(args: Array[String]): Unit = {
if (false)
Test1.viz.matplotlib.histogram(_vle, bins = 3).show()
// ---------------------------------------------------------------------------
import pyviz._
if (false) {
GalliaMatplotlib.plt.hist(Test1.pyarray(_vle), bins = 3, log = true)
GalliaMatplotlib.plt.show() }
if (false)
plt
.custom { _.hist(x = Test1.pyarray(_vle), bins = 3, log = true) }
.show()
if (false)
Test1.viz.matplotlib.histogram(_vle, bins = 3).show()
if (false)
Test1.hist(_vle, bins = 3)
// ---------------------------------------------------------------------------
//if (false)
GalliaSeaborn
.streamBuiltinDataset(_.flights)
.filterBy("month").hasValue("May")
.lineplot(x = "year", y = "passengers")
}
}
// ===========================================================================