Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

ex08.rst 786 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
  1. .. _example_08:
  2. (8) A 3-D histogram
  3. -------------------
  4. The program :doc:`plot3d </plot3d>` allows us to plot
  5. three-dimensional symbols, including columnar plots. As a simple
  6. demonstration, we will convert a gridded netCDF of bathymetry into an
  7. ASCII *xyz* table and use the height information to draw a 2-D
  8. histogram in a 3-D perspective view. We also use the height information
  9. to set to color of each column via a CPT file. Our gridded bathymetry file is a remote file
  10. called ``guinea_bay.nc`` and covers the region from 0 to 5 E and 0 to 5 N. Depth ranges
  11. from -5000 meter to sea-level. We produce the Figure by running this script:
  12. .. literalinclude:: /_verbatim/ex08.txt
  13. :language: bash
  14. .. figure:: /_images/ex08.*
  15. :width: 500 px
  16. :align: center
  17. A 3-D histogram.
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...