Axis 282 User Manual

Browse online or download User Manual for Networking Axis 282. II-12 Graphs - Latest IGOR Pro Installers

  • Download
  • Add to my manuals
  • Print
  • Page
    / 80
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 0
Chapter
II-12
II-12
Graphs
Overview.......................................................................................................................................................... 236
Graph Features ................................................................................................................................................ 236
The Graph Menu............................................................................................................................................. 237
The Target Window........................................................................................................................................ 238
Typing in Graphs (Macintosh)...................................................................................................................... 238
Graph Names................................................................................................................................................... 238
Creating Graphs .............................................................................................................................................. 238
Waves and Axes .............................................................................................................................................. 240
Types of Axes .................................................................................................................................................. 240
Appending Traces .......................................................................................................................................... 241
Trace Names .................................................................................................................................................... 241
Removing Traces............................................................................................................................................. 242
Replacing Traces ............................................................................................................................................. 242
Plotting NaNs and INFs................................................................................................................................. 243
Scaling Graphs................................................................................................................................................. 243
Autoscaling............................................................................................................................................... 243
Manual Scaling......................................................................................................................................... 244
Panning ..................................................................................................................................................... 245
Fling Mode................................................................................................................................................ 245
Setting the Range of an Axis.......................................................................................................................... 245
Manual Axis Ranges................................................................................................................................ 246
Automatic Axis Ranges........................................................................................................................... 246
Overall Graph Properties............................................................................................................................... 246
Graph Dimensions................................................................................................................................... 247
Modifying Styles ............................................................................................................................................. 249
Selecting Traces to be Modified............................................................................................................. 250
Display Modes.......................................................................................................................................... 250
Markers ..................................................................................................................................................... 251
Stroke Color....................................................................................................................................... 252
Text Markers............................................................................................................................................. 252
Arrow Markers......................................................................................................................................... 253
Line Styles and Sizes ............................................................................................................................... 253
Fills............................................................................................................................................................. 254
Bars............................................................................................................................................................. 254
Grouping, Stacking and Adding Modes .............................................................................................. 255
Color .......................................................................................................................................................... 257
Setting Trace Properties from an Auxiliary (Z) Wave........................................................................ 257
Color as f(z) Example .............................................................................................................................. 260
Trace Offsets ............................................................................................................................................. 261
Trace Multipliers...................................................................................................................................... 262
Hiding Traces ........................................................................................................................................... 262
Complex Display Modes ........................................................................................................................ 262
Gaps ........................................................................................................................................................... 262
Page view 0
1 2 3 4 5 6 ... 79 80

Summary of Contents

Page 1

ChapterII-12II-12GraphsOverview...

Page 2

Chapter II-12 — GraphsII-242// Create third instance of wave0. Trace name is thirdInstance.AppendToGraph wave0/TN=thirdInstanceThis creates a graph wi

Page 3

Chapter II-12 — GraphsII-243folders containing data from a single run. All the waves in the chosen data folder whose names match the names of waves di

Page 4 - Graph Features

Chapter II-12 — GraphsII-244If you manually scale any axis, that axis changes to the manual scaling mode. The methods of manual scaling are described

Page 5 - The Graph Menu

Chapter II-12 — GraphsII-245example, if the marquee is one half the size of the graph then the waves shrink to one half their former size. The point a

Page 6 - Creating Graphs

Chapter II-12 — GraphsII-246Manual Axis RangesWhen a graph is first created, it is in autoscaling mode. In this mode, the axis limits automatically ad

Page 7

Chapter II-12 — GraphsII-247Normally, X axes are plotted horizontally and Y axes vertically. You can reverse this behavior by selecting the “Swap X &a

Page 8 - Types of Axes

Chapter II-12 — GraphsII-248The graph can be in one of five modes with respect to each dimension: auto, absolute, per unit, aspect, or plan. These mod

Page 9 - Trace Names

Chapter II-12 — GraphsII-249If you want to fully understand how Igor arrives at the final size of a graph when the width or height is constrained, you

Page 10 - Replacing Traces

