Hi,
Here's a general method. By default, a plot with multiple lines is colored using a default set of colors: black, red, green, blue, ...
If you use the /COLOR qualifier with no argument to /COLOR,
yes? PLOT/COLOR var1, var2
then Ferret will skip black and plot the first line using red and the second one using green which are the defaults for pen colors 2 and 3. Now, you can redefine the color for any pen number, see this documentation:
http://ferret.pmel.noaa.gov/Ferret/documentation/users- guide/customizing-plots/COLOR# _VPID_245
So, for example, this script will color variable AA with gray, and variable BB with black
yes? ppl color 2,70,70,70
yes? ppl color 3, 0, 0, 0
yes? let AA = 1./i
yes? let BB = 2./i
yes? plot/i=1:15/thick/set/color AA, BB
For your call to "go legend" you would keep the commands the same, specifying 1 and 2.
On 10/26/2016 11:16 AM, Nanda Kishore Reddy wrote:
Hi Ferret users,
I have plotted the time-series lines of two data sets by using plot/set command, but here I would like to replace the black curve by grey curve and the red curve by black curve. How can I change these color curves.
can data/all; can var/all; set me/size=300
use amsr2_2013_14.nc
use bd10_sst_davg.nc
plot/set_up/nolab/thick/vlim=25:34:0.5/t=01-jan-2013:31- dec-2014 sst[d=1,x=80,y=10,d=1], bd10_sst[d=2,l=@sbx:3] go legend 1 "AMSR2"go legend 2 "BD10-SST"ppl ylab "deg c"ppl dfltfnt drppl txlsze 0.13ppl plot
With Kind Regards
B. Nanda Kishore Reddy,