<div dir="ltr"><div class="gmail_default" style="font-size:small">The tmXBValues and tmXBLabels resources are only for changing the labels on the X axis.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">If you actually want to change the values on the X axis to be log, then instead of:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><div class="gmail_default"> res@tmXBOn = True</div><div class="gmail_default"> res@tmXBLabelsOn = True</div><div class="gmail_default"> res@tmXBMode = "Explicit"</div><div class="gmail_default"> res@tmXBValues = spec17@frq</div><div class="gmail_default"> res@tmXBLabels = fspan(0,0.5,0.1)</div><div class="gmail_default"> bot_plot(0) = gsn_csm_xy(wks,log(spec17@frq),splt17,res)</div><div class="gmail_default"><br></div><div class="gmail_default">try:</div><div class="gmail_default"><br></div><div class="gmail_default"><div class="gmail_default"> res@xyXStyle = "Log"</div><div class="gmail_default"><br></div><div class="gmail_default"> bot_plot(0) = gsn_csm_xy(wks,spec17@frq,splt17,res)</div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 12, 2015 at 10:20 AM, Ioana Colfescu <span dir="ltr"><<a href="mailto:ioana.colfescu@ed.ac.uk" target="_blank">ioana.colfescu@ed.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
Hi Mary, <br>
Well that's the thing - I want other values than the real ones, I d
want to put another array than the real one - replace the values
with some that I specify. <br><span class="HOEnZb"><font color="#888888">
Ioana <br></font></span><div><div class="h5">
<br>
<div>On 12/11/15 17:17, Mary Haley wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div class="gmail_default" style="font-size:small">When you set
XBValues, these have to match the actual values on your X
axis. </div>
<div class="gmail_default" style="font-size:small"><br>
</div>
<div class="gmail_default" style="font-size:small">Your X axis
values are log(spec17@frq), but you are specifying spec17@frq
as X axis values.</div>
<div class="gmail_default" style="font-size:small"><br>
</div>
<div class="gmail_default" style="font-size:small">Try:</div>
<div class="gmail_default" style="font-size:small"><br>
</div>
<div class="gmail_default" style="font-size:small"><span style="font-size:12.8px">res@tmXBValues = log(spec17@frq)</span><br>
</div>
<div class="gmail_default" style="font-size:small"><span style="font-size:12.8px"><br>
</span></div>
<div class="gmail_default" style="font-size:small"><span style="font-size:12.8px">--Mary</span></div>
<div class="gmail_default" style="font-size:small"><span style="font-size:12.8px"><br>
</span></div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Nov 12, 2015 at 9:43 AM, Ioana
Colfescu <span dir="ltr"><<a href="mailto:ioana.colfescu@ed.ac.uk" target="_blank">ioana.colfescu@ed.ac.uk</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
I'm trying to make a plot and put on the x axis my own
labels ( which are different from the original ones).<br>
For some reason I don't get any labeling and if I get the
labeling I don't get the plot ( the original values are
negative while I want to put positive values on the axis).<br>
This is my code with some random values I try to give but
doesn't work with this either. Could someone tell me what I
do wrong ? ( the plot I get is attached and I'd need the
values I want on the x axis).<br>
<br>
res = True<br>
res@txFontHeightF = 0.04<br>
res@gsnDraw = False<br>
res@gsnFrame = False<br>
res@tmXBOn = True<br>
res@tmXBLabelsOn = True<br>
res@tmXBMode = "Explicit"<br>
res@tmXBValues = spec17@frq<br>
res@tmXBLabels = fspan(0,0.5,0.1)<br>
bot_plot(0) = gsn_csm_xy(wks,log(spec17@frq),splt17,res)<br>
<br>
<br>
Thanks,<br>
Ioana<span><font color="#888888"><br>
<br>
-- <br>
The University of Edinburgh is a charitable body,
registered in<br>
Scotland, with registration number SC005336.<br>
<br>
</font></span><br>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</div></div></div>
<br>The University of Edinburgh is a charitable body, registered in<br>
Scotland, with registration number SC005336.<br>
<br></blockquote></div><br></div>