Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 771 Bytes

README.md

File metadata and controls

27 lines (19 loc) · 771 Bytes

Ternary map by Python (test)

This repository contains a Jupyter Notebook for analyzing and visualizing data using ternary plots.

Contents

  • ternary_fig_share.ipynb: The main Jupyter Notebook containing the code and explanations for creating ternary plots.

Prerequisites

To run the notebook, you will need the following Python packages installed:

  • numpy
  • pandas
  • matplotlib
  • seaborn
  • ternary
  • cartopy
  • gdal

Data prepare

Prepare your data for ternary plotting.

  • The dataset should contain three TIFF files representing the proportions of three factors (summing to 1).
  • boundaries.shp (省.shp and 十段线.shp in notebook)

Note

Please note that the map and legend are drawn separately and need to be combined later.