X

NV5 Geospatial Blog

Each month, NV5 Geospatial posts new blog content across a variety of categories. Browse our latest posts below to learn about important geospatial information or use the search bar to find a specific topic or author. Stay informed of the latest blog posts, events, and technologies by joining our email list!



New ENVI Agent, IDL Agent, and GeoAgent Quick Guides

New ENVI Agent, IDL Agent, and GeoAgent Quick Guides

6/9/2026

The recent release of ENVI® Agent, IDL® Agent, and GeoAgent™ revolutionize how users interact with geospatial software. These agentic AI applications act as partners to plan, simplify, and execute complex workflows. Knowing where to start can be challenging for new users. To this end, we developed three new quick guides to... Read More >

Introducing NISAR Data Support

Introducing NISAR Data Support

6/5/2026

The release of ENVI® SARscape 6.3 in April 2026 includes preliminary support for NASA-ISRO SAR (NISAR) data. The NISAR mission is a joint Earth-observing satellite project between NASA and the Indian Space Research Organization designed to monitor changes in the planet’s land and ice surfaces using advanced radar imaging. It... Read More >

Monitoring Illegal Mining in the Amazon: Turning Persistent Data Into Actionable Insight

Monitoring Illegal Mining in the Amazon: Turning Persistent Data Into Actionable Insight

5/28/2026

Illegal mining over decades has constituted one of the most persistent and complex socio-environmental problems in the Brazilian Amazon. In recent years, with the increasingly intensive use of mechanized extraction, the associated environmental impacts—such as deforestation, intense soil disturbance, river siltation, and mercury... Read More >

From Answers to Action: Why ENVI and IDL Agents Go Beyond General AI

From Answers to Action: Why ENVI and IDL Agents Go Beyond General AI

4/20/2026

As generative AI tools like Claude and Gemini continue to gain traction, many organizations are asking the same question: Can general purpose AI actually support real geospatial workflows, or does it stop at surface-level answers? That question was front and center in our recent webinar, Meet Your New Partners in Science: ENVI... Read More >

Mapping Earthquake Deformation in Taiwan With ENVI

Mapping Earthquake Deformation in Taiwan With ENVI

12/15/2025

Unlocking Critical Insights With ENVI® Tools Taiwan sits at the junction of major tectonic plates and regularly experiences powerful earthquakes. Understanding how the ground moves during these events is essential for disaster preparedness, public safety, and building community resilience. But traditional approaches like field... Read More >

1345678910Last
«June 2026»
SunMonTueWedThuFriSat
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011
19895 Rate this article:
No rating

Gum Drop Plot

Anonym

On our IDL page, there is an image that displays a plot made out of a series of colorful spheres. Based on my research, this plot was generated a long time ago most likely using IDL Object Graphics.

I wanted to generate a similar plot using the IDL 8 Graphics Functions. To do this, I used the SCATTERPLOT3D routine, the ORB object (provided with the IDL distribution but not documented), and the POLYLINE routine.  An example of the output is shown below:

 

 

The data used to produce this plot is randomly generated. Therefore, if you run the code, the output will look different each time. The code used to generate this plot is shown below:

pro gum_drop

  compile_opt idl2
 
  ;Generate some random data to
  ;plot
  x = RANDOMU(seed, 10)
  y = RANDOMU(seed, 10)
  z = RANDOMU(seed, 10)
 
  ;Draw an initail scatter
  ;plot with symbolsize of 1    
  scat_plot = scatterplot3d(x,y,z,RGB_TABLE=2, $
              SYM_OBJECT=orb(),$ ;use an orb object as symbol
              SYM_SIZE=1, $ ;Set symbol size to 1
              MAGNITUDE=z, $ ;change color with Z value
              /SYM_FILLED, clip=0,$ ;Fill symbols and no clipping
              xticklen=0, yticklen=0, zticklen=0, $ ;remove ticks
              xsubticklen=0, ysubticklen=0, zsubticklen=0, $ ;remove ticks
              xmajor=5, ymajor=5, $ ;Only use 5 ticks on each axis
              xrange=[0,1], yrange=[0,1],$ ;force the x and y range
              ASPECT_RATIO=1.0,$  ;Don't distort the image
              DEPTH_CUE=[0,4], $ ;Make things farther away fade
              AXIS_STYLE=2, $  ;Make the axis a box
              background_color = 'light yellow')
 
 
  ;Draw 9 more plots where the symbol size
  ;changes each plot
  for ind = 2L, 10 do begin
   z = RANDOMU(seed, 10)
   scat_plot_loop = scatterplot3d(x,y,z,$
      RGB_TABLE=2, SYM_OBJECT=orb(),SYM_SIZE=ind/2, $
      MAGNITUDE=z, /SYM_FILLED, clip=0, /OVERPLOT)
  endfor

  ;Generate polygons to create a grid
  ;on the Z-Y and Z-X planes
  x = [0.25,0.25,0.5,0.5,0.75,0.75]
  y = [0.999,0.999,0.999,0.999,0.999,0.999]
  z = [0.00,1.00,0.0,1.0,0.00,1.00]

  ;Connect every 2 points in polygon data
  ;with lines using the CONNECTIVITY keyword

  con = [2,0,1,2,2,3,2,4,5]

  poly0 = polyline(x,y,z,/DATA,CONNECTIVITY=con)
 
  temp = x
  x=y
  y=temp
 
  poly1 = polyline(x,y,z,/DATA,CONNECTIVITY=con)
 
  temp = z
  z = y
  y = temp
 
  poly2 = polyline(x,y,z,/DATA,CONNECTIVITY=con)
 
  temp = x
  x=y
  y=temp
 
  poly3 = polyline(x,y,z,/DATA,CONNECTIVITY=con)
 
  ;Remove the axis from the front of
  ;the plot
  ax = scat_plot.AXES
  ax[2].hide=1
  ax[6].hide=1
  ax[7].hide=1
  ax[3].ticklen=1.0
  ax[1].ticklen=1.0
 
end

Please login or register to post comments.