Re: [Matplotlib-users] aligning plot width with imshow/contour width

2014-11-19 Thread zhangtao
I use matolotlib 1.3.1 on windows, the code works fine here. what version of matolotlib are you using? Or, set space to 0, see what happens. -- View this message in context: http://matplotlib.1069221.n5.nabble.com/aligning-pl

Re: [Matplotlib-users] aligning plot width with imshow/contour width

2014-11-18 Thread zhangtao
from matplotlib.pylab import * fig = plt.figure(1) fig.clf() data = np.random.random((3,3)) xaxis = np.arange(0,3) yaxis = np.arange(0,3) ax1 = fig.add_subplot(211) im = ax1.imshow(data, interpolation='none') c = ax1.contour(xaxis, yaxis, data, colors='k') # # draw ax1 first

Re: [Matplotlib-users] List of markers

2014-11-14 Thread zhangtao
In your case don't use colorbar() function, You can add a customized colorbar. See these examples: http://matplotlib.org/examples/api/colorbar_only.html -- View this message in context: http://matplotlib.1069221.n5.nabble.com/List-of-m

Re: [Matplotlib-users] Problem with ticklabel

2014-11-14 Thread zhangtao
I think that "1e4" is a offset text, and not a part of ax2's yticklabels, so any color or font settings for yticklabels will not affect it. It's seems the offset text only uses matplotlib's default rcParams to draw, so my solution is to change rcParams. Try add these 4 lines before your plot cod

[Matplotlib-users] ax.annotate in 1.4.2 behave different from 1.3.1

2014-10-29 Thread zhangtao
With the sample code below, in matplotlib 1.3.1, the Text are placed at top left, which is like the docs said, "/If a ‘points’ or ‘pixels’ option is specified, values will be added to the bottom-left and if negative, values will be subtracted from the top-right/". http://matplotlib.org/api/text_api