Skip to content

Commit 7d8ddef

Browse files
committed
README REDO (based on proposed structure in Issue cnerg#2): master README updated, directory README added
1 parent 67a7719 commit 7d8ddef

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,5 @@
22
Scripts, settings and environment options for better research and analysis
33

44
## tri_heatmap: Heatmaps in matplotlib
5-
This notebook gives some guidance on plotting 2D heatmaps in matplotlib given
6-
the existence of X, Y, Z experimental data. This uses triangulation to form a
7-
triangular grid and then applies tricontourf (or tripcolor) to get the surface
8-
plot with a colorbar.
5+
This directory includes a notebook that gives some guidance on plotting 2D
6+
heatmaps in matplotlib given the existence of X, Y, Z experimental data.

tri_heatmap/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Heatmaps in matplotlib
2+
Given X, Y, Z experimental data suited to heatmap plotting, one can follow the
3+
steps in this notebook to get a surface plot with a colorbar. This notebook
4+
shows three varieties of surface plots using toy data.
5+
6+
For all plots, it first uses triangulation on the X, Y data to form a
7+
triangular grid (and normalizes the colors to the z range). There are three
8+
methods used to plot the surface:
9+
1. tricontourf
10+
2. tripcolor with flat shading
11+
3. tripcolor with Gourard shading
12+
Note that the color bar is only smoothed with tripcolor.

0 commit comments

Comments
 (0)