How to use the pandasgui.widgets.image_viewer.TabbedFigureViewer function in pandasgui

To help you get started, we’ve selected a few pandasgui examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github adamerose / pandasgui / pandasgui / widgets / image_viewer.py View on Github external
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_()
github adamerose / pandasgui / pandasgui / widgets / image_viewer.py View on Github external
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_()
github adamerose / pandasgui / pandasgui / widgets / image_viewer.py View on Github external
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)
github adamerose / pandasgui / pandasgui / widgets / image_viewer.py View on Github external
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)