Hi Daniel, this worked for me in IJulia... using PyPlot using PyCall
img = imread("ada.png"); fig = plt.figure() ax = plt.Axes(fig,[0,0,1,1]) fig[:add_axes](ax) ax[:set_axis_off]() ax[:imshow](img,aspect="auto") ax[:set_aspect](0.5) plt.show() Adrian. On Sun, Apr 13, 2014 at 12:08 AM, Daniel Carrera <dcarr...@gmail.com> wrote: > Hello, > > I use PyPlot for my work. I normally manage to figure out how to do things > by reading the Matplotlib documentation, but this time I am really stuck. I > want to make a plot that has an unusual aspect ratio. I need it to be four > times taller than it is wide (the plot is a 2D image). The candidate > solution I found is the "set_aspect()" function from Matplotlib: > > http://matplotlib.org/examples/pylab_examples/aspect_loglog.html > > https://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg16078.html > > http://stackoverflow.com/questions/7965743/python-matplotlib-setting-aspect-ratio > http://matplotlib.org/api/axes_api.html#matplotlib.axes.Axes.set_aspect > > > So, based on this, I looked for a function called "set_aspect()" or > "aspect()", but there is none. I looked for an "aspect" parameter for the > "axis()" command, but there does not appear to be one (hard to say for sure > because "axis()" doesn't give an error if you pass a parameter it doesn't > know about. > > Can anyone help me? > > Cheers, > Daniel. >