Re: Good-bye Plot, Surface, Contour, TV and all the rest! [message #73624 is a reply to message #73623] |
Tue, 16 November 2010 07:07   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Jeremy Bailin writes:
> One thing that might be nice to add to FSC_Plot and FSC_PlotS is the
> ability to specify an array for COLOR. I always find it a little silly
> to have to wrap them in histogram + for loops just to plot multiple
> colored points at once!
I have updated both FSC_Plot and FSC_PlotS this morning.
Both have been updated to allow a different color for
plot symbols (SYMCOLOR), and symbols can now be selected
from the 46 symbols available in SymCat. A NoData keyword
has also been added to FSC_Plot.
FSC_PlotS has been further updated to allow the COLOR,
SYMCOLOR, and SYMSIZE keywords to be vectors. This
makes it possible to easily create multicolored lines
and/or multicolored symbols. Being able to size symbols
adds yet another dimension to your data plots.
Here is an example.
data = LoadData(1)
time = Scale_Vector(Findgen(101), 0, 6)
LoadCT, 33, /Silent
FSC_Plot, time, data, /NODATA, XTITLE='Time', YTITLE='Signal'
FSC_PlotS, time, data, PSYM=-16, COLOR=BytScl(data), $
SYMCOLOR=BytScl(data), SYMSIZE=Scale_Vector(data, 1.0, 2.5)
Any other requests? :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|