This guide walks through the Streamlit app page by page, then shows a complete end-to-end workflow: upload data → analyze → plot → export.
# Activate your virtual environment first, then:
streamlit run eagleplot/Home.pyOpen http://localhost:8501 in your browser. The sidebar on the left lists all pages.
Purpose: Load one or more data files into the session. All subsequent pages work with the data loaded here.
| Extension | Returns |
|---|---|
.csv, .xlsx, .tsv, .json, .parquet |
pandas DataFrame |
.npy, .npz |
NumPy array |
.pkl |
Any Python object |
- Click Browse files (or drag-and-drop) to upload your file.
- The page shows a preview: shape, column types, and summary statistics.
- Upload additional files — each becomes a named dataset in the sidebar selector.
- Select the active dataset from the dropdown at the top of every page.
- Large files (> 50 MB) may be slow to preview but will work.
.npzfiles load all arrays; select which array to use in subsequent pages.
Purpose: Generate any of the 13 supported plot types with point-and-click controls.
| Category | Types |
|---|---|
| Matplotlib (static) | Line, Scatter, Histogram, Heatmap, Contour |
| Seaborn (statistical) | Distribution, Box / Violin, Regression |
| Plotly (interactive) | Histogram, Scatter, Line, Heatmap, 3D Surface |
- Select a plot type from the dropdown.
- Choose your X column and Y column (or the data array for histograms).
- Adjust style options: title, axis labels, color palette, line width, etc.
- Click Generate Plot.
- Plotly charts are interactive — zoom, pan, and hover for values.
- Expand Export plot & data to download the figure as PNG, SVG, PDF, or HTML.
- Switching plot type resets the column selectors — pick the type first.
- For multi-series line plots, select multiple Y columns with Ctrl+click.
- Plotly HTML exports are self-contained and can be shared as a single file.
Purpose: Run quantitative analysis on the active dataset. Five tabs cover the most common scientific workflows.
Displays mean, median, std, variance, min, max, Q1, Q3, IQR, and range for every numeric column. Also runs a Shapiro-Wilk normality test with pass/fail indicator.
Fit a theoretical distribution (Normal, Exponential, Log-normal, etc.) to a numeric column. Shows fitted parameters, KS-test statistic, and an overlay plot.
Fit a model to X/Y data:
| Model | Parameters |
|---|---|
| Linear | slope, intercept, R² |
| Polynomial | degree 1–10, coefficients, R² |
| Exponential | a, b (y = a·exp(b·x)), R² |
| Custom | Enter any Python expression using x, e.g., a * np.sin(b * x) + c |
Results show fitted parameters and a residuals plot. Click Copy Parameters to paste values into a script.
Find a function minimum or root:
- Minimize: Enter a Python expression in
x(e.g.,(x - 3)**2 + 1); set bounds and initial guess. - Find root: Enter an expression; set a bracket
[a, b]that contains a sign change.
Upload or enter a matrix, then compute:
- Eigenvalues and eigenvectors
- Solve a linear system A·x = b
- Matrix decomposition (QR, SVD, Cholesky)
Purpose: Display up to six independent plots side-by-side in a configurable grid.
- Choose a grid layout (1×1 up to 2×3).
- For each cell, select a dataset, plot type, and columns independently.
- Click Generate Dashboard — all plots render simultaneously.
- Expand any cell to enlarge it; click its Download button to save.
- Each cell is independent — you can mix Matplotlib and Plotly in the same dashboard.
- Use the 2×3 layout for a six-panel publication figure.
Purpose: Specialized visualizations not available on the Quick Plot page.
| Feature | Description |
|---|---|
| Correlation Heatmap | Pearson correlation matrix for all numeric columns |
| Overlaid Distributions | KDE / ECDF overlaid across groups (color-coded by a categorical column) |
| Grouped Categorical | Box, violin, or strip plot grouped by a categorical column |
| 3D Scatter | Interactive Plotly 3D scatter with color mapping |
| HTML Export | Save any Plotly figure as a self-contained HTML file |
Purpose: Persist plot defaults and create named style presets.
- Color palette — choose from six palettes including two color-blind-safe options
- Figure size — width × height in inches
- DPI — default resolution for saved figures
- Grid — on/off
- Font size — base font for all text
- Line width — default line thickness
- Legend — show/hide
Click Save as preset to name and store the current defaults. Switch between presets
from the dropdown. Settings are written to config.json in the project root and persist
across app restarts.
Purpose: Download figures, datasets, and analysis results generated during the session.
Every plot generated on Quick Plot or Advanced Plotting is recorded in the session history. For each:
- Choose a format: PNG 150 dpi, PNG 300 dpi, SVG, PDF, or HTML (Plotly)
- Click Download to save the file
Export the currently loaded dataset as CSV, JSON, NumPy (.npy), or pickle (.pkl).
Export any curve-fit or statistics result from Analysis Tools as a structured JSON file.
- Save session — writes all loaded datasets, plot history, and analysis results to a
single
.jsonfile you can download. - Load session — drag-and-drop a previously saved session file to restore the full state.
Goal: Upload a calibration dataset, fit a Beer-Lambert curve, export the fit result.
- Data Upload: Upload
calibration.csv(columns:concentration,absorbance). - Analysis Tools → Curve Fitting: Select
concentration(X) andabsorbance(Y); choose Linear; click Fit. Note the slope (molar absorptivity · path length) and R². - Quick Plot: Select Scatter plot; X =
concentration, Y =absorbance; title = "Beer-Lambert Calibration"; click Generate Plot. - Export Results: Download the scatter plot as PNG 300 dpi. Download the curve-fit result as JSON.
Total time: under two minutes with no code written.