|
From: John H. <jdh...@ac...> - 2007-01-02 15:30:10
|
>>>>> "Petr" == Petr Danecek <da...@uc...> writes:
Petr> Hello, i'd like to ask two questions:
Petr> 1) Is it possible to control amount of space between title
Petr> and graph?
The y value of the title instance is in axes coordinates, so 1 is the
top of the axes, and numbers greater than 1 are further above the
top. So you can do
t.set.y(1.1)
where t is the matplotlib.text.Text instance returned from pylab
'title' or from matplotlib.axes.Axes.set_title (both do the same
thing).
Alternatively, you can set the title instance properties from the axes
instance
ax = fig.add_subplot(111)
ax.title.set_y(1.1)
Petr> 2) When set_aspect() is used, the size of colorbar does not
Petr> respect y-dimension of the graph. (See the attached
Petr> example.) Is it possible to set the size of the colorbar
Petr> directly?
One of the examples shows how to do this if I recall correctly, but I
don't remember which one. Eric Firing wrote it so I'm sure he'll be
along shortly to point you to the light. Eric -- perhaps we should
also add a snippet to the colorbar docstring since this is a common
request.
JDH
|