entrance ://dbentrance.com
TRANSCRIPT
![Page 2: Entrance ://dbentrance.com](https://reader033.vdocuments.net/reader033/viewer/2022061306/55146df4550346494e8b5ef1/html5/thumbnails/2.jpg)
Tod Landis
MA, Mathematics, UC, Berkeley, 1976
Parlett-Landis Algorithms
ONR, Eureka, NorthStar, MicroPro, Island Graphics, Adobe, Borland
![Page 3: Entrance ://dbentrance.com](https://reader033.vdocuments.net/reader033/viewer/2022061306/55146df4550346494e8b5ef1/html5/thumbnails/3.jpg)
Entrance was written with Shane Duan.
![Page 4: Entrance ://dbentrance.com](https://reader033.vdocuments.net/reader033/viewer/2022061306/55146df4550346494e8b5ef1/html5/thumbnails/4.jpg)
Entrance
Commercial Open Source
GPL v. 2 Community Version
$50 IDE Version
Site Licenses Encouraged!
![Page 5: Entrance ://dbentrance.com](https://reader033.vdocuments.net/reader033/viewer/2022061306/55146df4550346494e8b5ef1/html5/thumbnails/5.jpg)
![Page 6: Entrance ://dbentrance.com](https://reader033.vdocuments.net/reader033/viewer/2022061306/55146df4550346494e8b5ef1/html5/thumbnails/6.jpg)
![Page 7: Entrance ://dbentrance.com](https://reader033.vdocuments.net/reader033/viewer/2022061306/55146df4550346494e8b5ef1/html5/thumbnails/7.jpg)
![Page 8: Entrance ://dbentrance.com](https://reader033.vdocuments.net/reader033/viewer/2022061306/55146df4550346494e8b5ef1/html5/thumbnails/8.jpg)
Use Entrance PLOT to make charts.
PLOT AXISLABELS, RED LINE SELECT year, average
FROM cpi WHERE year >= 1960 AND year < 2007;
![Page 9: Entrance ://dbentrance.com](https://reader033.vdocuments.net/reader033/viewer/2022061306/55146df4550346494e8b5ef1/html5/thumbnails/9.jpg)
Essentially any MySQL SELECT statement works.
PLOT AXISLABELS, RED LINE SELECT year, average
FROM cpi WHERE year >= 1960
AND year < 2007;
![Page 10: Entrance ://dbentrance.com](https://reader033.vdocuments.net/reader033/viewer/2022061306/55146df4550346494e8b5ef1/html5/thumbnails/10.jpg)
Chart setup is simple.
PLOT AXISLABELS, RED LINE
SELECT year, average FROM cpi
WHERE year >= 1960 AND year < 2007;
![Page 11: Entrance ://dbentrance.com](https://reader033.vdocuments.net/reader033/viewer/2022061306/55146df4550346494e8b5ef1/html5/thumbnails/11.jpg)
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 ://dbentrance.com](https://reader033.vdocuments.net/reader033/viewer/2022061306/55146df4550346494e8b5ef1/html5/thumbnails/12.jpg)
![Page 13: Entrance ://dbentrance.com](https://reader033.vdocuments.net/reader033/viewer/2022061306/55146df4550346494e8b5ef1/html5/thumbnails/13.jpg)
![Page 14: Entrance ://dbentrance.com](https://reader033.vdocuments.net/reader033/viewer/2022061306/55146df4550346494e8b5ef1/html5/thumbnails/14.jpg)
Entrance Bubbles . . .
![Page 15: Entrance ://dbentrance.com](https://reader033.vdocuments.net/reader033/viewer/2022061306/55146df4550346494e8b5ef1/html5/thumbnails/15.jpg)
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 ://dbentrance.com](https://reader033.vdocuments.net/reader033/viewer/2022061306/55146df4550346494e8b5ef1/html5/thumbnails/16.jpg)
An Entrance EarthChart . . .
![Page 17: Entrance ://dbentrance.com](https://reader033.vdocuments.net/reader033/viewer/2022061306/55146df4550346494e8b5ef1/html5/thumbnails/17.jpg)
PLOT EARTHCHART X, VERY SMALL FILLED YELLOW CIRCLESELECT LON, LAT FROM ACCESS_LOCIDS;
. . . and the script that made it:
![Page 18: Entrance ://dbentrance.com](https://reader033.vdocuments.net/reader033/viewer/2022061306/55146df4550346494e8b5ef1/html5/thumbnails/18.jpg)
Entrance Rotated Bars . . .
![Page 19: Entrance ://dbentrance.com](https://reader033.vdocuments.net/reader033/viewer/2022061306/55146df4550346494e8b5ef1/html5/thumbnails/19.jpg)
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 ://dbentrance.com](https://reader033.vdocuments.net/reader033/viewer/2022061306/55146df4550346494e8b5ef1/html5/thumbnails/20.jpg)
An Entrance Scatter Chart . . .
![Page 21: Entrance ://dbentrance.com](https://reader033.vdocuments.net/reader033/viewer/2022061306/55146df4550346494e8b5ef1/html5/thumbnails/21.jpg)
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 ://dbentrance.com](https://reader033.vdocuments.net/reader033/viewer/2022061306/55146df4550346494e8b5ef1/html5/thumbnails/22.jpg)
Bars with color overrides . . .
![Page 23: Entrance ://dbentrance.com](https://reader033.vdocuments.net/reader033/viewer/2022061306/55146df4550346494e8b5ef1/html5/thumbnails/23.jpg)
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 ://dbentrance.com](https://reader033.vdocuments.net/reader033/viewer/2022061306/55146df4550346494e8b5ef1/html5/thumbnails/24.jpg)
Entrance supports named colors.
![Page 25: Entrance ://dbentrance.com](https://reader033.vdocuments.net/reader033/viewer/2022061306/55146df4550346494e8b5ef1/html5/thumbnails/25.jpg)
See http://dbentrance.com/blog/for more examples.
(A good one: search for “Benson”)
![Page 26: Entrance ://dbentrance.com](https://reader033.vdocuments.net/reader033/viewer/2022061306/55146df4550346494e8b5ef1/html5/thumbnails/26.jpg)
PLOT scripts can also be run from the command line or EntranceServlet.
(The servlet makes us cloud friendly)
![Page 27: Entrance ://dbentrance.com](https://reader033.vdocuments.net/reader033/viewer/2022061306/55146df4550346494e8b5ef1/html5/thumbnails/27.jpg)
Use Entrance to makesimple, clear data graphics.
(No 2.5D, no chart junk)
![Page 28: Entrance ://dbentrance.com](https://reader033.vdocuments.net/reader033/viewer/2022061306/55146df4550346494e8b5ef1/html5/thumbnails/28.jpg)
Use Entrance + MySQLto perform data analysis.
![Page 29: Entrance ://dbentrance.com](https://reader033.vdocuments.net/reader033/viewer/2022061306/55146df4550346494e8b5ef1/html5/thumbnails/29.jpg)
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 ://dbentrance.com](https://reader033.vdocuments.net/reader033/viewer/2022061306/55146df4550346494e8b5ef1/html5/thumbnails/30.jpg)
Tagging data items.
... to make plots like these:
![Page 31: Entrance ://dbentrance.com](https://reader033.vdocuments.net/reader033/viewer/2022061306/55146df4550346494e8b5ef1/html5/thumbnails/31.jpg)
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 ://dbentrance.com](https://reader033.vdocuments.net/reader033/viewer/2022061306/55146df4550346494e8b5ef1/html5/thumbnails/32.jpg)
. . . to highlight a section of a line:
![Page 33: Entrance ://dbentrance.com](https://reader033.vdocuments.net/reader033/viewer/2022061306/55146df4550346494e8b5ef1/html5/thumbnails/33.jpg)
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 ://dbentrance.com](https://reader033.vdocuments.net/reader033/viewer/2022061306/55146df4550346494e8b5ef1/html5/thumbnails/34.jpg)
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 ://dbentrance.com](https://reader033.vdocuments.net/reader033/viewer/2022061306/55146df4550346494e8b5ef1/html5/thumbnails/35.jpg)
. . . to make the “Red Blue States” map:
![Page 36: Entrance ://dbentrance.com](https://reader033.vdocuments.net/reader033/viewer/2022061306/55146df4550346494e8b5ef1/html5/thumbnails/36.jpg)
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 ://dbentrance.com](https://reader033.vdocuments.net/reader033/viewer/2022061306/55146df4550346494e8b5ef1/html5/thumbnails/37.jpg)
... for custom applications:
![Page 38: Entrance ://dbentrance.com](https://reader033.vdocuments.net/reader033/viewer/2022061306/55146df4550346494e8b5ef1/html5/thumbnails/38.jpg)
And now, the live demo.
![Page 39: Entrance ://dbentrance.com](https://reader033.vdocuments.net/reader033/viewer/2022061306/55146df4550346494e8b5ef1/html5/thumbnails/39.jpg)
![Page 40: Entrance ://dbentrance.com](https://reader033.vdocuments.net/reader033/viewer/2022061306/55146df4550346494e8b5ef1/html5/thumbnails/40.jpg)
![Page 41: Entrance ://dbentrance.com](https://reader033.vdocuments.net/reader033/viewer/2022061306/55146df4550346494e8b5ef1/html5/thumbnails/41.jpg)
![Page 43: Entrance ://dbentrance.com](https://reader033.vdocuments.net/reader033/viewer/2022061306/55146df4550346494e8b5ef1/html5/thumbnails/43.jpg)
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 ://dbentrance.com](https://reader033.vdocuments.net/reader033/viewer/2022061306/55146df4550346494e8b5ef1/html5/thumbnails/44.jpg)
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 ://dbentrance.com](https://reader033.vdocuments.net/reader033/viewer/2022061306/55146df4550346494e8b5ef1/html5/thumbnails/45.jpg)
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 ://dbentrance.com](https://reader033.vdocuments.net/reader033/viewer/2022061306/55146df4550346494e8b5ef1/html5/thumbnails/46.jpg)
Use Edit | Paste as table... to paste clipboard data into
a local copy of MySQL
![Page 47: Entrance ://dbentrance.com](https://reader033.vdocuments.net/reader033/viewer/2022061306/55146df4550346494e8b5ef1/html5/thumbnails/47.jpg)
Door.
![Page 48: Entrance ://dbentrance.com](https://reader033.vdocuments.net/reader033/viewer/2022061306/55146df4550346494e8b5ef1/html5/thumbnails/48.jpg)
Entrance
http://dbentrance.com/blog
Entrance Help | PLOT Syntax
Entrance Google Group
http://twitter.com/todlandis& we follow #entrance