[Thread Prev][Thread Next][Index]

Re: [ferret_users] specifying graticule color changes the plot color (line plot)



Dear Saurabh and Ryo,

Here is the simple script hope it will work well.

let func_ryo = 2*i
ppl tics,0.09,0.09,0.09,0.09,0.09,0.09
ppl color 6,80,80,80
ppl color 3,65,65,65
plot/grat=(dash,color=6)/line=8/symb func_ryo

Best Regards
Pratik 


On Mon, Mar 21, 2022 at 5:51 PM Ryo Furue <furue@xxxxxxxxxx> wrote:
Hi Saurabh,

On Fri, Mar 18, 2022 at 10:50 PM saurabh rathore <rohitsrb2020@xxxxxxxxx> wrote: 
 
However, when I issue the command as shown below it issues the graticule command to my variable without changing itself. I can not understand why it is so.

plot/thick=2.1/axes/set/nolab/nokey/dash/col=(99,30,30)/HGRAT="large=(dash, color=(50,50,50,50))"/VGRAT="large=(dash, color=(50,50,50,50))"/vlimits=300.0:1000.0:100.0 mldws [I've added the closing paren.]


I get a strange result, perhaps the same as yours.  I just simplify your script to the one below.  I use macOS 12.3 and PyFerret 7.63 .

Basically,

! Works.
plot/col=(100,0,0)/HGRAT="large=(color=green)" func[i=0:10]
! Doesn't work.
plot/col=(100,0,0)/HGRAT="large=(color=(0,100,0))" func[i=0:10]


That is, the "color=(r,g,b)" form doesn't work there.

Ryo
--------------------------------------
$ pyferret
  NOAA/PMEL TMAP
  PyFerret v7.63 (optimized)
  Darwin 19.6.0 - 10/13/20
  21-Mar-22 17:38

yes? let func = 2*i
yes? plot/col=(100,0,0) func[i=0:10]
yes? set win 2
yes? plot/col=(100,0,0)/HGRAT="large=(dash, color=(0,100,0))" func[i=0:10]
           *** NOTE: Only standard line colors and thicknesses are accepted at this time.  Using black.
           *** NOTE: Only standard line colors and thicknesses are accepted at this time.  Using black.
yes?




 
            !!!!!!!!!!    Figure 2 !!!!!!!!!!!

So, in total, I want my variable in red color and the graticules in gray color as I defined. I tried to find the solution but haven't got any. I am attaching the figures for reference. 

Thanks in advance.

Cheers, Saurabh

--


REGARDS

Saurabh Rathore
Research Scholar (PhD.)
Centre For Oceans, Rivers, Atmosphere & Land Science Technology
Indian Institute Of Technology, Kharagpur
contact :- 91- 8345984434

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

Privacy Policy | Disclaimer | Accessibility Statement