From ded2faaf2c3e70f7496e27ac79a9f56d79df942a Mon Sep 17 00:00:00 2001 From: einarr Date: Thu, 12 Oct 2006 14:56:53 +0000 Subject: [PATCH] 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. --- matplotlibrc | 12 ++++++------ system/plots.py | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/matplotlibrc b/matplotlibrc index 31ccdc1..1dcd78e 100644 --- a/matplotlibrc +++ b/matplotlibrc @@ -139,7 +139,7 @@ axes.grid : True # display grid or not axes.titlesize : 12 # fontsize of the axes title axes.labelsize : 10 # fontsize of the x any y labels axes.labelcolor : black -axes.axisbelow : True # whether axis gridlines and ticks are below +axes.axisbelow : True # whether axis gridlines and ticks are below # the axes elements (lines, text, etc) @@ -191,11 +191,11 @@ 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.wspace : 0.1 # the amount of width reserved for blank space between subplots +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 diff --git a/system/plots.py b/system/plots.py index f614626..bc61973 100644 --- a/system/plots.py +++ b/system/plots.py @@ -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]