ChapterII-12II-12GraphsOverview...
Chapter II-12 — GraphsII-242// Create third instance of wave0. Trace name is thirdInstance.AppendToGraph wave0/TN=thirdInstanceThis creates a graph wi
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
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
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
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
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
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
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
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
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
Chapter II-12 — GraphsII-234Error Bars ...
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
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
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
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”,
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
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
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
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
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
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
Chapter II-12 — GraphsII-235Graph Expansion...
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
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
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
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
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
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
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
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
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
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
Chapter II-12 — GraphsII-236OverviewIgor graphs are simultaneously:• Publication quality presentations of data.• Dynamic windows for exploratory data
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
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
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
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
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
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
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
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,
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
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
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
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
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
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
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
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
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
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
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
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
Chapter II-12 — GraphsII-291Subrange Display SyntaxThe Display operation (page V-119), AppendToGraph operation (page V-28), and ReplaceWave operation
Chapter II-12 — GraphsII-238The Target WindowOperations that apply only to graphs (such as ModifyGraph and ShowInfo) affect the top-most graph window.
Chapter II-12 — GraphsII-292Printing GraphsBefore printing a graph you should set the page size and orientation using the Page Setup dialog. Choose Pa
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
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
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
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
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
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,
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
Chapter II-12 — GraphsII-300// Apply color as a function of ZDuplicate mat2,mat2ColorIndexmat2ColorIndex=yModifyGraph zColor(mat2)={mat2ColorIndex,*,*
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
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
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
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
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
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
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
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
Chapter II-12 — GraphsII-3083. Choose Graph0Style from the Graph Macros submenu in the Windows menu.4. Turn preferences back on by choosing Preference
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
Chapter II-12 — GraphsII-310Graph ShortcutsAction Shortcut (Macintosh) Shortcut (Windows)To autoscale a graph Press Command-A. Press Ctrl+A.To modify
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
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
Chapter II-12 — GraphsII-312
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