entrance

48
Entrance http://dbentrance.com /

Upload: terrel

Post on 05-Jan-2016

29 views

Category:

Documents


0 download

DESCRIPTION

Entrance. http://dbentrance.com /. Tod Landis MA, Mathematics, UC, Berkeley, 1976 Parlett-Landis Algorithms ONR, Eureka, NorthStar, MicroPro, Island Graphics, Adobe, Borland. Entrance was written with Shane Duan. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Entrance

Entrance

http://dbentrance.com/

Page 2: Entrance

Tod Landis

MA, Mathematics, UC, Berkeley, 1976

Parlett-Landis Algorithms

ONR, Eureka, NorthStar, MicroPro, Island Graphics, Adobe, Borland

Page 3: Entrance

Entrance was written with Shane Duan.

Page 4: Entrance

Entrance

Commercial Open Source

GPL v. 2 Community Version

$50 IDE Version

Site Licenses Encouraged!

Page 5: Entrance
Page 6: Entrance
Page 7: Entrance
Page 8: Entrance

Use Entrance PLOT to make charts.

PLOT AXISLABELS, RED LINE SELECT year, average

FROM cpi WHERE year >= 1960 AND year < 2007;

Page 9: Entrance

Essentially any MySQL SELECT statement works.

PLOT AXISLABELS, RED LINE SELECT year, average

FROM cpi WHERE year >= 1960

AND year < 2007;

Page 10: Entrance

Chart setup is simple.

PLOT AXISLABELS, RED LINE

SELECT year, average FROM cpi

WHERE year >= 1960 AND year < 2007;

Page 11: Entrance

Just be sure the chart series match up1-to-1 with result set columns.

PLOT AXISLABELS, RED LINE SELECT year, average

FROM cpi WHERE year >= 1960 AND year < 2007;

Page 12: Entrance
Page 13: Entrance
Page 14: Entrance

Entrance Bubbles . . .

Page 15: Entrance

    PLOT SCATTER        X, FILLED CIRCLE, DATALABELS CENTERED,        SIZE OVERRIDE, COLOR OVERRIDE      WITH        SCALE X 0 75 25        SCALE Y 0 120 40        NO XAXIS        NO YAXIS        NO SIDES    SELECT x,y, l, s, c        FROM t;

. . . and the script that made them:

Page 16: Entrance

An Entrance EarthChart . . .

Page 17: Entrance

PLOT EARTHCHART X, VERY SMALL FILLED YELLOW CIRCLESELECT LON, LAT FROM ACCESS_LOCIDS;

. . . and the script that made it:

Page 18: Entrance

Entrance Rotated Bars . . .

Page 19: Entrance

PLOT ROTATEDBARCHART AXISLABELS, LIGHT RED BAR WITH FONT "sans serif" PLAIN 24 NO SIDES NO XAXIS NO LABELS X NO TICKS X SELECT CONCAT(application_area, ' - ', count(*)), count(*) FROM lead_capture GROUP BY application_area ORDER BY count(*) DESC;

. . . and the script that made them:

Page 20: Entrance

An Entrance Scatter Chart . . .

Page 21: Entrance

PLOT SCATTER X,RED FILLED CIRCLE WITH FONT "sanserif" plain 18 TITLE "Boiling Points of the Elements" TITLE " " GRIDLINES TITLE Y "Degrees Fahrenheit" FORMAT Y DECIMAL "#.##\u00B0" SCALE Y -4000 12000 4000 TITLE Y2 "Degrees Centigrade" FORMAT Y2 DECIMAL "#\u00B0" SCALE Y2 -2240 6649 2222.25 TITLE X "Element Number"SELECT number, F FROM boiling;

. . . and its script:

Page 22: Entrance

Bars with color overrides . . .

Page 23: Entrance

PLOT BARCHART LIGHT BLUE BARS, COLOR OVERRIDE WITH FONT "sans serif" plain 24 LEGEND RIGHT LIGHT RED LEGENDITEM "Interesting" NO YAXIS NO SIDES SELECT jan AS 'Not interesting', IF(year = 1920 or year = 1921, 'light red', '') FROM CPI LIMIT 12;

. . . and how to make them:

