Three Essential Steps for Python Data Visualization

Three Fundamental Steps in Python Visualization Data visualziation in Python typically follows three key stages: Determine the problem and choose the right plot type Prepare and transform data Customize parameters for clarity Commonly Used Visualization Libraries Matplotlib: The foundational plotting library in Python, ideal for basic visual ...

Posted on Fri, 24 Jul 2026 16:20:57 +0000 by robinjohn

Sales Forecasting Using Linear Regression

Predict sales for November and December 2018. import glob import os import pandas as pd import re import numpy as np import datetime as dt from sklearn.linear_model import LinearRegression import seaborn as sns from matplotlib import pyplot as plt # Set font for Chinese characters plt.rcParams['font.sans-serif'] = ['SimHei'] plt.rcParams['axe ...

Posted on Fri, 10 Jul 2026 16:43:59 +0000 by Elhombrebala

Creating a Fireworks Display in Python with Multiple AI Models

The idea began after watching a fireworks simulation video on Bilibili, allegedly generated by a Python script. The uploader required viewers to follow, like, and comment before sending a private message to receive the source code. After jumping through several hoops—inlcuding forum registration and virtual currency purchases—the promised code ...

Posted on Thu, 09 Jul 2026 17:15:44 +0000 by sweetmaster

Customizing Line Styles and Markers in Python Plots

Marker Types # Available marker symbols for data points marker_symbols = { '.': 'point', ',': 'pixel', 'o': 'circle', 'v': 'triangle_down', '^': 'triangle_up', '<': 'triangle_left', '>': 'triangle_right', '1': 'tri_down', '2': 'tri_up', '3': 'tri_left', '4': 'tri_right', 's': 'square', ...

Posted on Wed, 08 Jul 2026 17:19:01 +0000 by Snart

Configuring and Customizing Matplotlib Colorbars in Python

A colorbar serves as a visual legend for scalar mappable objects in Matplotlib, translating color gradients into quantitative values. Configuring it properly is essential for accurate data interpretation in heatmaps, contour plots, and surface visualizations. Instantiating a Basic Colorbar The standard approach involves passing the mappablle ar ...

Posted on Mon, 06 Jul 2026 17:43:10 +0000 by Daisatske

Python Knowledge Summary

Important Links matplotlib: matplotlib — Matplotlib 3.5.1 documentation seaborn: seaborn.lineplot — seaborn 0.13.2 documentation DataFrame: DataFrame — pandas 2.2.1 documentation Python Matplotlib Scatter, Line, Box, Bar Plot Examples: Python Matplotlib 实现散点图、曲线图、箱状图、柱状图示例 Color Palettes: matplotlib、seaborn颜色、调色板、调 ...

Posted on Wed, 01 Jul 2026 16:38:09 +0000 by himnbandit

Machine Learning Fundamentals — Cluster Visualization

In the previous section, we covered the fundamentals of clustering theory to establish a solid theoretical foundation. Today’s focus is on exploring visualization techniques for data analysis. We've previously encountered visualization methods in regression analysis, and now we'll shift our attention to cluster analysis visualization. We’ll exp ...

Posted on Sat, 20 Jun 2026 17:08:24 +0000 by SheetWise

Python Packages Overview

Python, renowned for its robust ecosystem, heavily relies on packages (or libraries/modules) to provide a wide array of functionalities, making it versatile for applications like data analysis, machine learning, web development, and network programming. Python packages typically consist of a collection of Python files with related functionaliti ...

Posted on Mon, 15 Jun 2026 17:15:18 +0000 by Fastback_68

Matplotlib Line Plot Customization Techniques

Introduction to Matplotlib Visualization Matplotlib serves as Python's primary library for creating 2D visualizations, offering: Simple implementation syntax Progressive and interactive visualization capabilities Granular control over graphical elements Multiple export formats including PNG and PDF Install via pip: pip install matplotlib Bas ...

Posted on Sat, 13 Jun 2026 17:38:44 +0000 by BVis

Mastering Matplotlib: A Practical Guide to Data Visualization in Python

Matplotlib Essentials Core Concepts import matplotlib.pyplot as plt import numpy as np x = np.linspace(-3, 3, 50) y1 = 2 * x + 1 y2 = x ** 2 plt.figure(num=3, figsize=(8, 5)) plt.plot(x, y2) plt.plot(x, y1, color='red', linewidth=1.0, linestyle='--') plt.show() Axis Ranges and Labels plt.xlim((-1, 2)) plt.ylim((-2, 3)) plt.xlabel('I am x') pl ...

Posted on Thu, 11 Jun 2026 17:27:12 +0000 by hideous