Commits

Devin Silvia committed 4be79bb

minor modifications to plotting script and number of time steps allowed.

Comments (0)

Files changed (2)

plot_intermediate.py

         mpl.rc('axes', labelsize=18)
         # plot the time evolution of a species for a given T
         plt.clf()
+        fig = plt.figure(1, dpi=100)
+        fig.set_size_inches(12,6)
         i = 0
         for s in sorted(self.species):
             if s != 'ge':
         plt.ylabel("n$_{s}$")
         plt.ylim(1e-8, 2e7)
         #plt.xlim(1e4,1e12)
-        leg = plt.legend(loc = 'best', ncol=2)
-        leg.legendPatch.set_alpha(0.8)
+        ax = plt.axes()
+        box = ax.get_position()
+        ax.set_position([box.x0 - 0.05, box.y0, box.width * 0.9, box.height * 1.1])
+        leg = plt.legend(loc='upper left', bbox_to_anchor=(1.0, 1.0), ncol=2)
+        #leg = plt.legend(loc = 'best', ncol=2)
+        # leg.legendPatch.set_alpha(0.8)
         plt.savefig("%s_time.png" % (self.network_name))
         mpl.rcParams['axes.color_cycle'] = [list(clr) for clr in mpl.cm.spectral(np.linspace(0,1,(self.nspecies)))]
         plt.clf()

templates/rates_and_rate_tables.c.template

             }
         }
         if (rv == 0) {
-	    if (siter == 99999) break;
+	    if (siter == 9999) break;
 	    siter++;
             fprintf(stderr, "Successful Iteration[%d]: %0.16g / %0.16g\n",
                      siter, dt, dtf);
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.