[Thread Prev][Thread Next][Index]
Re: [ferret_users] specifying plot line colors
Hi Keith,
A simple way to use only non-black colors on a line plot, is with
PLOT/COLOR - with no argument to COLOR:
plot/color var1, var2
That will use the firs two non-black default colors red and green. To
use first blue and then red, you could redefine the colors with PPL COLOR
yes? ppl color,2,0,0,100 ! color number 2 becomes blue
yes? ppl color,3,100,0,0 ! color number 3 becomes red
yes? plot/color/i=1:15 var1, var2
The PPL COLOR settings persist through the Ferret session, or until you
issue a SET WINDOW/NEW. All of this applies to PyFerret and Ferret.
Note that you can come up with other colors you wish, and also set up
more than 6 different colored lines. See this example:
http://ferret.pmel.noaa.gov/Ferret/documentation/users-guide/customizing-plots/COLOR#linecolors
-Ansley
On 2/24/2017 12:05 PM, Willis, Keith D CIV N62306 wrote:
I want to plot 2 lines on a graph. By default, ferret makes each line a separate color. But by default, it also makes the color of the first line the same color as the grid lines.
How can I get ferret to keep the grid lines black, but plot the first line in blue and the second line in red?
Keith
[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce /
NOAA /
OAR /
PMEL /
Ferret
Privacy Policy | Disclaimer | Accessibility Statement