[Thread Prev][Thread Next][Index]

Re: line style and legend



Hi Arindam,
I don't believe there's a way to store the line styles which are
automatically assigned as lines are plotted, but you could assign
them yourself using symbols and keep those symbols for later use.
For example:
let pencolor = {"red", "blue", "black"}
let penthick = {1, 2, 2}

plot/i=1:150/color=`pencolor[i=1]`/thickness=`penthick[i=1]` sin(i/15)
plot/over/i=1:150/color=`pencolor[i=2]`/thickness=`penthick[i=2]` sin(i/20)
plot/over/i=1:150/color=`pencolor[i=3]`/thickness=`penthick[i=3]` sin(i/30)

Then you could use the variables pencolor and penthick elsewhere.
One could do something similar for plot symbols and dash characteristics,
as well.

The standard ordering of lines, that's automatically defined,  would be:
{ "black", "red", "green", "blue", "lightblue", "purple"}, and thickness is
1 for the first 6 lines, 2 for the next 6, 3 for lines 16-18.

Ansley Manke

Arindam Chakraborty wrote:

Hello Ferreters,
        is there any way to store the line styles (color, symbol
etc) for a overlaying plot so that those can be used for making
automatic legends later on (using a go file)? By default Ferret
shows those lines in the left-bottom corner.

thanks,

Arindam
------------------------------------------
 ARINDAM CHAKRABORTY
 Centre for Atmospheric & Oceanic Sciences
 Indian Institute of Science
 Bangalore 560 012; INDIA
 Tel: 091-080-3942505, 091-080-3600450
 Fax: 091-080-3600865
__________________________________________

--
Ansley Manke  Pacific Marine Environmental Laboratory  Seattle WA  (206)526-6246
 


[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement