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

ex10.rst 1.1 KB

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
23
24
25
26
  1. .. _example_10:
  2. (10) A geographical bar graph plot
  3. ----------------------------------
  4. Our next and perhaps most business-like example presents a
  5. three-dimensional bar graph plot showing the geographic distribution of
  6. all the languages of the world. The input data
  7. was taken from `Ethnologue <http://www.ethnologue.com/>`_. We decide to plot a 3-D multi-band column
  8. centered on each continent with a height that is proportional to the
  9. languages used. We choose a plain
  10. linear projection for the basemap and add the multi-band columns and text on top.
  11. The different bands in the columns indicate how commonly the languages are used, from institutional languages to
  12. languages threatened by extinction. We use :doc:`gmtmath </gmtmath>` to sum up the total languages per continent.
  13. The script also shows how to effectively use transparency of the boxes around the numbers
  14. and in the shade surrounding the legend.
  15. Our script that produces Figure 10 reads:
  16. .. literalinclude:: /_verbatim/ex10.txt
  17. :language: bash
  18. .. figure:: /_images/ex10.*
  19. :width: 500 px
  20. :align: center
  21. Geographical bar graph.
Tip!

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

Comments

Loading...