[Matplotlib-users] Graph similiar to necked_tensile_specimen.png

Eric Firing efiring at hawaii.edu
Thu Mar 10 23:33:42 EST 2016


On 2016/03/10 2:40 AM, sprobst76 wrote:
> Hello,
>
> thank you. However as I mentioned before I am looking for the code for the
> image *necked_tensile_specimen.png* and not for the code of the
> interpolation example.
>
> The image *necked_tensile_specimen.png* is given as sample data (as finished
> PNG) in the matplotlib examples. So far I did not find the code to produce
> this image
> <https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/mpl-data/sample_data/necked_tensile_specimen.png>
> .
>
> As I plan to generate a plot similar to *necked_tensile_specimen.png* it
> would be perfect to get the code for a necked 2D map!
>

I don't know where the exact code is, but it looks like it is produced 
using pcolormesh with Gouraud shading, as in this example:
http://matplotlib.org/examples/pylab_examples/quadmesh_demo.html

Eric



More information about the Matplotlib-users mailing list