Does anyone know how to label plots with letters such as "a)" or "b)",
where the letter is not within the plot itself, but is in the top left
hand corner of the page ?.
I have tried putting the letter at the far left hand end of the main
plot title, but as I put the letter further to the left, this also
pushes the Y-axis title to the left, which I do not want.
Also, when I try to alter the font size of a letter at the far left
hand side of the main title, the size of the font on the Y-axis is
also changed, which I do not want.
In 1) below, I have included my latest attempt to put a letter at the
corner of the page.
In 2) below, I have included an example of plot with a letter in the
corner, whose style I would like to imitate.
in 3) below, I include the script I used to produce the plot in 1).
Thanks,
Helen.
1) My attempt to insert a letter label in the top left hand corner of
the page :
2) An example of the style I would like to imitate, with the letter
"a)" neatly located in the top left hand corner of the page, above the
Y-axis title :
3) The script I used to produce the plot in 1) above :
; ***********************************************
;************************************************
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
;************************************************
begin
;************************************************
a = (/1.195855, 1.200317, 1.216465, 1.22275, 1.21517, 1.225996,
1.245625, 1.265781, 1.285416, 1.30774, 1.32677, 1.344944
, 1.359634, 1.365204, 1.378591, 1.392451, 1.400448, 1.41706, 1.434228,
1.449925, 1.460788, 1.479396, 1.490422, 1.491604,
1.52642, 1.548444, 1.566962, 1.582111, 1.591856, 1.601059, 1.615156,
1.623528, 1.634501, 1.651793, 1.686248, 1.81055, 1
.916997, 2.084613, 2.128039, 2.135288, 2.034592, 1.870318, 1.796271,
1.855403, 1.997505, 2.443484, 2.999523, 3.19018, 3.
20345, 3.056899, 2.602908, 1.929018, 1.924611, 2.056998, 2.184863,
2.659211, 3.189361, 3.315396, 3.282295, 3.053168, 2.5
54067, 2.317201, 2.471709, 2.63123, 3.092124, 3.697757, 3.912822,
3.889485, 3.665957, 3.267535, 2.951536, 3.119439, 3.22
8493, 3.431362, 3.856895, 4.133052, 4.160145, 4.07547, 3.756751,
3.447701, 3.312592, 3.436129, 3.652981, 4.219426, 4.773
73, 4.875092, 4.813122, 4.458206, 3.819027, 3.685057, 3.809357,
3.932169, 4.286549, 4.781499, 4.951098, 4.968974, 4.9245
65, 4.648161, 4.231907, 4.170366, 4.307023, 4.449227, 4.865559,
5.364711, 5.496524, 5.49306, 5.253467, 4.750524, 4.53095
5, 4.681813, 4.75975, 4.921472, 5.376514, 5.637734, 5.684334,
5.662199, 5.388333, 4.917688, 4.741995, 4.882096, 5.011918
, 5.306106, 5.746173, 5.917382, 5.950317, 5.901803, 5.707207,
5.259764, 5.108095, 5.287995, 5.343631, 5.652999, 6.108146
, 6.304349, 6.324154, 6.235621, 5.839758, 5.293381, 5.35012, 5.441513,
5.611065, 5.976485, 6.383163, 6.471953, 6.469016,
6.326937, 5.917416, 5.559365, 5.708031, 5.773186, 5.828653,
6.067953, 6.357394, 6.450266, 6.470571, 6.369563, 5.909037,
5.205041, 5.311702, 5.378375, 5.465111, 5.692664, 6.065745,
6.210462, 6.22325, 6.132672, 5.755656, 5.206517, 5.171109,
5.310406, 5.399387, 5.655382, 6.051694, 6.246234, 6.292607, 6.270714,
6.030283, 5.518238, 5.355087, 5.522523, 5.523887,
5.698662, 6.051482, 6.236553, 6.286234, 6.282437, 6.107973, 5.633883,
5.379304, 5.540347, 5.663043, 5.83428, 6.271476, 6
.535003, 6.571431, 6.51414, 6.185834, 5.754424/) ; x10^27
b = (/3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0,
15.0, 16.0, 17.0, 18.0, 19.0, 20.0, 21.0, 22.0, 2
3.0, 24.0, 25.0, 26.0, 27.0, 28.0, 29.0, 30.0, 31.0, 32.0, 33.0, 34.0,
35.0, 36.0, 37.0, 38.0, 39.0, 40.0, 41.0, 42.0, 4
3.0, 44.0, 45.0, 46.0, 47.0, 48.0, 49.0, 50.0, 51.0, 52.0, 53.0, 54.0,
55.0, 56.0, 57.0, 58.0, 59.0, 60.0, 61.0, 62.0, 6
3.0, 64.0, 65.0, 66.0, 67.0, 68.0, 69.0, 70.0, 71.0, 72.0, 73.0, 74.0,
75.0, 76.0, 77.0, 78.0, 79.0, 80.0, 81.0, 82.0, 8
3.0, 84.0, 85.0, 86.0, 87.0, 88.0, 89.0, 90.0, 91.0, 92.0, 93.0, 94.0,
95.0, 96.0, 97.0, 98.0, 99.0, 100.0, 101.0, 102.0
, 103.0, 104.0, 105.0, 106.0, 107.0, 108.0, 109.0, 110.0, 111.0,
112.0, 113.0, 114.0, 115.0, 116.0, 117.0, 118.0, 119.0,
120.0, 121.0, 122.0, 123.0, 124.0, 125.0, 126.0, 127.0, 128.0,
129.0, 130.0, 131.0, 132.0, 133.0, 134.0, 135.0, 136.0,
137.0, 138.0, 139.0, 140.0, 141.0, 142.0, 143.0, 144.0, 145.0, 146.0,
147.0, 148.0, 149.0, 150.0, 151.0, 152.0, 153.0, 1
54.0, 155.0, 156.0, 157.0, 158.0, 159.0, 160.0, 161.0, 162.0, 163.0,
164.0, 165.0, 166.0, 167.0, 168.0, 169.0, 170.0, 17
1.0, 172.0, 173.0, 174.0, 175.0, 176.0, 177.0, 178.0, 179.0, 180.0,
181.0, 182.0, 183.0, 184.0, 185.0, 186.0, 187.0, 188
.0, 189.0, 190.0, 191.0, 192.0, 193.0, 194.0, 195.0, 196.0, 197.0,
198.0, 199.0, 200.0/)
wks = gsn_open_wks ("pdf","angsebtest7") ; open
workstation
res = True ; plot mods desired
res@tiMainString = " "
res@gsnLeftString = "a)"
res@tiMainFontHeightF = 0.05
; res@gsnLeftStringParallelPosF = -.1 ; move the
LeftString slightly left
; res@gsnLeftStringParallelPosF = -.2 ; move the
LeftString slightly left
res@gsnLeftStringParallelPosF = -.22 ; move the
LeftString slightly left
res@gsnLeftStringOrthogonalPosF = .1 ; raise the
LeftString slightly
; res@gsnLeftStringOrthogonalPosF = .019 ; raise the
LeftString slightly
res@tiXAxisString = "Venus days"
res@tiYAxisString = "Normalized total angular momentum"
res@tiYAxisFontHeightF = 0.02
res@tmXBMajorOutwardLengthF = 0.0 ; draw major x-axis
tickmarks inward
res@tmXBMinorOutwardLengthF = 0.0 ; draw minor x-axis
tickmarks inward
res@tmYLMajorOutwardLengthF = 0.0 ; draw major y-axis
tickmarks inward
res@tmYLMinorOutwardLengthF = 0.0 ; draw minor y-axis
tickmarks inward
res@tmYLAutoPrecision = False
res@tmYLPrecision = 1
res@vpWidthF = 0.75 ; set width and
height
res@vpHeightF = 0.555
a = a / 1.195855
b = b * 365.25/116.75
plot = gsn_csm_xy (wks,b,a,res) ; create plot
end
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
This archive was generated by hypermail 2.1.8 : Wed Feb 23 2011 - 16:47:57 MST