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:
@@ -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]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user