Skip to content

RuiSu-gif/ternary_map_bypython

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

Ternary map by python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published