Page 24: Entrance

Entrance supports named colors.

Page 25: Entrance

See http://dbentrance.com/blog/for more examples.

(A good one: search for “Benson”)

Page 26: Entrance

PLOT scripts can also be run from the command line or EntranceServlet.

(The servlet makes us cloud friendly)

Page 27: Entrance

Use Entrance to makesimple, clear data graphics.

(No 2.5D, no chart junk)

Page 28: Entrance

Use Entrance + MySQLto perform data analysis.

Page 29: Entrance

PLOT AXISLABELS, SKYBLUE LINE, DATALABELS ABOVE, DATALABELS BELOW WITH PAGE HALF FONT "sanserif" plain 13 TITLE CENTER "Monthly Average Stock Prices, 1928-1932" NO SIDES NO YAXIS NO XAXIS COLLARSELECT b.date,b.p, IF(b.p > a.p and b.p > c.p, b.date, ''), IF(b.p < a.p and b.p < c.p, b.date, '') FROM price_earnings a, price_earnings b, price_earnings c where b.date > 1928 and b.date < 1933 and a.rownumbers = b.rownumbers - 1 and b.rownumbers = c.rownumbers - 1 ;

This script “tags” inflection points.

Page 30: Entrance

Tagging data items.

... to make plots like these:

Page 31: Entrance

PLOT VERY THICK SKYBLUE LINE, COLOR OVERRIDE NO YAXIS NO XAXIS NO SIDESSELECT jan, IF(year >= 1960 and year <= 1980, 'red', '') FROM CPI where year >= 1920 ;

This script uses a COLOR OVERRIDE:

Page 32: Entrance

. . . to highlight a section of a line:

Page 33: Entrance

 name                  who               --------------------  --------------    Alabama               strong mccain     Alaska                strong mccain     Arizona               strong mccain     Arkansas              strong mccain     California            strong obama      Colorado              strong obama      Connecticut           strong obama      Delaware              strong obama     

...

Scripting the Red-Blue States:

Page 34: Entrance

PLOT USColoringBook LAYER, COLOR OVERRIDE WITH -- maintain the frame aspect ratio 500:375 PAGE 0 0 500 375 BACKGROUND gray FOREGROUND white SELECT name, CONCAT( if(who LIKE 'leaning%', 'light', ''), ' ', if(who LIKE '%mccain', 'red', 'blue')) FROM election_projection WHERE who NOT LIKE 'tossup'UNIONSELECT name, 'very light yellow' FROM election_projection WHERE who LIKE 'tossup'UNIONSELECT "states_outline", "white";

Use a COLOR OVERRIDE:

Page 35: Entrance

. . . to make the “Red Blue States” map:

Page 36: Entrance

PLOT MAPCHART -- MapQuest API RED CIRCLE, LON, DATALABELS LEFT WITH MAP CENTER 37.14421218525334 -122.1341232266594 MAP SCALE 350000SELECT 37.14421218525334, -122.1341232266594, "OUR HOUSE";

The basic system can be extended:

Page 37: Entrance

... for custom applications:

Page 38: Entrance

And now, the live demo.

Page 39: Entrance
Page 40: Entrance
Page 41: Entrance
Page 42: Entrance

Hans Rosling’s interesting demonstrations are similar:

http://gapminder.org/

Page 43: Entrance

Requirements

Entrance is cross platform.

It requires Java JRE 1.5 or greater + access to a MySQL server.

* There are ways to use Entrance with other JDBC databases, too.

Page 44: Entrance

Access to the MySQL server isa problem with some ISPs.

Install a local copy of MySQL and download data in those cases.

(You can also tunnel if SSH is available)

Page 45: Entrance

Use Entrance Tools | Import to loaddata into a local copy of MySQL.

Entrance Import can import datadirectly from the web, eg. we use

it to import PHP script output.

Page 46: Entrance

Use Edit | Paste as table... to paste clipboard data into

a local copy of MySQL

Page 47: Entrance

Door.

Page 48: Entrance

Entrance

http://dbentrance.com/blog

Entrance Help | PLOT Syntax

Entrance Google Group

http://twitter.com/todlandis& we follow #entrance

Tod [email protected]