When using "SET WINDOW n" to return to a previousFor example,
window that differs from the current window in aspect ratio, it
is necessary to re-specify its aspect ratio with /ASPECT,
otherwise PPLUS will not be properly reset. If you return to a
previous window, you cannot expect to make an overlay on the
plot that is there. The PPLUS settings for axis lengths and other
properties of the plot will have been overwritten.
yes? set win/siz=0.4 1
yes? set view upper
yes? plot/i=1:12 i
yes? set win/siz=0.4 2
yes? shade/i=1:12/j=1:12 i+j
yes? set win 1
yes? set view lower ! resets the page
yes? shade/i=1:12/j=1:12 i+j
Arindam Chakraborty wrote:
Hi Ansley,--
thank you for your suggestion. For the time being I can solve
the problem using string variable as you've suggested. But in future
releases if it is possible to store the line color, thickness and
style with every line it will be very much useful. From my point of
view I would like to have it like this:For every line we draw a symbol will be created of the kind:
WwVvPp
where the capital letters are characters and corresponding small
letters are numbers. w stands for current window number, v for current
view number on current window and p is current plot (or line) number
for current view. If the value of the string is like this:
WwVvPp = "col thick style"
where col, thick and style are the values then accessing them will be
easy using ppl $element(). (for contour or shaded plots this symbol
can be set as "contour" or "shaded" or so). Three more symbols will be
required: Current Window: say CW
Current View: say CV
Total plots in current view: say NCPwhich then can be used to draw the legend box which will only
require the user specified descriptions of the different plots.I'm quite sure that there will be much better approach to this
problem. In general, I think getting a go script which creates
automatic legend box will be very much useful.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
__________________________________________On Thu, 30 Jan 2003, Ansley Manke wrote:
> 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