Chapter II-12 — GraphsII-250Selecting Traces to be ModifiedSelect the trace or traces whose appearance you want to modify from the Trace list. If you

Page 11 - Scaling Graphs

Chapter II-12 — GraphsII-251MarkersIf you choose the Markers or Lines and Markers mode you also get to choose the marker, marker size, marker thicknes

Page 12 - Manual Scaling

Chapter II-12 — GraphsII-234Error Bars ...

Page 13 - Setting the Range of an Axis

Chapter II-12 — GraphsII-252Stroke ColorIn the Markers or Lines and Markers modes you can specify a color for marker objects that is different from th

Page 14 - Overall Graph Properties

Chapter II-12 — GraphsII-253Igor determines the font size to use for text markers from the marker size, which you set in the Modify Trace Appearance d

Page 15 - Graph Dimensions

Chapter II-12 — GraphsII-254FillsFor traces in the Bars and “Fill to zero” modes, Igor presents a choice of fill type. The fill type can be None, whic

Page 16

Chapter II-12 — GraphsII-255Grouping, Stacking and Adding ModesFor the four modes that normally draw to y=0 (“Sticks to zero”, “Bars”, “Fill to zero”,

Page 17 - Modifying Styles

Chapter II-12 — GraphsII-256And here we use “Stack on next”:You can create layer graphs by plotting a number of waves in a graph using the fill to nex

Page 18 - Display Modes

Chapter II-12 — GraphsII-257ColorYou can choose a color for the selected trace from the Color pop-up palette of colors.If you don’t see a color you li

Page 19

Chapter II-12 — GraphsII-258You may wish to use the Log Colors option when the zWave spans many decades and you want to show more detailed changes of

Page 20 - Text Markers

Chapter II-12 — GraphsII-259Then make a Z wave, select Color Table mode and the YellowHot color table:Make/N=5 zWave = {1,2,3,4,5}ModifyGraph zColor(Y

Page 21 - Line Styles and Sizes

Chapter II-12 — GraphsII-260Color as f(z) ExampleIf you have a graph that uses the color as f(z) mode, you may want to create a legend that identifies

Page 22

Chapter II-12 — GraphsII-261The last command used the \W escape sequence to specify which marker to use in the legend (08 for the circle marker in thi

Page 23

Chapter II-12 — GraphsII-235Graph Expansion...

Page 24

Chapter II-12 — GraphsII-262When offsetting a trace that uses log axes, the trace offsets by the same distance it does when the axis is not log. The s

Page 25

Chapter II-12 — GraphsII-263You can control this using the Gaps checkbox in the Modify Trace Appearance dialog. If this checkbox is selected (the defa

Page 26

Chapter II-12 — GraphsII-264The “Cap width” setting sets the width of the cap on the end of an error bar as an integral number of points. You can also

Page 27

Chapter II-12 — GraphsII-265The dialog has tabs for various aspects of axis appearance, plus a few controls outside the tabs. These global controls in

Page 28 - Color as f(z) Example

Chapter II-12 — GraphsII-266Axis TabYou can set the axis Mode for the selected axis to linear, log base 10, log base 2, or Date/Time. The Date/Time mo

Page 29 - Trace Offsets

Chapter II-12 — GraphsII-267The Offset item is a way to control the distance between the edge of the graph and the axis. It specifies the distance fro

Page 30 - Complex Display Modes

Chapter II-12 — GraphsII-268the rest of the graph. You can set the default font for all graphs using the Default Font item in the Misc menu. You can s

Page 31 - Error Bars

Chapter II-12 — GraphsII-269Ticks and Grids TabThe Ticks and Grids tab has items to control the appearance of ticks and to select and control graph gr

Page 32 - Modifying Axes

Chapter II-12 — GraphsII-270Tick DimensionsYou can control the length and thickness of each type of tick mark that Igor makes and the location of tick

Page 33

Chapter II-12 — GraphsII-271The grid line dots may disappear if the dots are smaller than the dithering cell. The solution is to increase the grid lin

Page 34 - Axis Tab

Chapter II-12 — GraphsII-236OverviewIgor graphs are simultaneously:• Publication quality presentations of data.• Dynamic windows for exploratory data

Page 35

Chapter II-12 — GraphsII-272The dashed line styles can be altered to your liking. See Dashed Lines on page III-412.Tick Options TabThe Tick Options ta

Page 36 - Auto/Man Ticks Tab

Chapter II-12 — GraphsII-273Normally, you will adjust the position of the axis label by simply dragging it around on the graph. The “Axis label positi

Page 37 - Ticks and Grids Tab

Chapter II-12 — GraphsII-274rotated. Sometimes there are multiple versions of a given font and one of them is a bitmapped font. The solution to this p

Page 38 - 1.00.80.60.40.20.0

Chapter II-12 — GraphsII-275Selecting a log axis makes the Log Ticks box on the Tick Options tab available:The “Max log cycles with minor ticks” setti

Page 39

Chapter II-12 — GraphsII-276Now, imagine that you want to zoom in on t = 60 seconds.The canonic tick, at t = 0, does not appear on the graph but it st

Page 40 - Label Options Tab

Chapter II-12 — GraphsII-277Create the waves for labelling the axes:Make/N=5 TickPositionsMake/N=5/T TickLabelsAssuming that Tm is 450 degrees and tha

Page 41

Chapter II-12 — GraphsII-278 Dimension labels allow you (or Igor) to refer to a row or column of a wave using a name rather than a number. Thus, the T

Page 42 - 4.54.03.53.02.52.01.5

Chapter II-12 — GraphsII-279It is much easier to let the Modify Axis dialog change the wave scaling for you.When you click the Date/Time radio button,

Page 43 - Manual Ticks

Chapter II-12 — GraphsII-280Depending on the extent of the axis, the tick mark labels may show date or date and time. You can suppress the display of

Page 44

Chapter II-12 — GraphsII-281The SetScale operation sets the temperature wave so that its X values span the year 2000. In this example, the date/time i

Page 45

Chapter II-12 — GraphsII-237You can zoom in on a region of interest, expand or shrink horizontally or vertically and you can pan through your data wit

Page 46 - Date/Time Axes

Chapter II-12 — GraphsII-282The result:“Fake” AxesIt is sometimes necessary to create an axis that is not related to the data in a simple way. One met

Page 47

Chapter II-12 — GraphsII-283After you set the label for a particular axis you can select another axis and set its label. Further label format-ting opt

Page 48 - Date/Time Examples

Chapter II-12 — GraphsII-284The Special pop-up menu is shown here:The most commonly used items are Superscript, Subscript and Normal. To create a supe

Page 49

Chapter II-12 — GraphsII-285The Character hierarchical menu presents a table from which you can select text and special characters to add to the axis

Page 50 - Axis Labels

Chapter II-12 — GraphsII-286In the last three cases, Igor has added units or scaling to the last tick mark label because the axis label itself does no

Page 51 - Joulesx10

Chapter II-12 — GraphsII-287Yet another variation on labeling and units is provided by Exponent Prescale, which is found on the Ticks and Grids tab of

Page 52

Chapter II-12 — GraphsII-288Annotations in GraphsYou can add text annotation to a graph by choosing Add Annotation from the Graph menu. This brings up

Page 53

Chapter II-12 — GraphsII-289All of the cursor styles can be applied in various ways by choosing appropriate combinations of styles in the Style pop-up

Page 54

Chapter II-12 — GraphsII-290You can also put a cursor on a particular wave using a pop-up menu. Position the mouse over the “A: wave-Name” or “B: wave

Page 55

Chapter II-12 — GraphsII-291Subrange Display SyntaxThe Display operation (page V-119), AppendToGraph operation (page V-28), and ReplaceWave operation

Page 56 - Info Box and Cursors

Chapter II-12 — GraphsII-238The Target WindowOperations that apply only to graphs (such as ModifyGraph and ShowInfo) affect the top-most graph window.

Page 57

Chapter II-12 — GraphsII-292Printing GraphsBefore printing a graph you should set the page size and orientation using the Page Setup dialog. Choose Pa

Page 58 - Subrange Display

Chapter II-12 — GraphsII-293You can use the custom size setting and the related Left, Top, Width and Height parameters to print a graph of any size at

Page 59 - Limitations

Chapter II-12 — GraphsII-294Creating Graphs with Multiple AxesThis section describes how to create a graph that has many axes attached to a given plot

Page 60 - Printing Graphs

Chapter II-12 — GraphsII-295Next, we drag the left margin to the right, drag the two free axes to the left, change the line styles of the traces and f

Page 61 - Exporting Graphs

Chapter II-12 — GraphsII-296Notice that two free axes were created with the arbitrary names L2 and B2. Clicking the Do It button gave the following ju

Page 62

Chapter II-12 — GraphsII-297Here is how the Modify Axis dialog should look:Once everything is properly set up, click Do It. The graph need only be res

Page 63 - Creating Stacked Plots

Chapter II-12 — GraphsII-298Function AddPlotFrame()SetDrawLayer UserBackSetDrawEnv xcoord=prel,ycoord=prel,fillpat=0DrawPoly 0,0,1,1,{0,0,0,1,1,1,1,0,

Page 64

Chapter II-12 — GraphsII-299Evenly-Spaced Waterfall Plot ExampleIn this example we create a waterfall plot with evenly-spaced X and Y values that come

Page 65

Chapter II-12 — GraphsII-300// Apply color as a function of ZDuplicate mat2,mat2ColorIndexmat2ColorIndex=yModifyGraph zColor(mat2)={mat2ColorIndex,*,*

Page 66 - Waterfall Plots

Chapter II-12 — GraphsII-301Wind Barb PlotsYou can create a wind barb plot by creating an XY plot and telling Igor to use wind barbs for markers. You

Page 67

Chapter II-12 — GraphsII-239In fact, you can display a wave more than once in a graph by using the More Choices button or the Append Traces to Graph d

Page 68 - →Example

Chapter II-12 — GraphsII-302Before using the macros, you should create the graph in near final form using just the main axes. For best results, especi

Page 69 - Creating Split Axes

Chapter II-12 — GraphsII-303Graph PreferencesGraph preferences allow you to control what happens when you create a new graph or add new traces to an e

Page 70

Chapter II-12 — GraphsII-304Even if preferences are on when a new graph with waves is created or when a wave is newly appended to an existing graph, t

Page 71 - Graph Preferences

Chapter II-12 — GraphsII-305If you do choose to save, Igor will create a macro which, when invoked, will recreate the graph with its size, position an

Page 72 - Saving and Recreating Graphs

Chapter II-12 — GraphsII-306You could create this graph with the New Graph dialog only, using the features provided by the More Choices button.All of

Page 73 - Graph Style Macros

Chapter II-12 — GraphsII-307When we click Do It, Igor generates a graph style macro and puts it in the procedure window.The graph style macro for this

Page 74

Chapter II-12 — GraphsII-3083. Choose Graph0Style from the Graph Macros submenu in the Windows menu.4. Turn preferences back on by choosing Preference

Page 75 - Applying the Style Macro

Chapter II-12 — GraphsII-309You are encouraged to explore these menus.Sometimes it is difficult to contextual click in the plot area of a graph and no

Page 76 - Graph Pop-Up Menus

Chapter II-12 — GraphsII-310Graph ShortcutsAction Shortcut (Macintosh) Shortcut (Windows)To autoscale a graph Press Command-A. Press Ctrl+A.To modify

Page 77 - Graph Expansion

Chapter II-12 — GraphsII-311To change an annotation Double-click the annotation to summon a dialog.Double-click the annotation to summon a dialog.To c

Page 78 - Graph Shortcuts

Chapter II-12 — GraphsII-240Using this dialog you can create complex graphs in one step. The graph will be created based on the selec-tions in the Y a

Page 79

Chapter II-12 — GraphsII-312

Page 80

Chapter II-12 — GraphsII-241The Axis pop-up menu entries L=VertCrossing and B=HorizCrossing you saw in the New Graph dialog above are actually free ax

Comments to this Manuals

No comments