Graph similiar to necked_tensile_specimen.png

Hello,

in the examples I found a graph which is similar to a graph I want to have.
However the example is only given as png and I want to have the code.

The example is the necked_tensile_specimen.pngimage of the following example
http://matplotlib.org/examples/images_contours_and_fields/interpolation_none_vs_nearest.html

There is a 2D map which is compressed in the center. Does anybody has the
code for the example?

Thank you & best regards
       Stefan

···

--
View this message in context: http://matplotlib.1069221.n5.nabble.com/Graph-similiar-to-necked-tensile-specimen-png-tp46752.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

Hi Stefan,

Looks like there is a small link to the source code near the top (right
below "interpolation_none_vs_nearest.py").

-Jeff

···

On Mon, Feb 15, 2016 at 12:23 AM, sprobst76 <StefanProbst at gmx.net> wrote:

Hello,

in the examples I found a graph which is similar to a graph I want to have.
However the example is only given as png and I want to have the code.

The example is the necked_tensile_specimen.pngimage of the following
example

http://matplotlib.org/examples/images_contours_and_fields/interpolation_none_vs_nearest.html

There is a 2D map which is compressed in the center. Does anybody has the
code for the example?

Thank you & best regards
       Stefan

--
View this message in context:
http://matplotlib.1069221.n5.nabble.com/Graph-similiar-to-necked-tensile-specimen-png-tp46752.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users at python.org
https://mail.python.org/mailman/listinfo/matplotlib-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-users/attachments/20160309/002083a6/attachment.html>

Hi Jeff,

thank you for the reply. However I am not looking for the finished PNG.

I am interested how the image necked_tensile_specimen.png was created. If it
was created with matplotlib, I would like to have the code.

Best regards
         Stefan

···

--
View this message in context: http://matplotlib.1069221.n5.nabble.com/Graph-similiar-to-necked-tensile-specimen-png-tp46752p46863.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

The source code is also provided at the bottom of the page.

···

On Wed, Mar 9, 2016 at 10:08 AM, Jeff Blackburne <jblackburne at gmail.com> wrote:

Hi Stefan,

Looks like there is a small link to the source code near the top (right
below "interpolation_none_vs_nearest.py").

-Jeff

On Mon, Feb 15, 2016 at 12:23 AM, sprobst76 <StefanProbst at gmx.net> wrote:

Hello,

in the examples I found a graph which is similar to a graph I want to
have.
However the example is only given as png and I want to have the code.

The example is the necked_tensile_specimen.pngimage of the following
example

http://matplotlib.org/examples/images_contours_and_fields/interpolation_none_vs_nearest.html

There is a 2D map which is compressed in the center. Does anybody has the
code for the example?

Thank you & best regards
       Stefan

--
View this message in context:
http://matplotlib.1069221.n5.nabble.com/Graph-similiar-to-necked-tensile-specimen-png-tp46752.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users at python.org
https://mail.python.org/mailman/listinfo/matplotlib-users

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users at python.org
https://mail.python.org/mailman/listinfo/matplotlib-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-users/attachments/20160309/e16da5db/attachment.html>

Le mercredi 09 mars 2016, Paul Hobson a ?crit :

The source code is also provided at the bottom of the page.
?
> >
> > http://matplotlib.org/examples/images_contours_and_fields/interpo
> > lation_none_vs_nearest.html

Hi,
Note that the pdf file attached to that page is cropped, i.e. it does
not render all the figure (at least as visible in evince 3.18 on
debian).

And for the image_demo* examples in the same folder, the images are
poorly rendered (huge visible pixels)...

Maybe there is some tuning to do on the configuration of the export to
pdf....

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!

Thank you again in advance!

Best regards
            Stefan

···

--
View this message in context: http://matplotlib.1069221.n5.nabble.com/Graph-similiar-to-necked-tensile-specimen-png-tp46752p46870.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

Whoa, you are right that the PDF is badly scaled. Both the Firefox pdf
viewer and an older evince has it significantly zoomed in.

As for the huge visible pixels, that is the point of this demonstration. It
demonstrates the subtle difference between the "none" and "nearest" options
for imshow.

···

On Thu, Mar 10, 2016 at 3:49 AM, Fabrice Silva <silva at lma.cnrs-mrs.fr> wrote:

Le mercredi 09 mars 2016, Paul Hobson a ?crit :
> The source code is also provided at the bottom of the page.
>
> > >
> > > http://matplotlib.org/examples/images_contours_and_fields/interpo
> > > lation_none_vs_nearest.html

Hi,
Note that the pdf file attached to that page is cropped, i.e. it does
not render all the figure (at least as visible in evince 3.18 on
debian).

And for the image_demo* examples in the same folder, the images are
poorly rendered (huge visible pixels)...

Maybe there is some tuning to do on the configuration of the export to
pdf....
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users at python.org
https://mail.python.org/mailman/listinfo/matplotlib-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-users/attachments/20160310/89d37b3a/attachment-0001.html>

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

···

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!

It seems the graphic may come from http://clearplot.readthedocs.org/en/latest/
The author can certainly tells you how he did it (https://github.com/breedlun/clearplot)

Nicolas

···

On 11 Mar 2016, at 05:33, Eric Firing <efiring at hawaii.edu> wrote:

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

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users at python.org
https://mail.python.org/mailman/listinfo/matplotlib-users