Browse Source

correct the pivot-angle-interpline example

The previous one has a wrong example when interpolating the  2-D fields to a line using a pivot point and the angle.
main
Shiwei Sun 8 years ago committed by GitHub
parent
commit
700fd02703
  1. 2
      doc/source/basic_usage.rst

2
doc/source/basic_usage.rst

@ -929,7 +929,7 @@ Example Using Pivot Point and Angle @@ -929,7 +929,7 @@ Example Using Pivot Point and Angle
# Calculate the vertical cross section. By setting latlon to True, this
# also calculates the latitude and longitude coordinates along the line
# and adds them to the metadata to help with plotting labels.
t2_line = interpline(t2, start_point=start_point, end_point=end_point, latlon=True)
t2_line = interpline(t2, pivot_point=pivot_point, angle=angle, latlon=True)
print(t2_line, "\n")

Loading…
Cancel
Save