ezplot is a Python package designed to simplify data visualization for data scientists and analysts. This package generates commonly used plots easily and quickly, allowing users to focus on insights rather than coding. The package provides robust and user-friendly functions for creating line plots, scatter plots, histograms, and heatmaps, making it a perfect tool for quick and effective data exploration and presentation.
You can install the package directly from GitHub:
pip install git+https://github.com/UBC-MDS/dsci_524_ezplot.git
The ezplot package provides the following functions:
plot_line()
: Generates line plots for visualizing trends and changes over time in your dataset.plot_scatterplot()
: Creates scatter plots to analyze relationships between two continuous variables, with optional color and size adjustments.plot_histogram()
: Quickly creates histograms to understand the distribution of a single variable, including options to adjust bin size.plot_heatmap()
: Creates heatmaps to visualize correlations or matrix-like data, with customizable color palettes for better interpretability.
Here’s how you can create a heatmap using ezplot:
from dsci_524_ezplot.plot_heatmap import plot_heatmap
import pandas as pd
import numpy as np
# Create sample data
data = pd.DataFrame(np.random.rand(5, 5), columns=["A", "B", "C", "D", "E"])
# Generate a heatmap
fig, ax = plot_heatmap(data, title="Sample Heatmap", xlabel="Columns", ylabel="Rows")
# Display the plot
import matplotlib.pyplot as plt
plt.show()
The Python ecosystem already offers powerful visualization libraries like Matplotlib, Seaborn, and Plotly. However, these libraries often require significant boilerplate code to customize and generate specific plots. ezplot aims to bridge the gap between flexibility and simplicity by providing pre-built functions tailored for common visualization needs. While Seaborn and Matplotlib offer extensive functionality, ezplot is designed to be lightweight and accessible for users who need straightforward plotting tools without diving into extensive customization.
Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.
dsci_524_ezplot
was created by Daduica Julian, Elshaday Yoseph, Henry(Mu) Ha, Zhou Yining. It is licensed under the terms of the MIT license.
dsci_524_ezplot
was created with cookiecutter
and the py-pkgs-cookiecutter
template.