Projects/laydi
Projects
/
laydi
Archived
7
0
Fork 0

Removed the title of the plot from the canvas, as it is now shown above

the canvas as well. Updated the matplotlib axis limits to reflect this and
allow more space for the plot.
This commit is contained in:
Einar Ryeng 2006-10-12 14:56:53 +00:00
parent 92a8a819e8
commit ded2faaf2c
2 changed files with 9 additions and 9 deletions

View File

@ -191,10 +191,10 @@ figure.edgecolor : white # figure edgecolor
# The figure subplot parameters. All dimensions are fraction of the
# figure width or height
figure.subplot.left : 0.1 # the left side of the subplots of the figure
figure.subplot.right : 0.975 # the right side of the subplots of the figure
figure.subplot.bottom : 0.1 # the bottom of the subplots of the figure
figure.subplot.top : 0.90 # the top of the subplots of the figure
figure.subplot.left : 0.04 # the left side of the subplots of the figure
figure.subplot.right : 0.999 # the right side of the subplots of the figure
figure.subplot.bottom : 0.04 # the bottom of the subplots of the figure
figure.subplot.top : 0.999 # the top of the subplots of the figure
figure.subplot.wspace : 0.1 # the amount of width reserved for blank space between subplots
figure.subplot.hspace : 0.1 # the amount of height reserved for white space between subplots

View File

@ -344,7 +344,7 @@ class LineViewPlot(Plot):
self.dataset = dataset
Plot.__init__(self, name)
self.ax = self.fig.add_subplot(111)
self.ax.set_title(self.get_title())
#self.ax.set_title(self.get_title())
self.current_dim = self.dataset.get_dim_name(major_axis)
if len(self._data.shape)==2 and not minor_axis:
minor_axis = major_axis-1
@ -442,7 +442,7 @@ class ScatterMarkerPlot(Plot):
self.xaxis_data = dataset_1._array[:, x_index]
self.yaxis_data = dataset_2._array[:, y_index]
self.ax.plot(self.xaxis_data, self.yaxis_data, 'o', markeredgewidth=0, markersize=s)
self.ax.set_title(self.get_title())
#self.ax.set_title(self.get_title())
self.add(self.canvas)
self.canvas.show()
@ -507,7 +507,7 @@ class ScatterPlot(Plot):
self.fig.colorbar(sc,ticks=[], fraction=.05)
self.ax.axhline(0, color='k', lw=1., zorder=1)
self.ax.axvline(0, color='k', lw=1., zorder=1)
self.ax.set_title(self.get_title())
#self.ax.set_title(self.get_title())
# collection
self.coll = self.ax.collections[0]