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

Home » Public Forums » archive » 2D histogram color plot
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
2D histogram color plot [message #41398] Mon, 25 October 2004 09:31 Go to next message
cwodell is currently offline  cwodell
Messages: 2
Registered: October 2004
Junior Member
Hi everyone,

I need to make a scatter plot between 2 variables, x and y. Problem
is that the number of (x,y) pairs is VERY large, so you can't really
see what's going on in the scatter plot. I therefore would like to
make color scatter plot, where the color in a certain x,y bin is
related to the density of points in that bin. I see that hist_2d can
create the physical array that I need, but then you need tv or tvscl
or something to plot it. Does anyone have a program that will do all
of this in one go? Ie, call hist_2d, and then make a nice plot?

Thanks,
Chris
Re: 2D histogram color plot [message #94537 is a reply to message #41398] Wed, 28 June 2017 18:08 Go to previous messageGo to next message
laura.hike is currently offline  laura.hike
Messages: 87
Registered: September 2013
Member
Hi,

I basically have the same problem, but since this question was first asked/answered in 2004, I was wondering whether there is a native IDL function available now to make this kind of plot. I also ran hist_2d, but have been trying use IMAGE to make the plot, but it's not working. (The array is 20x20, so the plot comes out tiny no matter what I do.)

Thanks,

Laura
Re: 2D histogram color plot [message #94538 is a reply to message #94537] Wed, 28 June 2017 18:11 Go to previous message
laura.hike is currently offline  laura.hike
Messages: 87
Registered: September 2013
Member
Of course I would also like to have labeled axes, etc., on the plot.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Check numerical derivatives
Next Topic: work with MODIS dataset on idl

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

Current Time: Wed Oct 08 15:17:00 PDT 2025

Total time taken to generate the page: 0.00480 seconds