Does matplotlib have a convenient way to produce a histogram of
categorical (possibly non-numeric) values? I can do it with bar(),
but there's a fair amount of boilerplate involved (calculating the
frequencies, counting the number of distinct values, etc.). This
seems like it would be
Try tricontourf; I've attached an example. Most of the example code is
manipulating your input data and calculating the connectivity of your grid.
I hope this helps,
Ian Thomas
import matplotlib.pyplot as plt
import numpy as np
x,y1,y2,y3,y4,stress = np.loadtxt('data.txt', skiprows=2, delimiter=