Axis 282 Uživatelský manuál Strana 69

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 80
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 68
Chapter II-12 — Graphs
II-301
Wind Barb Plots
You can create a wind barb plot by creating an XY plot and telling Igor to use wind barbs for markers. You
turn markers into wind barbs using "ModifyGraph arrowMarker", passing to it a wave that specifies the
length, angle and number of barbs for each point.
If you want to color-code the wind barbs, you turn on color as f(z) mode using "ModifyGraph zColor",
passing to it a wave that specifies the color for each point.
Here is an example. Execute the commands one section at at time to see how it works.
// Make XY data
Make/O xData = {1, 2, 3}, yData = {1, 2, 3}
Display yData vs xData // Make graph
ModifyGraph mode(yData) = 3 // Marker mode
// Make a barb data wave to control the length, angle
// and number of barbs for each point.
// To control the number of barbs, column 2 must have a column label of WindBarb.
Make/O/N=(3,3) barbData // Controls barb length, angle and number of barbs
SetDimLabel 1, 2, WindBarb, barbData // Set column label to WindBarb
Edit /W=(439,47,820,240) barbData
// Put some data in barbData
barbData[0][0]= {20,25,30} // Column 0: Barb lengths in points
barbData[0][1]= {0.523599,0.785398,1.0472} // Column 1: Barb angle in radians
barbData[0][2]= {10,20,30} // Column 2: Wind speed code from 0 to 40
// Set trace to arrow mode to turn barbs on
ModifyGraph arrowMarker(yData) = {barbData, 1, 10, 1, 1}
// Make an RGB color wave
Make/O/N=(3,3) barbColor
Edit /W=(440,272,820,439) barbColor
// Store some colors in the color wave
barbColor[0][0]= {65535,0,0} // Red
barbColor[0][1]= {0,65535,0} // Green
barbColor[0][2]= {0,0,65535} // Blue
// Turn on color as f(z) mode
ModifyGraph zColor(yData)={barbColor,*,*,directRGB,0}
To see a demo of wind barbs choose File
Example ExperimentsFeature Demos2Barbs and Arrows.
See the arrowMarker keyword under ModifyGraph (traces) on page V-411 for details on the construction
of the barb data wave.
The various color as f(z) modes are explained under Setting Trace Properties from an Auxiliary (Z) Wave
on page II-257. You can eliminate the barbColor wave by using a color table lookup instead of a color wave.
Creating Split Axes
You can create split axes using the same techniques just described for creating stacked plots. Simply plot
your data twice using different axes and then adjust the axes so they are stacked. You can then adjust the
range of the axes independently. You can use draw tools to add cut marks.
WaveMetrics supplies a macro package to automate all aspects of creating split axes except setting the range
and adjusting the ticking details of the axes. To use the macro package, select the GraphPackagesSplit
Axes menu item. An example experiment using these macros is provided in the Examples folder.
Zobrazit stránku 68
1 2 ... 64 65 66 67 68 69 70 71 72 73 74 ... 79 80

Komentáře k této Příručce

Žádné komentáře