Python Charts
    • Matplotlib 63 The core library, with full control over every element
    • Plotly 27 Interactive charts for the web and notebooks
    • Seaborn 17 Statistical plots straight from DataFrames
    • Pandas 8 Quick charts with df.plot()
    • Altair 5 Declarative charts built on Vega-Lite
    • Plotnine 3 ggplot2's grammar of graphics in Python
    • Streamlit 1 Charts inside Streamlit data apps
    • A/B Testing 15 Sample size, analysis and sequential tests
    • Machine Learning 14 Evaluate and explain scikit-learn models
    • Causal Inference 10 Diff-in-diff, synthetic control, IV and more
    • AI 1 Use LLMs to build charts from your data
  • Python
  • All Posts
  • Learning Curve and Validation Curve in Python: Diagnose Overfitting and Underfitting
    Machine Learning

    Learning Curve and Validation Curve in Python: Diagnose Overfitting and Underfitting

    Use scikit-learn's LearningCurveDisplay and ValidationCurveDisplay to tell whether a model is overfitting, underfitting, or needs more data, and to pick a hyperparameter such as max_depth.

    Nov 25, 2026
    machine learning scikit-learn learning curve validation curve overfitting bias variance cross validation model evaluation
  • Machine Learning Charts in Python: A Guide to Evaluating and Exploring Models
    Machine Learning

    Machine Learning Charts in Python: A Guide to Evaluating and Exploring Models

    Which chart answers which machine learning question? A map of the ROC, precision-recall, calibration, SHAP, feature importance, K-means and PCA tutorials, with the order to read them in.

    Nov 25, 2026
    machine learning scikit-learn model evaluation classification clustering shap guide
  • Calibration Curve in Python: Check and Fix Predicted Probabilities
    Machine Learning

    Calibration Curve in Python: Check and Fix Predicted Probabilities

    Plot a calibration curve in Python with scikit-learn's CalibrationDisplay, see which models give trustworthy probabilities, and fix the ones that don't with CalibratedClassifierCV.

    Nov 25, 2026
    machine learning scikit-learn calibration curve probability calibration brier score classification model evaluation matplotlib
  • How to Plot a ROC Curve and Calculate AUC in Python
    Machine Learning

    How to Plot a ROC Curve and Calculate AUC in Python

    Plot a ROC curve in Python with scikit-learn's RocCurveDisplay, compare models by AUC, pick a threshold, and handle multiclass and cross-validated curves.

    Nov 25, 2026
    machine learning scikit-learn roc curve auc classification model evaluation matplotlib
  • How to Plot a Precision-Recall Curve in Python
    Machine Learning

    How to Plot a Precision-Recall Curve in Python

    Plot a precision-recall curve in Python with scikit-learn's PrecisionRecallDisplay, compare models by average precision, and pick a threshold on imbalanced data.

    Nov 25, 2026
    machine learning scikit-learn precision-recall curve average precision classification imbalanced data model evaluation matplotlib

Python plotting and visualization demystified

© 2026 PythonCharts.com. All rights reserved.
  • About
  • Credits
  • Privacy Policy