Hi guys,

I'm having problems creating a plot. I attached a crude version that I drew
with Gimp to show what I actually want to do with matplotlib 
http://www.nabble.com/file/p25667058/example2.png example2.png . Basically
it boils down to placing an axes instance on top of an existing axes with an
imshow already on it. In the end I would like to have a kind of lineout of
the values of the array of the imshow along an x=constant & y=constant line.
So my pathetic (and unsuccesful attempt) is something like:

import matplotlib.pyplot as p
fig = p.figure(1)

ax1_box = [0.1, 0.1, 0.5, 0.5]
ax2_box = [0.1, 0.1, 0.5, 0.1]

ax1 = fig.add_axes( ax1_box )
ax1.imshow(data)

ax2 = fig.add_axes( ax2_box, frameon=False)
ax2.plot( data[5 , :] )                              #lineout of 6th row for
example
p.setp(ax2b, xticks=[], yticks=[])


My problems:
as I don't want to add axis labels ax2 data plot is wider than ax1 data
plot.
when i resize the window ax1 and ax2 move relative to another.
I hope it's possible to also do the lineput along the vertical (y) axis.
I'm too stupid to figure this out myself.

Thanks a lot in advance for any suggestions :)

Raphael
-- 
View this message in context: 
http://www.nabble.com/placing-a-plot-on-top-of-an-imshow-tp25667058p25667058.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to