Meta tags:
description= The interactive graphing library for Python :sparkles: - Convert axhspan and axvspan to layout shapes by robertoffmoura · Pull Request #5847 · plotly/plotly.py;
Headings (most frequently used words):
to, uh, oh, navigation, convert, axhspan, and, axvspan, layout, shapes, plotly, py, robertoffmoura, rm, support, branch, footer, commented, oct, 27, 2026, 5847, menu, repository, 5847robertoffmoura, wants, merge, commits, intoplotly, mainplotly, mainfrom, axhspanrobertoffmoura, axhspancopy, head, name, clipboard, conversation, camdecoster, this, has, not, been, deployed, reviewers, assignees, labels, projects, milestone, development, participants,
Text of the page (most frequently used words):
and (19), the (18), this (16), #plotly (15), github (13), spans (13), axhspan (13), shapes (12), applied (11), for (10), axvspan (9), robertoffmoura (9), support (8), suggestion (7), cannot (7), suggestions (7), while (7), code (7), reload (7), axes (7), layout (7), color (7), that (6), copy (6), convert (6), name (6), with (6), you (5), security (5), 2026 (5), please (5), pull (5), add (5), sign (5), all (5), axis (5), matplotlib (5), build (5), alpha (5), can (4), request (4), line (4), there (4), was (4), error (4), loading (4), page (4), changelog (4), domain (4), commits (4), dates (4), import (4), data (4), main (4), 5847 (4), your (4), copilot (4), not (3), navigation (3), merge (3), from (3), batch (3), camdecoster (3), conversation (3), hidden (3), characters (3), unicode (3), review (3), open (3), learn (3), branch (3), oct (3), legend (3), date (3), reference (3), sides (3), before (3), fig (3), spans_date_axis (3), partial_spans (3), plot (3), datetime (3), def (3), are (3), rectangle (3), quality (3), another (3), tab (3), window (3), refresh (3), session (3), developers (3), customer (3), enterprise (3), grade (3), features (3), community (2), status (2), footer (2), now (2), reviews (2), has (2), been (2), single (2), commit (2), only (2), one (2), changes (2), may (2), issues (2), development (2), milestone (2), none (2), yet (2), projects (2), show (2), file (2), bidirectional (2), what (2), more (2), about (2), sorry (2), something (2), went (2), wrong (2), reactions (2), contributor (2), markdown (2), link (2), commented (2), entry (2), labeled (2), values (2), aligned (2), span (2), after (2), png (2), fix (2), mpl_to_plotly (2), tls (2), plt (2), items (2), cases (2), range (2), day (2), green (2), ymax (2), ymin (2), label (2), orange (2), xmax (2), xmin (2), warning (2), converted (2), work (2), map (2), onto (2), blended (2), transform (2), other (2), wants (2), into (2), head (2), clipboard (2), insights (2), actions (2), 649 (2), repository (2), signed (2), universe (2), training (2), integrations (2), stories (2), center (2), documentation (2), business (2), fixes (2), products (2), secret (2), perform, action, time, share, personal, information, manage, cookies, contact, docs, privacy, terms, inc, right, check, back, later, queued, multi, comments, pending, marked, resolved, outdated, must, change, existing, order, create, valid, applying, deleted, lines, supported, per, viewing, subset, closed, invalid, because, were, made, participants, successfully, merging, close, these, labels, assignees, reviewers, already, have, account, comment, join, free, contains, text, interpreted, compiled, differently, than, appears, below, editor, reveals, deployments, deployed, thanks, follow, self, assigned, 344760d, b7c8966, d823d7e, 21d2935, rectangles, 8a0df73, fraction, d8d4b6d, added, october, _plotly, write_image, shape, len, 16s, print, _mpl, savefig, subplots, linestyle, black, edgecolor, red, facecolor, purple, 2023, tools, pyplot, agg, use, snippet, reproduce, dropped, render, get, fill, edge, linewidth, dash, styles, preserved, strings, log, coordinates, fractions, full, width, height, they, stay, fixed, pan, zoom, recognized, gives, marker, such, transforms, keep, drawn, silently, drops, patch, which, renderer, skipped, found, path, object, don, think, part, bar, chart, ignoring, figure, ends, missing, completely, 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, connect, 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, hosting, collaboration, platform, menu, skip, content,
Text of the page (random words):
convert axhspan and axvspan to layout shapes by robertoffmoura pull request 5847 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 convert axhspan and axvspan to layout shapes 5847 5847 open robertoffmoura wants to merge 6 commits into plotly main plotly plotly py main from robertoffmoura rm support axhspan robertoffmoura plotly py rm support axhspan copy head branch name to clipboard conversation commits 6 6 checks files changed open convert axhspan and axvspan to layout shapes 5847 robertoffmoura wants to merge 6 commits into plotly main plotly plotly py main from robertoffmoura rm support axhspan robertoffmoura plotly py rm support axhspan copy head branch name to clipboard conversation robertoffmoura commented oct 27 2026 copy link copy markdown contributor mpl_to_plotly silently drops reference spans axhspan and axvspan add a rectangle patch with a blended axes data transform which the renderer skipped with i found a path object that i don t think is part of a bar chart ignoring the converted figure ends up with the spans missing completely fix reference spans are now drawn as layout rectangle shapes a span is recognized as an axis aligned rectangle in a blended axes data transform matplotlib gives spans no other marker other shapes in such transforms keep the warning sides in data coordinates map onto the data axis and sides in axes fractions the full width height or xmin xmax ymin ymax map onto the axis domain x domain y domain so they stay fixed to the axes on pan and zoom x values are converted to date strings on date axes and spans work on log axes fill color edge color alpha linewidth and dash styles are preserved labeled spans get a legend entry before 0 shapes spans dropped with a warning after spans render as layout shapes snippet to reproduce import datetime import matplotlib matplotlib use agg import matplotlib pyplot as plt import plotly tools as tls def spans ax ax plot 0 10 0 10 ax axhspan 2 4 color orange alpha 0 5 ax axvspan 6 8 color green alpha 0 5 def partial_spans ax ax plot 0 10 0 10 label line ax axhspan 2 4 xmin 0 2 xmax 0 6 color orange label axhspan ax axvspan 6 8 ymin 0 1 ymax 0 5 color green ax legend def spans_date_axis ax dates datetime datetime 2023 1 day for day in range 1 10 ax plot dates range 9 ax axvspan dates 2 dates 5 color purple alpha 0 3 ax axhspan 2 4 facecolor red alpha 0 3 edgecolor black linestyle cases spans spans partial_spans partial_spans spans_date_axis spans_date_axis for name build in cases items fig ax plt subplots build ax fig savefig f name _mpl png p tls mpl_to_plotly fig 0 shapes before this fix print f name 16s len p layout shapes shape s 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 all reactions robertoffmoura added 6 commits october 27 2026 12 13 convert axhspan and axvspan to layout shapes d8d4b6d reference the axis domain for axes fraction sides of spans 8a0df73 convert only axis aligned rectangles to span shapes 21d2935 convert date x values of axvspan shapes d823d7e show labeled spans in the legend b7c8966 add changelog entry 344760d camdecoster self assigned this oct 27 2026 camdecoster commented oct 27 2026 copy link copy markdown contributor thanks for the pr i ll review and follow up all reactions sorry something went wrong uh oh there was an error while loading please reload this page 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 no reviews 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
|