Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if __name__ == '__main__':
from pandasgui.datasets import iris, flights, multi, pokemon
app = QtWidgets.QApplication([])
figs = []
for df in [iris, flights, multi]:
df.plot()
figs.append(plt.gcf())
win = FigureViewer(figs[0])
win.show()
win2 = TabbedFigureViewer(figs)
win2.show()
app.exec_()
if __name__ == '__main__':
from pandasgui.datasets import iris, flights, multi, pokemon
app = QtWidgets.QApplication([])
figs = []
for df in [iris, flights, multi]:
df.plot()
figs.append(plt.gcf())
win = FigureViewer(figs[0])
win.show()
win2 = TabbedFigureViewer(figs)
win2.show()
app.exec_()
def to_powerpoint(self):
# Write images to ppt
import os
filename = 'test.ppt'
try:
os.remove(filename)
except OSError:
pass
for fig in self.figs:
to_ppt_slide(fig, filename, append=True)
os.system("start " + filename)
win = TabbedFigureViewer(figs)
def to_powerpoint(self):
# Write images to ppt
import os
filename = 'test.ppt'
try:
os.remove(filename)
except OSError:
pass
for fig in self.figs:
to_ppt_slide(fig, filename, append=True)
os.system("start " + filename)
win = TabbedFigureViewer(figs)