Re: plot colored ellipses [message #79660 is a reply to message #79656] |
Sun, 25 March 2012 07:59   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
bing999 writes:
> I made a simple 2D scatter plot from a square array "matrix", using
> plot, matrix,psym=3. I would like to make nice-looking images by:
> - plotting ellipses instead of points (but centered on the points
> coordinates)
> - orientate these ellipses as I want
> - use different colors for them
> - apply a color gradient to each ellipse, i.e bright red in the center
> and light at the edge
> - etc
>
> Could you please tell me where I should start to make such image?
I would start in your dreams, because I'm pretty sure
that's the only place where this is likely to happen.
It *definitely* is not going to happen in IDL direct
graphics routines. :-)
Well, I guess you could figure out how to draw and rotate
ellipses, and then load them for use with plot commands.
(See SymCat for an example of how this is done.) And, you
could certainly figure out how to make them different colors.
But there is no chance whatsoever of a color gradient. :-)
Sounds like something function graphics ought to be able to
do. ;-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|