Meta tags:
description= The interactive graphing library for Python :sparkles: - Fix conversion of matplotlib filled contour plots by robertoffmoura · Pull Request #5851 · plotly/plotly.py;
Headings (most frequently used words):
fix, navigation, uh, oh, conversion, of, matplotlib, filled, contour, plots, to, plotly, py, robertoffmoura, rm, contourf, branch, footer, 5851, menu, repository, 5851robertoffmoura, wants, merge, commits, intoplotly, mainplotly, mainfrom, plotsrobertoffmoura, plotscopy, head, name, clipboard, conversation, commented, oct, 28, 2026, this, has, not, been, deployed, reviewers, assignees, labels, projects, milestone, development, participants,
Text of the page (most frequently used words):
path (23), the (21), and (16), #plotly (16), this (14), github (13), applied (11), #matplotlib (11), subpaths (10), filled (10), contourf (10), from (9), for (9), robertoffmoura (9), code (8), with (8), import (8), fix (8), plots (8), suggestion (7), cannot (7), suggestions (7), while (7), none (7), that (6), pull (6), line (6), reload (6), all (6), you (5), security (5), 2026 (5), request (5), add (5), camdecoster (5), review (5), sign (5), changelog (5), into (5), name (5), build (5), can (4), not (4), now (4), please (4), merge (4), single (4), was (4), conversion (4), date (4), each (4), collections (4), commits (4), datetime (4), contour (4), copy (4), main (4), 5851 (4), your (4), support (4), copilot (4), navigation (3), has (3), batch (3), one (3), closed (3), there (3), error (3), loading (3), page (3), close (3), conversation (3), hidden (3), characters (3), unicode (3), open (3), learn (3), branch (3), koolade85 (3), values (3), its (3), before (3), joining (3), them (3), subpath (3), collection (3), vertex (3), vertices (3), fig (3), curved_path (3), contourf_date (3), circle (3), lineto (3), center (3), def (3), linspace (3), are (3), quality (3), another (3), tab (3), window (3), refresh (3), session (3), developers (3), customer (3), enterprise (3), grade (3), features (3), share (2), community (2), status (2), footer (2), check (2), back (2), multi (2), been (2), commit (2), changes (2), may (2), issues (2), development (2), milestone (2), yet (2), projects (2), requested (2), have (2), file (2), bidirectional (2), what (2), more (2), about (2), october (2), oct (2), link (2), entry (2), convert (2), _join_subpaths (2), separators (2), after (2), _draw_line_collection (2), split (2), dropped (2), first (2), appended (2), coordinates (2), days (2), outline (2), splitting (2), separate (2), png (2), mpl_to_plotly (2), tls (2), plt (2), items (2), cases (2), square (2), pathpatch (2), patchcollection (2), sin (2), dates (2), meshgrid (2), converted (2), disjoint (2), connect (2), band (2), wants (2), head (2), clipboard (2), insights (2), actions (2), 649 (2), repository (2), signed (2), universe (2), training (2), integrations (2), stories (2), documentation (2), business (2), fixes (2), products (2), secret (2), perform, action, time, personal, information, manage, cookies, contact, docs, privacy, terms, inc, right, later, queued, comments, pending, reviews, marked, resolved, outdated, must, change, existing, order, create, valid, applying, deleted, lines, supported, only, per, viewing, subset, invalid, because, were, made, participants, successfully, merging, these, labels, assignees, least, approving, required, awaiting, reviewers, already, account, comment, join, free, show, contains, text, interpreted, compiled, differently, than, appears, below, editor, reveals, deployments, deployed, assigned, 723f141, callers, once, pass, which, inserts, _convert_x_dates, list, form, without, splicing, b3f2ed3, _draw_filled_path_collection, short, ones, joined, both, call, 90bb1d4, between, always, gets, allclose, compared, relative, tolerance, large, mpl, numbers, closing, edge, long, 0b5cd59, rule, 24e8759, 5f203b7, step, over, bezier, when, fb6e9c1, null, added, reaction, reactions, reacted, heart, emoji, sorry, something, went, wrong, _plotly, write_image, _mpl, savefig, subplots, set_ylim, set_xlim, make_compound_path, add_collection, closepoly, moveto, radius, cos, range, timedelta, 2023, levels, sqrt, 120, patches, tools, numpy, pyplot, agg, use, snippet, reproduce, axes, strings, inserted, codes, consume, correct, number, parsing, sharing, used, ending, their, inside, separated, does, doesn, render, correctly, packs, containing, several, renderer, drew, polygon, figure, fake, wedges, regions, covering, bands, around, contributor, markdown, commented, files, changed, checks, requests, message, dismiss, alert, switched, accounts, out, appearance, settings, search, pricing, event, talks, workshops, next, partners, company, forum, events, webinars, blog, resource, resources, premium, advanced, ons, trust, why, evaluate, see, industries, government, manufacturing, financial, services, healthcare, industry, nonprofits, startups, team, enterprises, stage, businesses, source, latest, improvements, across, place, developer, articles, sponsors, trending, repos, explore, customize, certifications, scanning, leak, prevention, protection, vulnerability, detection, remediation, secure, cloud, environments, codespaces, analysis, enforcement, automation, ship, coding, agent, tasks, automated, work, hosting, collaboration, platform, menu, skip, content,
Text of the page (random words):
fix conversion of matplotlib filled contour plots by robertoffmoura pull request 5851 plotly plotly py github skip to content navigation menu sign in products platform github repository hosting code review and collaboration copilot ai coding agent for tasks projects and automated work build ship actions ci cd and automation code quality quality analysis fixes and enforcement codespaces cloud development environments secure code security vulnerability detection and remediation secret protection secret scanning and leak prevention all features developers learn documentation training certifications build build with copilot customize copilot integrations explore trending repos github sponsors developer articles changelog changelog your source for the latest features improvements and fixes across github products all in one place businesses by stage enterprises team startups nonprofits by industry healthcare financial services manufacturing government see all industries evaluate github why github customer stories business insights trust center add ons github advanced security enterprise grade code security copilot for business enterprise grade ai features premium support enterprise grade 24 7 support resources learn connect documentation resource center blog events webinars community forum customer stories integrations support customer support training github status company about partners changelog github universe github universe the event for developers by developers talks workshops and what s next for github pricing search sign in sign up appearance settings you signed in with another tab or window reload to refresh your session you signed out in another tab or window reload to refresh your session you switched accounts on another tab or window reload to refresh your session dismiss alert message plotly plotly py repository navigation code issues 649 649 pull requests 87 87 actions security and quality insights more items fix conversion of matplotlib filled contour plots 5851 5851 open robertoffmoura wants to merge 7 commits into plotly main plotly plotly py main from robertoffmoura rm fix contourf plots robertoffmoura plotly py rm fix contourf plots copy head branch name to clipboard conversation commits 7 7 checks files changed open fix conversion of matplotlib filled contour plots 5851 robertoffmoura wants to merge 7 commits into plotly main plotly plotly py main from robertoffmoura rm fix contourf plots robertoffmoura plotly py rm fix contourf plots copy head branch name to clipboard conversation robertoffmoura commented oct 28 2026 copy link copy markdown contributor mpl_to_plotly doesn t render filled contour plots correctly matplotlib packs each contourf band into a single path containing several disjoint subpaths and the renderer drew all the vertices of that path as one polygon so the converted figure has fake wedges joining the separate regions of each band and covering the bands around them fix filled path collections now split each path into its subpaths disjoint subpaths inside a path are separated with none so plotly does not connect them subpaths ending in a z code have their first vertex appended to close the outline multi vertex path codes c s consume the correct number of vertices while parsing sharing the subpath splitting used for line collections on date axes x values are converted to date strings before the none separators are inserted snippet to reproduce import datetime import matplotlib matplotlib use agg import matplotlib pyplot as plt import numpy as np import plotly tools as tls from matplotlib collections import patchcollection from matplotlib patches import pathpatch from matplotlib path import path def contourf ax x np linspace 2 2 120 x y np meshgrid x x z np sin 3 np sqrt x 2 y 2 ax contourf x y z levels 5 def contourf_date ax dates datetime datetime 2023 1 1 datetime timedelta days i for i in range 30 y np linspace 3 3 30 x y np meshgrid np linspace 3 3 30 y ax contourf dates y np sin x np cos y 10 def curved_path ax circle path circle center 1 1 radius 0 5 square path 2 0 5 3 0 5 3 1 5 2 1 5 2 0 5 path moveto path lineto path lineto path lineto path closepoly ax add_collection patchcollection pathpatch path make_compound_path circle square ax set_xlim 0 4 ax set_ylim 0 2 cases contourf contourf contourf_date contourf_date curved_path curved_path for name build in cases items fig ax plt subplots build ax fig savefig f name _mpl png p tls mpl_to_plotly fig p write_image f name _plotly png matplotlib plotly before plotly after sorry something went wrong uh oh there was an error while loading please reload this page ️ 1 koolade85 reacted with heart emoji all reactions ️ 1 reaction robertoffmoura added 7 commits october 26 2026 14 54 separate filled path collection subpaths with null coordinates fb6e9c1 step over all bezier vertices when splitting filled path subpaths 5f203b7 add changelog entry 24e8759 close filled path subpaths with the line collection rule 0b5cd59 a closed subpath of a filled path collection now always gets its first vertex appended as in _draw_line_collection the np allclose check compared with a relative tolerance so on large coordinates e g mpl date numbers a closing edge up to 0 19 days long was dropped from the outline share subpath joining between line and filled path collections 90bb1d4 _draw_line_collection and _draw_filled_path_collection each split a path into subpaths dropped short ones closed z subpaths and joined them with none both now call _join_subpaths convert date x values before joining subpaths b3f2ed3 callers convert a path s x values once and pass x and y to _join_subpaths which inserts the none separators after conversion _convert_x_dates is back to its single list form without the none splicing add pr link to changelog entry 723f141 koolade85 assigned camdecoster oct 28 2026 koolade85 requested a review from camdecoster october 28 2026 19 19 this branch has not been deployed no deployments this file contains hidden or bidirectional unicode text that may be interpreted or compiled differently than what appears below to review open the file in an editor that reveals hidden unicode characters learn more about bidirectional unicode characters show hidden characters sign up for free to join this conversation on github already have an account sign in to comment reviewers camdecoster awaiting requested review from camdecoster at least 1 approving review is required to merge this pull request uh oh there was an error while loading please reload this page assignees camdecoster labels none yet projects none yet milestone no milestone development successfully merging this pull request may close these issues uh oh there was an error while loading please reload this page 2 participants add this suggestion to a batch that can be applied as a single commit this suggestion is invalid because no changes were made to the code suggestions cannot be applied while the pull request is closed suggestions cannot be applied while viewing a subset of changes only one suggestion per line can be applied in a batch add this suggestion to a batch that can be applied as a single commit applying suggestions on deleted lines is not supported you must change the existing code in this line in order to create a valid suggestion outdated suggestions cannot be applied this suggestion has been applied or marked resolved suggestions cannot be applied from pending reviews suggestions cannot be applied on multi line comments suggestions cannot be applied while the pull request is queued to merge suggestion cannot be applied right now please check back later footer 2026 github inc footer navigation terms privacy security status community docs contact manage cookies do not share my personal information you can t perform that action at this time
|