I would suggest to try PyPlot, it uses matplotlib of python.
using PyPlot
imshow(randn(10,10))



On Monday, May 26, 2014 at 4:36:45 PM UTC-4, Yuri Vishnevsky wrote:
>
> Hi all,
>
> I'm playing around with some image-related stuff in Julia and am using the 
> method recommended here 
> <http://nbviewer.ipython.org/url/jdj.mit.edu/~stevenj/IJulia%20Preview.ipynb> 
> to 
> get image data to render as an actual image inside of an IJulia notebook.
>
> I'd like to extend Julia's multimedia display functionality to handle 
> arrays of images (here's 
> <http://blog.wolfram.com/data/uploads/2008/11/imageprocessing5.jpg> how 
> Mathematica does it) and am trying to figure out the best way to do it.
>
> This is what I've written so that individual array elements (of type Png) 
> display as images:
>
> type Png
>  data
> end
> Base.writemime(io::IO, ::MIME"image/png", x::Png) = write(io, x.data)
>
> The only way I've been able to get arrays to render as images at all has 
> been this:
>
> Base.writemime(io::IO, ::MIME"text/plain", x::Vector{Png}) = for i in x 
> display(i) end
>
> which seems very wrong, conceptually, but does have the benefit of 
> actually working.
>
> If anyone has thoughts on the right way to approach this question, I'd 
> love to hear them.
>
> Cheers,
> Yuri
>

Reply via email to