def get_db_plot(self, plot_manager, title, x_label, y_label, field1, field2, filename): fig = None imgdata = None plot_manager = Plot_Data() uri = plot_manager.get_plot_db_results( title, x_label, y_label, field1, field2, filename) html = '<img src = "%s" witdh="300px" height="300px" /> <br />' % uri return html