Sunteți pe pagina 1din 29

eZplot Training Manual

eZplot can be downloaded from www.OfficeExpander.com

After the setup is complete, an eZplot button will appear at the top of your Excel files. It contains everything you will need.

You will use embedded Excel Charts (examples) in this PowerPoint Presentation. These embedded examples can be opened by left clicking on the file (double click if not in slide show). eZplot forms and capabilities are not available without eZplot installed.
www.OfficeExpander.com

Copyright 2001-2012

Background: eZplot is a Plotting and Data Calculation Tool for Exc


EZPlot is an extensive plotting tool that is Excel Based. Excel is significantly enhanced to create many plots quickly and easily. EZplot has many unique capabilities that are covered in the manual.
EZplot:

Uses Parameter Names instead of cell locations for plots and calculations Creates Plots That You Can Interact With (Not Pictures) Right-Click does everything (this is the only thing to remember) Uses forms (user does not need to remember any commands) Can use command line inputs. Chart formats set by formatting a cells color, size, font Is fast and easy to use
Supports Multiple Y (Multiple Y Axes) Plots Contour Plots 2D and 3D Interpolation Polynomial Functionality

Overview of eZplot: An Excel Based Tool


Lets Begin With a Quick Overview 1 Plot Package Example:
eZplot shows first plot while others generating (Many plots generated quickly)

2 Multy_Y (Multiple Y axes plots)

3 Contour Plotting

Open embedded files by left clicking (double click if not in slide show)

eZplot starts after data has been put into Excel Basic Plotting: Open File. Note parameters in row 1, with data underneath. Click eZPlot -> Create eZplot Sheet eZplot sheet generates plots Right-Click does everything (dont need to remember commands) Right-Click in blank cell in Column A Select Data Parameters (Y and X) to write plot commands

Select Data1 under Worksheets in Selected Workbook


Select Ypar under Y then Time under X then Ok Right-Click and Plot

Change a plot axis and see the change get written back to the eZplot sheet.

Plotting
Where you right-click affects if you will write a new plot, or modify an existing plot. Right-Click on the plot cell -> Data Parameters (Y and X) -> Data2 -> Select Ypar under Y then Time under X then Ok. Right-Click and Plot

You plotted 2 series on the same plot. Goto eZplot sheet.


Right-Click under the plot cell -> Chart Specs Add Title Lines: Test Audit 1 ctrl-enter Day 2

Ytitle: Y Parameter on Y axis


Change Xaxis: Xmin: 5500

Xtitle: Time on X axis


Major Div: 8 Minor Div: 5

Xmax: 5000 then Ok oops! Xmax: 7500 then Ok

Right-Click and Plot


Goto eZplot sheet -> Right-Click under the plot cell -> Chart Specs
Change Xaxis: Major Inc: 200 Minor Inc: 50 then Ok

What changed on the eZplot sheet?

Plotting
Titles appear the way they are typed in the cell (entire cell used, Title1 governs) Right-Click and drag to select from title1 to xtitle Change the text font to red, bold, and size 12. Right-Click and Plot
Goto eZplot sheet ->Right-Click under the plot cell -> Series Formats

Change the Legends by typing: (Data1) Symbols: 1 Lines: 0

Colors: 1

Ok -> Right-Click and Plot


Colors, Symbols and Lines pattern always repeat. Try this instead:

Legends: (Data1) $sheet


Symbols: 18 2 Lines: 0 1

Colors: 1i13 2i2

Ok -> Right-Click and Plot


Goto eZplot sheet. Under symbols, type: trends pol2e -> Right-Click and Plot

Basic Plotting Recap


Interact with eZplot sheet by using forms or typing in cells Chart title fonts can be specified by changing cell fonts Spaces are used as separators: colors 1 2 3

Colors, Symbols and Lines pattern always repeat: colors 1 2 3 would repeat 1 2 3 1 2 3
Inside colors: 1i2 Symbols: 14 (type then size) Trends: e (equation) r (r squared value) Legend parameters can be auto-specified with $y, $sheet etc.

Specs on the eZPlot sheet always have a background color if they are active
Divisions can be used to specify axis. Only increment is available in Excel. Changes made to a chart are written back to eZplot sheet The only time the eZplot sheet affects plots is when Right-Click and Plot is selected eZplot can plot data from the current workbook or external workbook (shared drive etc)

Calculations
Right-Click under xtitle -> Calculation Create a new parameter by typing: NewPar And put it on sheet Data1: Select Data1 under Worksheets in Selected Workbook

The calculation is: Swing(1)/Therm(1) then Ok


The calculation is written near the top so that the parameter is available for plotting. Look on sheet Data1 for NewPar in the last column with data. On the eZplot sheet, type in Swing(1)/Therm(1) + 1.02 for the formula. The calculation updates immediately: See Data1 sheet. Calculations also update when you Right-Click and Plot.

Bonus: Can you change the existing parameter Mold on the Data1 sheet to have the same calculation?

