Python Charts

    • Matplotlib 71 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 12 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
  • Matplotlib Plot Not Showing? How to Fix plt.show()
    Matplotlib

    Matplotlib Plot Not Showing? How to Fix plt.show()

    Fix a Matplotlib figure that never appears: a missing plt.show(), the Agg backend, a headless server, Jupyter settings, blank saved files, and windows that close at once.

    Nov 27, 2026
    matplotlib plt.show backend jupyter troubleshooting
  • Matplotlib rcParams: Set Global Plot Defaults
    Matplotlib

    Matplotlib rcParams: Set Global Plot Defaults

    Change Matplotlib's default figure size, fonts, colors, spines, and grid with rcParams, apply settings temporarily, reset them, and save them to a style file.

    Nov 27, 2026
    matplotlib rcParams styles style sheets colors font size
  • How to Display an Image in Matplotlib with imshow()
    Matplotlib

    How to Display an Image in Matplotlib with imshow()

    Show image files and NumPy arrays with imshow, display grayscale correctly, control aspect ratio, origin, extent, and interpolation, and save the result.

    Nov 27, 2026
    matplotlib imshow images interpolation extent grayscale
  • Share Axes Between Matplotlib Subplots (sharex, sharey, and Common Labels)
    Matplotlib

    Share Axes Between Matplotlib Subplots (sharex, sharey, and Common Labels)

    Use sharex and sharey to give subplots the same limits, add one x label, y label, and legend for the whole figure, and control which tick labels show.

    Nov 27, 2026
    matplotlib subplots sharex sharey axis labels legend
  • Complex Subplot Layouts in Matplotlib: subplot_mosaic and GridSpec
    Matplotlib

    Complex Subplot Layouts in Matplotlib: subplot_mosaic and GridSpec

    Make subplots of different sizes with subplot_mosaic and GridSpec, including spanning panels, width ratios, empty cells, polar panels, and nested grids.

    Nov 27, 2026
    matplotlib subplots subplot_mosaic GridSpec layout dashboard
  • Matplotlib Figure vs Axes: pyplot and the Object-Oriented Interface
    Matplotlib

    Matplotlib Figure vs Axes: pyplot and the Object-Oriented Interface

    What the Figure, Axes, and Axis objects are, how pyplot differs from the object-oriented interface, and how to translate between them.

    Nov 27, 2026
    matplotlib figure axes pyplot object-oriented subplots
  • Streamlit Tutorials: A Guide from First App to Deployment
    Streamlit

    Streamlit Tutorials: A Guide from First App to Deployment

    A map of the Streamlit tutorials: build a first app, draw charts, cache slow work, keep values with session state, lay out and assemble a dashboard, and put it online.

    Nov 26, 2026
    streamlit dashboard caching st.session_state deployment guide
  • Streamlit vs Dash vs Shiny vs Gradio vs Panel
    Python

    Streamlit vs Dash vs Shiny vs Gradio vs Panel

    The same small app in five Python frameworks, with code, screenshots, how each one reacts to input, and which to pick.

    Nov 26, 2026
    streamlit dash shiny gradio panel dashboard
  • How to Deploy a Streamlit App: Community Cloud, Render, and Docker
    Streamlit

    How to Deploy a Streamlit App: Community Cloud, Render, and Docker

    Put a Streamlit app online. Deploy free on Streamlit Community Cloud from GitHub, or use Render or Docker when you need more control.

    Nov 26, 2026
    streamlit deployment streamlit-community-cloud render docker
  • How to Build a KPI Dashboard in Streamlit
    Streamlit

    How to Build a KPI Dashboard in Streamlit

    Build a Streamlit dashboard with KPI cards and sparklines, period-over-period deltas, a date range filter, charts, and a formatted table.

    Nov 26, 2026
    streamlit dashboard st.metric altair st.dataframe
  • Streamlit Session State: Keep Values Between Reruns
    Streamlit

    Streamlit Session State: Keep Values Between Reruns

    Streamlit reruns your script on every interaction, so ordinary variables reset. st.session_state keeps values between reruns. Here is how to initialize it, update it with callbacks, and avoid the common errors.

    Nov 26, 2026
    streamlit st.session_state callbacks widgets
  • Streamlit Caching: st.cache_data vs st.cache_resource
    Streamlit

    Streamlit Caching: st.cache_data vs st.cache_resource

    Use st.cache_data for data you compute or load and st.cache_resource for shared objects like database connections and models. Here is how both behave, with ttl, max_entries and cache clearing.

    Nov 26, 2026
    streamlit st.cache_data st.cache_resource caching performance
  • How to Build Your First Streamlit App in Python
    Streamlit

    How to Build Your First Streamlit App in Python

    Turn a Python script into a web app with Streamlit: install it, add a title, widgets, metrics and charts, and run it with streamlit run.

    Nov 26, 2026
    streamlit st.metric st.line_chart st.sidebar dashboard
  • Build an A/B Test Calculator App in Streamlit
    Streamlit

    Build an A/B Test Calculator App in Streamlit

    An interactive A/B test calculator in one Python file: sample size and run time before a test, then the p-value, confidence interval and split check after it.

    Nov 26, 2026
    streamlit ab testing sample size statsmodels st.number_input
  • How to Build an LLM Chatbot in Streamlit
    Streamlit

    How to Build an LLM Chatbot in Streamlit

    Build a chat app with st.chat_input and st.chat_message, keep the history in session state, then stream replies from Claude with st.write_stream.

    Nov 26, 2026
    streamlit st.chat_message st.chat_input llm claude
  • How to Make a Bump Chart in Matplotlib
    Matplotlib

    How to Make a Bump Chart in Matplotlib

    Make a bump chart in Matplotlib to show how rankings change over time, with smooth curves, highlighting, and top-N entries and exits.

    Nov 26, 2026
    matplotlib bump chart ranking line plot labeling time series
  • How to Build a Multipage App in Streamlit
    Streamlit

    How to Build a Multipage App in Streamlit

    Split a Streamlit app into pages with st.navigation and st.Page, from functions or separate files, with sections, shared filters, page links and role-based menus.

    Nov 26, 2026
    streamlit st.navigation st.Page multipage st.session_state
  • Streamlit File Uploader: Turn a CSV Upload Into a Chart Dashboard
    Streamlit

    Streamlit File Uploader: Turn a CSV Upload Into a Chart Dashboard

    Let people upload a CSV with st.file_uploader, read it with pandas, pick columns and see a chart. Covers bad files, Excel, multiple files, size limits and downloads.

    Nov 26, 2026
    streamlit st.file_uploader csv pandas dashboard
  • Streamlit Layout: Columns, Tabs, Sidebar, and Containers
    Streamlit

    Streamlit Layout: Columns, Tabs, Sidebar, and Containers

    Arrange a Streamlit app with a sidebar, columns, tabs, expanders and containers, including column widths, alignment, button rows and lazy tabs.

    Nov 26, 2026
    streamlit st.columns st.tabs st.sidebar layout
  • How to Make a Treemap in Matplotlib with Squarify
    Python

    How to Make a Treemap in Matplotlib with Squarify

    Draw treemaps in Matplotlib with squarify: labels and values, color by a second measure, and a nested treemap built from rectangles.

    Nov 26, 2026
    python matplotlib treemap squarify hierarchical
  • «
  • 1 (current)
  • 2
  • 3
  • …
  • 11
  • » Next

Python plotting and visualization demystified

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