Matplotlib-based GUI package for data visualisation
sviewgui is a PyQt5-based GUI for data visualisation of csv files or pandas.DataFrame objects. Main features:
Here is a sample code. sviewgui has only one function 'buildGUI()', which starts the GUI. If you already have a CSV file that you want to look at, you can build the following code without any argument.
from sviewgui import sview as sv
# sample code 1
sv.buildGUI()
If you build this code, GUI window like the photo bellow will open.
Then, you can open your CSV file from the 'select' button.
Alternatively, you can also open the GUI using the file path or pandas' DataFrame object. Here is another sample code using Iris dataset.
import pandas as pd
from sklearn import datasets
# Sview-GUI
from sviewgui import sview as sv
# load iris
iris = datasets.load_iris()
# Create DataFrame object
df = pd.DataFrame(iris.data, columns=iris.feature_names)
df['target'] = iris.target_names[iris.target]
# export DataFrame as CSV file.
SAVE_PATH = 'data/dst/iris.csv'
df.to_csv(SAVE_PATH) # save as CSV
# build GUI with the filepath
sv.buildGUI(SAVE_PATH)
# build GUI with pandas' DataFrame object
sv.buildGUI(df)
Then, let's build GUI with iris dataset.
You find that a table of iris dataset is displayed at the upper-right side of the GUI window.
If you go to the 'Graph' tab, or if you scroll the left 'Graph Setting' panel downword and push the 'Preview' button, you can display the graph.
Most of the setting options are straight manner.
From the top,
Log tab preserves the source code of the all graphs that you displayed at 'Graph' tab.