Multy_Y Plotting
Multy_Y plots have more than one Y axis _y at the end of a y parameter creates a new y axis
plot air1 vs TIME air2 vs TIME velocity_y vs TIME sensor_y vs TIME

There is a Multy_Y Axis button to add _y to a parameter in Data Parameters (Y and X).

Multy_Y plots are not available through Excel. You must use eZplot. eZplot has a form that will come up if you click on the plot. Click the plot. Use the scroll bar under Y axis #1: Move it all the way to the right. Change the 3rd y_axis (SENSOR) to be: Ymax: 5000 Ymin: 500

Click Ok and the plot regenerates. What changed on the eZplot sheet?

Chart Changes
We have observed that changes to a chart are written back to the eZplot sheet. Changes captured for subsequent plotting.

After each of these changes, see what happens on the eZplot sheet.
Select the plot title and change: Module 6 to Module 22

Click a red line (on plot or in legend) -> right-click -> Format Change Line Color from red to purple

Change a symbol color and size.

Chart changes can be shut off by clicking eZPlot -> and unselecting Write chart changes back to eZplot sheet

Defaults for plots


Anything typed above the first plot cell is a default for all plots. A plot can override the default. In this example, defaults are used for both plots Except that the second plot overwrites the defaults with its own xmax and title2.

The location where you right-click determines where your changes will be written. If you right-click above the first plot, you will be changing the defaults that apply to all the plots. If you clicked in a region for a plot cell, it applies to that plot.

Plotting
We have observed that datasets refer to certain sheets.
1 1 current Data1 2 2 current Data2 3 3 current (Multiple Data)

The Multiple Data Sheet plots more than one series.

Plots in the same color below create the same plot.

Plot Ypar(1) vs Xpar(1)

Plot Ypar(1) vs Xpar(1) Ypar2(1) vs Xpar(1) Plot Ypar(1) Ypar2(1) vs Xpar(1)

Plot Ypar(1) vs Xpar(1) Ypar(2) vs Xpar(2) Plot Ypar(1 2) vs Xpar(1 2)

Plot Ypar(3) vs Xpar(3)


Sets 3 Plot Ypar vs Xpar Sets 1 2 Plot Ypar vs Xpar

Contour Plotting
Contour plots can be made from any data: Rectangular, Nearly Rectangular, and Irregular Data

Nearly Rectangular: Up to 5 data points will be repeated to make the data rectangular. This is useful if a model does not converge for all points.

Curves

EZplot will plot 2D and 3D curves. The following file has an example.

Note that the syntax is simply "plot curve_m" without any versus. The _m is used to mean map (i.e. curve). The curve provides all the information for x, y (and z).

(Note _c is used for contour plots).

Interp2D and Interp3D Functions


eZPlot comes with its own functions that can be used on any Excel sheet just like Any Excel function: i.e. =average()

eZplot functions Interp_2d Interp_3d

Extrapolation can be used for Interp_2D and Interp_3d Here is an example of the syntax: "=Interp_3D(X range,Yrange,desiredX,desiredY, True)"

Poly Function

Polynomial functions:
=poly(X,Y,order) would give the polynomial equation
(i.e. 0.299999999999819x^3 + -2.59999999999851x^2 + 6.09999999999703x^1 + 4.63168598125102E-14)

=poly(X,Y,order,useforx) would give the result of x plugged into the polynomial equation (i.e. 2.342857) where X is x data and Y is y data.

eZplot_Misc

Plots can be specified with the following example of 2 equivalent statements for data sets.

Plot Y(1 2 3 4 6 7 8 10) vs X(1 2 3 4 6 7 8 10) Plot Y(1-4 6-8 10) vs X(1-4 6-8 10)

This syntax also works for sets: Sets 1-4 6-8 10 Plot Y vs X

Error Handling
Examples of some errors a user can make: Plot y series vs x series with different number of elements Incorrect parameter names: plot Yban vs Xpar Missing data sheets etc A form will pop-up to alert you of an error after selecting Click here to Plot
Ypar 10211.05 9186.696 8588.476 7482.433 6313.272 Xpar 351.4969 334.3531 322.9468 301.2368 276.6136 83.04968

eZPlot ToolBar button


Resets eZplot Allows you to set global defaults (defaults to be used on all newly created eZplot sheets) Other capabilities: Create Multy_Y plot from 2 or more existing Excel Charts Delete all charts Import and export eZplot sheet Change versions of eZplot

Summary 1 of 3
eZplot starts after data has been put into Excel

Basic Plotting

create eZplot sheet


right click does everything (dont need to remember commands) Use Data Parameters (Y and X) to write plot commands Use Chart Specs to format Y and X axes and chart titles Use Series Formats to format data colors, symbols, lines Use eZcalc to create new parameters with equations eZplot will write back changes that you make with Excel to the eZplot sheet

Chart Format Changes


Datasheet Name Changes

Summary 2 of 3
eZplot Plot Package Example Defaults at top of eZplot sheet Sets Feature

Different ways to define plots

