comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » How do I create a plot which looks something like a Matrix Plot in IDL ?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: How do I create a plot which looks something like a Matrix Plot in IDL ? [message #92509 is a reply to message #92508] Sat, 02 January 2016 12:51 Go to previous messageGo to previous message
Jim  Pendleton is currently offline  Jim Pendleton
Messages: 165
Registered: November 2011
Senior Member
On Saturday, January 2, 2016 at 10:31:50 AM UTC-7, James wrote:
> I have two dataset scenarios. Each scenario is an output from a model and each scenario contains an array of values in the x (horizontal) axis and 10 arrays of values in the y (vertical) axis. I am trying to create a plot which looks like this http://www.mathworks.com/matlabcentral/answers/uploaded_file s/42412/3.png
> I have been looking for a plot function in ENVI IDL which can help make these plots but so far I did not find any. Can anybody help? Even better if someone can suggest a better graphical/visualization/plot option to display these two multivariate datasets so that the differences are conspicuous enough. With line graphs the visualization is not clear enough because the same values overlap on top of each other.
>
> Following are my scenarios.
>
> SCENARIO A
>
> x= [0, 0.05, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1]
> y1= [0, 0, 0.02, 0.01, 0, 0, 0, 0, 0, 0, 0, 0]
> y2= [0.01, 0, 0.05, 0.1, 0.19, 0.6, 0.87, 1, 1, 1, 1, 1]
> y3= [0.02, 0.05, 0.2, 0.69, 0.99, 1, 1, 1, 1, 1, 1, 1]
> y4= [0.02, 0.12, 0.25, 0.97, 1, 1, 1, 1, 1, 1, 1, 1]
> y5= [0, 0.12, 0.68, 1, 1, 1, 1, 1, 1, 1, 1, 1]
> y6= [0, 0.2, 0.84, 1, 1, 1, 1, 1, 1, 1, 1, 1]
> y7= [0.01, 0.49, 0.97, 1, 1, 1, 1, 1, 1, 1, 1, 1]
> y8= [0.01, 0.51, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
> y9= [0.01, 0.82, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
> y10= [0, 0.84, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
>
> SCENARIO B
>
> x= [0, 0.05, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1]
> y1= [0.01, 0.03, 0.01, 0, 0.01, 0, 0, 0, 0, 0, 0, 0]
> y2= [0.01, 0.07, 0.04, 0.13, 0.23, 0.5, 0.92, 1, 1, 1, 1, 1]
> y3= [0.01, 0.03, 0.2, 0.61, 0.99, 1, 1, 1, 1, 1, 1, 1]
> y4= [0.02, 0.06, 0.4, 0.99, 1, 1, 1, 1, 1, 1, 1, 1]
> y5= [0, 0.24, 0.61, 1, 1, 1, 1, 1, 1, 1, 1, 1]
> y6= [0, 0.26, 0.88, 1, 1, 1, 1, 1, 1, 1, 1, 1]
> y7= [0, 0.51, 0.99, 1, 1, 1, 1, 1, 1, 1, 1, 1]
> y8= [0.02, 0.64, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
> y9= [0.02, 0.87, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
> y10= [0.01, 0.94, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]

The simplest way may be to use a widget_table with cell colors, then take a screen capture.

Jim P.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Writing exp(-j*!pi) in IDL
Next Topic: Opening and reading CEOS format and 8 bits

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:54:29 PDT 2025

Total time taken to generate the page: 0.00542 seconds