<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -5,6 +5,8 @@ import copy as cp
 import matplotlib.pyplot as plt
 from matplotlib import scale as mscale
 from matplotlib import transforms as mtransforms
+import matplotlib.figure as fig
+import matplotlib.axes as maxes
 from pylab import *
 
 class SasData(object):
@@ -157,7 +159,7 @@ class SasData(object):
 #
 ###################################################
 
-class SasPlot(object):
+class SasPlot(fig.Figure):
     &quot;&quot;&quot;Class for generating and handling data plots.
 
     Uses the pylab module of matplotlib to generate and
@@ -165,7 +167,7 @@ class SasPlot(object):
     modifying them, adding data, etc.
     &quot;&quot;&quot;
 
-    def __init__(self, data_to_plot=None, format='rO'):
+    def __init__(self, data, format='ro'):
         &quot;&quot;&quot;__init__ routine creates a plot with default features.
 
         &quot;&quot;&quot;
@@ -174,7 +176,7 @@ class SasPlot(object):
         plt.ylabel('I')
         plt.xlabel('Q')
         # plt.title(name of data_to_plot) - how do I do this?
-        plt.show()
+        plt.draw()
 
         # setup a list for holding the data for this plot
         # self.data.append(name of data_to_plot)
@@ -182,19 +184,20 @@ class SasPlot(object):
         # a place to hold the figure and plot number
         self.figure = plt.gcf()
         self.axes = plt.gca()
+    
 
-    def guinier(self):
+    def guinier_plot(self):
         &quot;&quot;&quot;Routine to convert to a Guinier plot.
 
         Converts plot to show data on the coordinates of ln(I)
         versus Q^2. First we need to get the correct figure
-        number and then change the axes. The actual data file
-        remains unchanged.
+        number and then change the axes. The routine sets the axes
+        to base e log and a squared scale on y and x axes respectively.
         &quot;&quot;&quot;
 
-        ax = self.axes
-        ax.set_yscale('log', basey=e)
-        ax.set_xscale('q_squared')
+        self.axes.set_yscale('log', basey=e)
+        self.axes.set_xscale('q_squared')
+        plt.draw()
 
 
 class SquaredScale(mscale.ScaleBase):</diff>
      <filename>sas.py</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>4967b68c0268ecca7573eaad80900b2ae833b46f</id>
    </parent>
  </parents>
  <author>
    <name>Cameron Neylon</name>
    <login>cameronneylon</login>
    <email>cameron.neylon@stfc.ac.uk</email>
  </author>
  <url>http://github.com/cameronneylon/sas/commit/52a7616ebe8d246865f856691c6421ddc2674427</url>
  <id>52a7616ebe8d246865f856691c6421ddc2674427</id>
  <committed-date>2009-03-08T12:45:51-07:00</committed-date>
  <authored-date>2009-03-08T12:45:51-07:00</authored-date>
  <message>done some fiddling but much the same as previous</message>
  <tree>3e67066c0d2c7cfa175cf19926f58847326e9e75</tree>
  <committer>
    <name>Cameron Neylon</name>
    <login>cameronneylon</login>
    <email>cameron.neylon@stfc.ac.uk</email>
  </committer>
</commit>
