d.rast.leg.html 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <h2>DESCRIPTION</h2>
  2. <em>d.rast.leg</em> shows a raster map along with its legend.
  3. It first clears the entire screen, then divides it
  4. into a main (left) and a minor (right) frames, and displays a raster
  5. map in the main frame and the map legend in the minor frame. The main
  6. frame remains active when the program finishes.
  7. <h2>NOTES</h2>
  8. The legend may be flipped with the <b>-f</b> flag.
  9. <p>If the <b>lines</b> parameter is not given then the legend frame will
  10. display as many lines as number of categories in the map, otherwise, it
  11. will display the first <b>lines</b> minus 1 categories with the
  12. rest being truncated.
  13. <p>The user may adjust the <b>lines</b> parameter or
  14. the size of graphics window to get an appropriate result.
  15. <p>The user may specify a second raster map with the <b>raster</b> parameter from
  16. which the legend is generated. This is useful to visualize (time) series of
  17. raster maps with a common static legend instead of the default dynamic legend.
  18. <p>To remove all frames when clearing the display, use
  19. <tt>d.erase -f</tt>.
  20. <h2>EXAMPLE</h2>
  21. In this example, the polar diagram of the 'aspect' angle map in the
  22. North Carolina sample dataset location is generated:
  23. <div class="code"><pre>
  24. g.region raster=landclass96 -p
  25. d.rast.leg landclass96
  26. </pre></div>
  27. <h2>SEE ALSO</h2>
  28. <em>
  29. <a href="d.legend.html">d.legend</a>,
  30. <a href="d.erase.html">d.erase</a>,
  31. <a href="d.rast.html">d.rast</a>
  32. </em>
  33. <h2>AUTHORS</h2>
  34. Jianping Xu, Scott Madry, Rutgers University<br>
  35. Markus Neteler
  36. <p>
  37. <i>Last changed: $Date$</i>