elvis improvements summer 2008 eric zatz pppl summer intern mentor – eliot feibush august 11, 2008

20
ElVis Improvements Summer 2008 Eric Zatz PPPL Summer Intern Mentor – Eliot Feibush August 11, 2008

Upload: stephanie-mavis-johnston

Post on 19-Jan-2016

223 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: ElVis Improvements Summer 2008 Eric Zatz PPPL Summer Intern Mentor – Eliot Feibush August 11, 2008

ElVis Improvements

Summer 2008

Eric Zatz

PPPL Summer Intern

Mentor – Eliot Feibush

August 11, 2008

Page 2: ElVis Improvements Summer 2008 Eric Zatz PPPL Summer Intern Mentor – Eliot Feibush August 11, 2008

Graphical User Interface

• Cursor now takes form of the current whiteboard tool being used.

Dashed Rectangle

PencilZoom

Page 3: ElVis Improvements Summer 2008 Eric Zatz PPPL Summer Intern Mentor – Eliot Feibush August 11, 2008

Graphical User Interface

• Fixed bug with Mac OS X where the ElVis buttons do not display properly.

Before After

No Buttons

Buttons

Page 4: ElVis Improvements Summer 2008 Eric Zatz PPPL Summer Intern Mentor – Eliot Feibush August 11, 2008

ElVis Markup Language

• ElVis used binary serialization to send graphs via Transp

• This caused graphs to unsuccessfully load in ElVis, so there was no data

• Replaced this with mechanism with new method of data transfer by using ElVis Markup Language (EML)

• EML is XML code that can be read in by ElVis to build graphs

• Significantly reduce version mis-matches.

Page 5: ElVis Improvements Summer 2008 Eric Zatz PPPL Summer Intern Mentor – Eliot Feibush August 11, 2008

Advantages of EML

• No more data loss or crashing

• Legible – humans can read it and know exactly what is happening

• Can be sent as a stream (i.e. Transp) or saved to a file

• Load EML from a URL for web access

• Can send multiple graph windows at once

• Allowed for integration with NSTX Web Tools

Page 6: ElVis Improvements Summer 2008 Eric Zatz PPPL Summer Intern Mentor – Eliot Feibush August 11, 2008

Loading/Saving of EML

• Now graphs can be saved on a local computer and reopened when ElVis is launched the next time through the File menu

Loading Saving

Page 7: ElVis Improvements Summer 2008 Eric Zatz PPPL Summer Intern Mentor – Eliot Feibush August 11, 2008

More Loading/Saving of EML

• Since graphs can have millions of data points, needed an efficient way to process all of the data.

• Originally, a graph with ~150,000 points would take about 3-4 hours to save.

• Now, the same graph saves in about 2 seconds• To do this, I used StringBuffers to append the data to

the EML file rather than simple String concatenations.• I added data to the StringBuffer in small pieces and

then “reset” the buffer by emptying it out again.• Saves time because computer does not need to keep

allocating memory in small amounts for each concatenation

Page 8: ElVis Improvements Summer 2008 Eric Zatz PPPL Summer Intern Mentor – Eliot Feibush August 11, 2008

Bug Fixes in EML

• 2D graphs not adding multiple datasets• Graphs not color coding datasets• Indexed graphs not animating• Inability to convert contour plots to surfaces• Missing Y-Axis labels for indexed graphs• Missing legend titles• Data tables not big enough to accommodate

longer data values

Page 9: ElVis Improvements Summer 2008 Eric Zatz PPPL Summer Intern Mentor – Eliot Feibush August 11, 2008

New Features for Transp Thanks to EML

• Can turn axis gridlines on or off using EML

Gridlines On Gridlines Off

Page 10: ElVis Improvements Summer 2008 Eric Zatz PPPL Summer Intern Mentor – Eliot Feibush August 11, 2008

More New Features

• Whiteboard annotations are now saved with EML and can be sent with the graph

• Short titles – shorter titles that replace normal graph title when graph gets too small

Normal Title Short Title

Page 11: ElVis Improvements Summer 2008 Eric Zatz PPPL Summer Intern Mentor – Eliot Feibush August 11, 2008

More New Features• Logarithmic vs Linear number styles for graph

axes• Set number of points to skip when showing

markers

Skip 2 points Skip 5 points

Page 12: ElVis Improvements Summer 2008 Eric Zatz PPPL Summer Intern Mentor – Eliot Feibush August 11, 2008

Data Tables

• Data Tables can now be sent using EML (didn’t work with binary serialization)

• All elements of data tables (columns, top-text, bottom-text) can have their own fonts, colors, and background colors

• EML allows for multiple top-text and bottom-text fields

• Can change all colors from the graph editor window

Page 13: ElVis Improvements Summer 2008 Eric Zatz PPPL Summer Intern Mentor – Eliot Feibush August 11, 2008

Data Table Fonts and Colors

• Can send any recognized font, font styles (plain, bold, italic, or bold italic), and font sizes via EML

• Can send background and font colors using rgb values, sRGB values, or by color name

• Table headers and rows with labels default to gray background and other cells default to white background.

• If the background color is manually set to a dark color and the font color is NOT set, ElVis will automatically make the font color white.

Page 14: ElVis Improvements Summer 2008 Eric Zatz PPPL Summer Intern Mentor – Eliot Feibush August 11, 2008

Top and Bottom Text Fields

Multiple top-text fields with

different settings

Multiple bottom-text fields with

different settings

Page 15: ElVis Improvements Summer 2008 Eric Zatz PPPL Summer Intern Mentor – Eliot Feibush August 11, 2008

Data Table Columns

Column with row labels

Column with normal data

Columns with manually set

colors

Page 16: ElVis Improvements Summer 2008 Eric Zatz PPPL Summer Intern Mentor – Eliot Feibush August 11, 2008

Data Tables and the Graph Editor• Users can change the background and font

colors of data tables using the graph editor’s “Data Table” tab.

Left: Set whether to change the background or font colorRight: Select column to modify

Page 17: ElVis Improvements Summer 2008 Eric Zatz PPPL Summer Intern Mentor – Eliot Feibush August 11, 2008

Non-EML Data Table Features

• Can now print data tables to postscript or pdf files

• However, ElVis uses third party classes to print graphs so data tables had to fit on one page

• New solution: Allow printing of data tables to html file so that data tables can display in any browser for any length data table

Page 18: ElVis Improvements Summer 2008 Eric Zatz PPPL Summer Intern Mentor – Eliot Feibush August 11, 2008

More Data Table Features

Data Table Printed as HTML

Page 19: ElVis Improvements Summer 2008 Eric Zatz PPPL Summer Intern Mentor – Eliot Feibush August 11, 2008

More Data Table Features

• The +T, -T, and Reset Labels buttons in ElVis now control data table font size

• +T makes font bigger

• -T makes font smaller

• Reset Labels resets table fonts to original state

Page 20: ElVis Improvements Summer 2008 Eric Zatz PPPL Summer Intern Mentor – Eliot Feibush August 11, 2008

Conclusion

• New GUI features

• EML for data transfer replaces binary serialization

• New data table features