GithubHelp home page GithubHelp logo

sview-gui's Introduction

sview-gui

PyQt5 GUI for data visualisation based on matplotlib and seaborn. Have you ever felt that you are wasting a lot of time writing the code for a simple figure? If so, this GUI will help you out to save your time. You can plot and save your figure by just pushing a couple of buttons on Sviewgui. All figures you made are recorded in the log window as their source code. You can reproduce and further modify your figures, copying and pasting the code from the log into your own editor.

Main features are

  • Scatter, line, kdeplot, histgram, and box plot
  • Detail setting for the style of plot, marker size, line width, number of bins of histgram, colormap, colorbar, etc.
  • Subdevide your data based on the columns of DataFrame and use different colours for each subset in your plot.
  • Save figure as editable PDF
  • Source code of the graph you plotted are recorded in the log window

Usage

This package has only one method: buildGUI().

import sviewgui.sview as sv

sv.buildGUI()

Then, GUI window will pop up, then you can choose your csv file via GUI. Alternatively, you can also pass the path of your csv file,

import sviewgui.sview as sv

csvpath = 'usr/mydata.csv'
sv.buildGUI(csvpath)

or pandas DataFrame object

import sviewgui.sview as sv
from sklearn.datasets import load_iris
import pandas as pd

data = load_iris() # load iris data 
df = pd.DataFrame(data=data.data, columns=data.feature_names) # convert sklearn data into DataFrame object
sv.buildGUI(df)

Now, you are good to go. Have fun with Sview.

Recent update

  • Fixed minor bugs.
  • log scale for negative columns, colorbar, histgram
  • Adjustable style (seaborn, ggplot, etc.)
  • kdeplot with scatter plot.

About licence

© 2019 Sojiro Fukuda All Rights Reserved. Free to modify and redistribute by your responsibility.

sview-gui's People

Contributors

sojirofukuda avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

sview-gui's Issues

module 'pygments' has no attribute 'formatters'

Windows 10
Using virtual env with python 3.8.3
Installed using python -m setup.py install
From python console ran the example below

Issue with pygments.formatters.HtmlFormatter

Python 3.8.3 (tags/v3.8.3:6f8c832, May 13 2020, 22:20:19) [MSC v.1925 32 bit (Intel)] on win32

import sviewgui.sview as sv
... sv.buildGUI()
Backend Qt5Agg is interactive backend. Turning interactive mode on.
Traceback (most recent call last):
File "", line 2, in
File "C:\Users\MORANB\PycharmProjects\sview-gui-master\venv\lib\site-packages\sviewgui-0.3.5-py3.8.egg\sviewgui\sview.py", line 1760, in buildGUI
wmain = Csviwer()
File "C:\Users\MORANB\PycharmProjects\sview-gui-master\venv\lib\site-packages\sviewgui-0.3.5-py3.8.egg\sviewgui\sview.py", line 100, in init
self.initUI(data)
File "C:\Users\MORANB\PycharmProjects\sview-gui-master\venv\lib\site-packages\sviewgui-0.3.5-py3.8.egg\sviewgui\sview.py", line 106, in initUI
self.ui.logbox.document().setDefaultStyleSheet(pygments.formatters.HtmlFormatter(style=Csviwer.STYLE).get_style_defs('.highlight'))
AttributeError: module 'pygments' has no attribute 'formatters'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.