[Thread Prev][Thread Next][Index]

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



Hi Saurabh and Pratik,

On Mon, Mar 21, 2022 at 6:06 PM saurabh rathore <rohitsrb2020@xxxxxxxxx> wrote:
Thanks Ryo and Pratik. 

I faced the issue when I was trying to make the graticule light gray but changing the graticule colors, changes the variable's line plot color also. I hope Pratik's command can work but wouldn't it be nice to have the control on graticule within the plotting command itself?

Yes, such a request is already submitted to the github of pyferret.  To summarize the current situation,

1) color=7. . . . works
2) color=blue. . . . works
3) color=(r,g,b) . . . doesn't
4) color=(r,g,b,alpha) . . . doesn't

in the GRATICULE settings. Pratik's method is to utilize (1) and customize the color associated with the number.

On the github,

https://github.com/NOAA-PMEL/PyFerret/issues/51#issuecomment-1074663538

Ansley shows that you can also specify opacity with method (1).  To quote from her message

[To use a normal color]
yes? ppl color 7,100,20,50
yes? PLOT/COLOR=(60,50,20)/GRATICULE="(DASH,COLOR=7)" I[I=1:50]

! Define a gray color with, 50% opacity
yes? ppl color 7,50,50,50,50
yes? PLOT/COLOR=(60,50,20)/GRATICULE="(DASH,COLOR=7)" I[I=1:50]


Cheers,

Ryo


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

Privacy Policy | Disclaimer | Accessibility Statement