[CentralOH] Python Graphics Library(ies)

iynaix iynaix at gmail.com
Tue Feb 11 02:51:34 CET 2014


1)

As Eric has already mentioned, imshow from matplotlib does what you need.

You might want to check this video from PyData 2013 out:

http://vimeo.com/63258721

Davin Potts goes over the basics of scikit image and does exactly what you
want at around the 10 minute mark or so. The rest of the video is
fascinating and well worth a watch as well.

2)

A possible solution for pdfs is to use the 'convert' command from
ImageMagick,e.g. convert in.jpg out.pdf

It isn't python, but you could whip up some bash in a jiffy.

Cheers,
XY


On Tue, Feb 11, 2014 at 2:18 AM, Eric Floehr <eric at intellovations.com>wrote:

>  From a two-dimensional array of monochrome intensities,
>>
>> 1. I need to view pictures within ipython notebook, and
>>
>
> Matplotlib's imshow() function[1] can take an 2D array-like and plot
> it[2]. I think it should do what you need.
>
>
> 2. generate PDF files of the images.
>>
>
> Matplotlib has a PDF backend that might help[3].
>
>
> [1] http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.imshow
>
> [2] http://matplotlib.org/users/image_tutorial.html
>
> [3]
> http://matplotlib.org/faq/howto_faq.html#save-multiple-plots-to-one-pdf-file
>
>
>
> _______________________________________________
> CentralOH mailing list
> CentralOH at python.org
> https://mail.python.org/mailman/listinfo/centraloh
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/centraloh/attachments/20140211/973b1990/attachment-0001.html>


More information about the CentralOH mailing list