On 30 mar, 08:01, bing999 <thibaultga...@gmail.com> wrote:
> Hi,
>
> thanks for your reply.
>
> i have been able to make simple ellipse plots with the tvellipse
> routine, as Wayne suggested. However, it is hard to make nice images
> with this tool... Before giving a real try at function graphics, do
> you think that it will really allow to make good pictures with color
> gradients ? I am asking that since I never used this tool so far and
> it looks much more complex than standard plot routines... :)
> Would you have examples of beautiful images computed with the function
> graphics?
> Cheers
> Dreamer
>
>
Here is Wayne's example written by using function graphics :
pl = plot([0,100], [0,100], /NODATA)
x = [10,40,80]
y = [20,70,60]
orient = [80,140,0]
for i=0,2 do begin
!null = ellipse(x[i], y[i], MAJOR=12, MINOR=6, THETA=orient[i], /
DATA, FILL_COLOR=!COLOR.FIREBRICK)
!null = ellipse(x[i], y[i], MAJOR=8, MINOR=4, THETA=orient[i], /
DATA, FILL_COLOR=!COLOR.SALMON)
endfor
then, while adding another ellipse with "manual" color blending :
pl.Refresh, /DISABLE
!null = ellipse(60, 20, MAJOR=20, MINOR=10, /DATA, FILL_COLOR=!
COLOR.FIREBRICK)
for i=0,19 do !null = ellipse(60, 20, MAJOR=20*i*0.05,
MINOR=10*i*0.05, LINESTYLE=6, $
/DATA, FILL_COLOR=!COLOR.SALMON, FILL_TRANSPARENCY=6*i < 100)
pl.Refresh
alx.
|