[Thread Prev][Thread Next][Index]

Re: [ferret_users] too many tics



Good to have a list of different customizations to get plots to really look the way one wants.

But to begin with the plot should choose a good number of tics automatically without any of these extra settings. I don't think it's a known issue.

-Ansley

On 12/23/2021 10:07 AM, William Kessler wrote:
Two solutions:

1) Include a 3rd argument to HLIMITS, VLIMITS to specify the intervals:

plot/vlimits=-5500:0:500/y=30S/hlimits=111:115:0.5 rose  ! large/main tics every 500m and 0.5 deg

2) Use PPL AXLINT (label interval for large tics) and PPL AXNMTC (number of small tics between large tics)

plot/SET/vlimits=-5500:0:500/y=30S/hlimits=111:115:0.5 rose
ppl axlint,2,2;ppl axnmtc,4,4  ! label every 2nd large tic; add 4 small tics between large tics
ppl plot

Notes:
- the PPL commands are persistent until explicitly changed
- PPL AXLSZE,xlab,ylab    controls the label size
- Could also control the label format (decimal point):
- PPL XFOR,(i5,''lone'')   ! those are two single quotes around LONE = longitude east
   Or, if, say the half-degree tics are to be labelled: PPL XFOR,(f5.1,''lone'')
- PPL YFOR,(i5)   ! integer labels with length to fit -5400

Billy

On Dec 22, 2021, at 11:28 PM, Ryo Furue <furue@xxxxxxxxxx> wrote:

Hi Pratik,

I'm using "xlimits" and "ylimits", which also works perfectly.


I guess you mean that ylimits also produces the same problem:

set data etopo5
plot/ylimits=-5500:0/y=30S/hlimits=111:115 rose
frame/file=tmp.png

This one shows exactly the same problem (too many tics along the vertical axis).

Anyway, xlimits and ylimits are deprecated:

*** NOTE: /XLIMITS and /YLIMITS are deprecated.
*** NOTE: Use /HLIMITS and /VLIMITS instead.

I understand why they are deprecated.  (When the vertical axis isn't a y axis, the name "ylimits" is highly confusing.)

Regards,

Ryo


Best regards
Pratik

On Thu, Dec 23, 2021 at 12:28 PM Ryo Furue <furue@xxxxxxxxxx> wrote:
Hi Ferret users,

Is this problem known? (I searched the email archive but I failed to find a relevant discussion. Perhaps I didn't use good keywords.)

The following three-line code produces a plot with too many tics on the vertical axis:

set data etopo5
plot/vlimits=-5500:0/y=30S/hlimits=111:115 rose
frame/file=tmp.png

When I make two panels as

set data etopo5
set view upper
plot/vlimits=-5500:0/y=30S/hlimits=111:115 rose
set view lower
plot/vlimits=-5500:0/x=125/hlimits=36S:32S rose
frame/file=bottom-profiles.png

only the upper panel suffers from the problem.

A workaround is to specify the tic interval: vlimits=-5500:0:500

I've disabled "~/.ferret" before carrying out the test.

PyFerret v7.63 (optimized)
Darwin 19.6.0 - 10/13/20

macOS 12.1 (Monterey).

Regards,

Ryo

<tmp.png>
(Still) working at home: +1 206-228-7330 (m)



[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement