Axis 282 Instrukcja Użytkownika Strona 73

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 80
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 72
Chapter II-12 — Graphs
II-305
If you do choose to save, Igor will create a macro which, when invoked, will recreate the graph with its size,
position and stylistic presentation intact. The macro is placed in the procedure window where you can
inspect, modify or delete it as you like. The macro name also appears in the Graph Macros submenu of the
Windows menu.
You can invoke the macro by choosing it from the Windows menu or by typing its name on the command
line. The graph name for the graph that is recreated will be the same as the name of the macro that created it.
If you are sure that you don’t want to make a recreation macro for the graph you can press Option (Macin-
tosh) or Alt (Windows) while you click the close button of the graph window. This skips the dialog.
For a general discussion of saving, recreating, closing windows, see Chapter II-4, Windows.
Graph Style Macros
The purpose of a graph style macro is to allow you to create a number of graphs with the same stylistic
properties. Igor can automatically generate a style macro from a prototype graph. You can manually tweak
the macro if necessary. Later, you can apply the style macro to a new graph.
For example, you might frequently want to make a graph with a certain sequence of markers and colors and
other such properties. You could use preferences to accomplish this. The style macro offers another way and
has the advantage that you can have any number of style macros while there is only one set of preferences.
You create a graph style macro by making a prototype graph, setting each of the elements to your taste and
then, using the Window Control dialog, instructing Igor to generate a style macro for the window.
You can apply the style macro when you create a graph using the New Graph dialog. You can also apply it
to an existing graph by choosing the macro from the Graph Macros submenu of the Windows menu.
Example of Creating a Style Macro
As an example, we will create a style macro that defines the color and line type of five traces and some
aspects of the axes.
Since we want our style macro to define a style for five traces, we start by making five waves with the command
Make wave0, wave1, wave2, wave3, wave4
The length, numeric type and scaling of the waves does not matter. We need them only to have something
to put in our prototype graph.
We create the prototype graph using the New Graph item in the Windows menu. We want our graph to
have a right and a top axis as well as the standard left and bottom. Therefore we initially display wave0,
wave1 and wave2 in the prototype graph. Then, using the Append Traces to Graph item in the Graph menu,
we append wave3 and wave4 using the right and top axes.
Przeglądanie stron 72
1 2 ... 68 69 70 71 72 73 74 75 76 77 78 79 80

Komentarze do niniejszej Instrukcji

Brak uwag