Skip to content

Commit

Permalink
README REDO (based on proposed structure in Issue cnerg#2): master RE…
Browse files Browse the repository at this point in the history
…ADME updated, directory README added
  • Loading branch information
opotowsky committed Jun 25, 2020
1 parent 67a7719 commit 7d8ddef
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,5 @@
Scripts, settings and environment options for better research and analysis

## tri_heatmap: Heatmaps in matplotlib
This notebook gives some guidance on plotting 2D heatmaps in matplotlib given
the existence of X, Y, Z experimental data. This uses triangulation to form a
triangular grid and then applies tricontourf (or tripcolor) to get the surface
plot with a colorbar.
This directory includes a notebook that gives some guidance on plotting 2D
heatmaps in matplotlib given the existence of X, Y, Z experimental data.
12 changes: 12 additions & 0 deletions tri_heatmap/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Heatmaps in matplotlib
Given X, Y, Z experimental data suited to heatmap plotting, one can follow the
steps in this notebook to get a surface plot with a colorbar. This notebook
shows three varieties of surface plots using toy data.

For all plots, it first uses triangulation on the X, Y data to form a
triangular grid (and normalizes the colors to the z range). There are three
methods used to plot the surface:
1. tricontourf
2. tripcolor with flat shading
3. tripcolor with Gourard shading
Note that the color bar is only smoothed with tripcolor.

0 comments on commit 7d8ddef

Please sign in to comment.