Y Y Y vs x Y vs X Y vs X Y vs X Y vs X Y Y vs X etc.

Error Handling:
Plot y series vs x series with different number of elements. Incorrect parameter names. Missing data sheets. Etc

eZplot Example Multy_Y Plot eZplot Example Contour Plot Interp_2D and Interp_3D Auto_Update

Summary 3 of 3
Other functionality: import/export eZplot sheet global defaults works with Insert Pics (useful for plot packages)

eZplot List of plot commands


charts: example: charts mychart Specifies the chartsheet name (on the tab for each sheet in an excel file) colors:

example: colors 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 (16 is white) etc


Each color is specified by a number. The numbers are recursive (i.e. 1 2 would repeat 1 2 1 2 .) Colors can be selected by the format menu (right click on the ezplot sheet from column G on. Select eZplot and then click the chart. The background color of the cell will be the background color of the plot. example: colors 1 2 3 4 Also see mycolors legends: example: legends (No 1) (No 2) No_3 (No 4) 0 Legends for each series are specified with a space. A legend specified as 0 will not have a legend. To include a space in the name of a legend, enclose the legend in parenthesis. To include parenthesis in a legend, include a balanced number of parenthesis within the outer parenthesis. example: legend (pla(flight 1)) would give a legend of pla(flight 1).

eZplot List of plot commands - continued


lines: example: lines 0 1 2 14 Lines types are specified from 0 to 3. The numbers are recursive (i.e. 1 2 would repeat 1 2 1 2 .). O = No Line 1 = Solid Line 2 = Dash Line To specify a weight (size) of a line, include a second number after solid or dashed lines. Line weight sizes can be specified from 1 to 4 (4 being the thickest). For example lines 12 is a solid line with a weight size of 2. mycolors: example: colors 3 2 3 1 2 Each color is specified by the color (not the value) of a number. The colors are recursive (the pattern of colors will repeat again and again). The value of a number is irrelevant. Only the font that is used for a number is important. When typing mycolors in a cell for the first time, the numbers will initially be shown with there respective colors from the colors command. However, the font colors may then be changed. Example colors 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 The background color of the cell will be the background color of the plot. Example colors 3 2 3 1 2

eZplot List of plot commands - continued


symbols: example: symbols 1 2 3 4 5 6 7 8 Symbols are recursive (i.e. 1 2 would repeat 1 2 1 2 .). 0=No Symbol

1=Diamond
2=Triangle 3=Square 4=Circle 5=Star 6=Plus Sign

7=Dot
8=X To specify a weight (size) of a symbol, include a second number. Symbol weight sizes can be specified from 1 to 72 (where 72 is the thickest). For example symbols 12 is a diamond with a weight size of 2. For a filled symbol, include an "f" after the number. Example symbols 3f 5f4 54f (note 5f4 and 54f are the same: filled star with a weight size of 4) title1: example: title2 This is the second line of my title The number specifies the line for the title text. Typing title without a number will default to title1 (and overwrite any other title1 on the line)

eZplot List of plot commands - continued


trend: example: trend lin liner exp 0 pow 0=No Trend (Only needed if other trends specified) lin=linear trendline

log=logarithmic trendline
exp=exponential trendline pow=power trendline pol=polynomial trendline with order 2-6. Ex. Pol3 mov=moving average with period 2-20. Ex. mov3 To display the trendline equation, make one of the last two letters e. To display the rsquared equation, make one of the last two letters r. More examples: trends pol trends pol3 trends pol3e trends pol3er

eZplot List of plot commands - continued


xdiv: example: xdiv 4 The number of major divisions for the x-axis. Overwrites existing xinc. xdivs: example: xdivs 5 The number of minor divisions for the x-axis. Overwrites existing xincs. xinc: example: xinc 20 The increment value for the major x-axis. Overwrites existing xdiv. xincs: example: xincs 10 The increment value for the minor x-axis. Overwrites existing xdivs.

xlabel1:
example: xlabel2 This is the second line of my x-axis label The number specifies the line for the x-axis label text. Typing xlabel without a number will default to xlabel1 (and overwrite any other xlabel1 on the line)

eZplot List of plot commands - continued


xmin: example: xmin 0 The minimum value for the x-axis. xmax: example: xmax 100 The maximum value for the y-axis. ydiv: example: ydiv 4

The number of major divisions for the y-axis. Overwrites existing yinc.
ydivs: example: ydivs 5 The number of minor divisions for the y-axis. Overwrites existing yincs. yinc: example: yinc 20 The increment value for the major y-axis. Overwrites existing ydiv.

eZplot List of plot commands - continued


yincs: example: yincs 10 The increment value for the minor y-axis. Overwrites existing ydivs. ylabel1: example: ylabel2 This is the second line of my y-axis label The number specifies the line for the y-axis label text. Typing ylabel without a number will default to ylabel1 (and overwrite any other ylabel1 on the line) ymin: example: ymin 0 The minimum value for the y-axis. ymax: example: ymax 100 The maximum value for the y-axis.

S-ar putea să vă placă și