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

Home » Public Forums » archive » How to make scatter plot with colorbar 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 to make scatter plot with colorbar in IDL? [message #85429 is a reply to message #85428] Fri, 02 August 2013 09:20 Go to previous messageGo to previous message
atmospheric physics is currently offline  atmospheric physics
Messages: 121
Registered: June 2010
Senior Member
Hello David,

I was expecting a response from you. Thanks for writing. I am not so dump in IDL and not required so quickly to purchase a consulting contract. I know that my objective is something difficult but all I require here is to get your or others suggestions in realizing my task. I enjoy learning things and not that I just agree for purchasing something in a hurry to finish my task.

First I will try to project the google map to meter space and then come up here again for going to the next step.

My ultimate goal is to overlay the following type scatter plot with colorbar on the static google map:

file:///mnt/satyr/home/madhavan/44040.jpg (I have made the above figure in MATLAB)

Is it not possible to divide the 256 colors into 1000 or 1200 divisions as shown in the figure? May be my wording is wrong by I mean to say through the figure. Don't be panic!!!

Sorry for any inconvenience,
Thanks



On Friday, August 2, 2013 5:44:22 PM UTC+2, David Fanning wrote:
> Madhavan Bomidi writes:
>
>
>
>> Can anyone provide me a sample / rough code where I can plot Figure 1 above and Figure 2 below on the same figure. Ultimate goal for me to make a movie while I make each figure for each time step. I could succeed making this in MATLAB. Please advise me with some suggestions or sample examples to realize my figures & thus movie.
>
>
>
> Do you have enough interest to purchase a $50 consulting contract from
>
> the Coyote Store? I'm just about to head off on a family vacation, but I
>
> expect to be eliminated from the 1st Annual Richie Seemueller Black-
>
> Light, Glow-in-the-Dark Family Ping Pong Tournament early and will
>
> probably have some time to put something together. (I taught the damn
>
> kids how to play and now they show NO respect! If I could just *see* the
>
> ball, I could probably beat them.)
>
>
>
> As you probably have already discovered you are doing it "all wrong".
>
> :-)
>
>
>
> Distances are probably linear in the small lat/lon range you are using,
>
> but generally it is must easier to navigate images when you do it in
>
> projected meter space, rather than lat/lon space. There is plenty of
>
> code in the Coyote Library to help with this (e.g., cgGoogleMapWidget),
>
> but you are putting things together in a fairly novel way. At the very
>
> least, you are going to have to set up a coordinate system for your
>
> image (maybe just using the [XY]Range keywords on cgImage) and then put
>
> the scatter plot on using the /OVERPLOT keyword.
>
>
>
>> My variable data ranges from 0 to 1200.So, my colorbar is also
>
>> required to have 1201 divisions.
>
>
>
> That's not going to happen. :-)
>
>
>
> Colorbars generally have 256 colors, tops. Your eye wouldn't be able to
>
> distinguish any more colors than this, probably, unless you were
>
> planning to use one of the monitors on Times Square to display the color
>
> bar.
>
>
>
> Cheers,
>
>
>
> David
>
> --
>
> David Fanning, Ph.D.
>
> Fanning Software Consulting, Inc.
>
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
>
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: total() vs. rebin() speed for 1D averaging or integration
Next Topic: How to compare two different Raster datasets with different resolutions

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

Current Time: Wed Oct 08 19:51:06 PDT 2025

Total time taken to generate the page: 0.00458 seconds