Re: [Matplotlib-users] Change color for fill_between to contour plot

2011-07-09 Thread Ian Thomas
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,

[Matplotlib-users] Histogram of categorical values

2011-07-09 Thread Brendan Barnwell
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