CINXE.COM
Range Breaks not working properly - 📊 Plotly Python - Plotly Community Forum
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Range Breaks not working properly - 📊 Plotly Python - Plotly Community Forum</title> <meta name="description" content="I get a weird plot. So when I use 1 minute data as follows symbols = [‘NVDA’, ‘AMD’] data = yf.download(symbols, period=‘5d’, interval=‘1m’) data=data[‘Adj Close’] data=(data-data.iloc[0])/data.iloc[0] data.index=da&hellip;"> <meta name="generator" content="Discourse 3.4.0.beta3-dev - https://github.com/discourse/discourse version 5bf5d1335680f28a8eb65c488353be9585eed08e"> <link rel="icon" type="image/png" href="https://global.discourse-cdn.com/flex020/uploads/plot/optimized/3X/4/d/4dad2bfe3c0428d932d3f58ebd2bafcfd94a60cd_2_32x32.svg"> <link rel="apple-touch-icon" type="image/png" href="https://global.discourse-cdn.com/flex020/uploads/plot/optimized/3X/d/6/d6d946d2566c8b2e332e5055af69eb7b46655cd5_2_180x180.png"> <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#111111"> <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, user-scalable=yes, viewport-fit=cover"> <link rel="canonical" href="https://community.plotly.com/t/range-breaks-not-working-properly/88936" /> <link rel="search" type="application/opensearchdescription+xml" href="https://community.plotly.com/opensearch.xml" title="Plotly Community Forum Search"> <link href="https://sea2.discourse-cdn.com/flex020/stylesheets/color_definitions_plotly-light_10_4_ed51aabd2824c3f8f779fda1ebf4b2ebee9613fc.css?__ws=community.plotly.com" media="all" rel="stylesheet" class="light-scheme"/><link href="https://sea2.discourse-cdn.com/flex020/stylesheets/color_definitions_dark_14_4_e29a032d68ec3156f229eaab4e6ad886f2cc1397.css?__ws=community.plotly.com" media="(prefers-color-scheme: dark)" rel="stylesheet" class="dark-scheme"/> <link href="https://sea2.discourse-cdn.com/flex020/stylesheets/desktop_47dec152524498242f46f43a1c47a275d2f970f9.css?__ws=community.plotly.com" media="all" rel="stylesheet" data-target="desktop" /> <link href="https://sea2.discourse-cdn.com/flex020/stylesheets/automation_47dec152524498242f46f43a1c47a275d2f970f9.css?__ws=community.plotly.com" media="all" rel="stylesheet" data-target="automation" /> <link href="https://sea2.discourse-cdn.com/flex020/stylesheets/chat_47dec152524498242f46f43a1c47a275d2f970f9.css?__ws=community.plotly.com" media="all" rel="stylesheet" data-target="chat" /> <link href="https://sea2.discourse-cdn.com/flex020/stylesheets/checklist_47dec152524498242f46f43a1c47a275d2f970f9.css?__ws=community.plotly.com" media="all" rel="stylesheet" data-target="checklist" /> <link href="https://sea2.discourse-cdn.com/flex020/stylesheets/discourse-adplugin_47dec152524498242f46f43a1c47a275d2f970f9.css?__ws=community.plotly.com" media="all" rel="stylesheet" data-target="discourse-adplugin" /> <link href="https://sea2.discourse-cdn.com/flex020/stylesheets/discourse-ai_47dec152524498242f46f43a1c47a275d2f970f9.css?__ws=community.plotly.com" media="all" rel="stylesheet" data-target="discourse-ai" /> <link href="https://sea2.discourse-cdn.com/flex020/stylesheets/discourse-akismet_47dec152524498242f46f43a1c47a275d2f970f9.css?__ws=community.plotly.com" media="all" rel="stylesheet" data-target="discourse-akismet" /> <link href="https://sea2.discourse-cdn.com/flex020/stylesheets/discourse-cakeday_47dec152524498242f46f43a1c47a275d2f970f9.css?__ws=community.plotly.com" media="all" rel="stylesheet" data-target="discourse-cakeday" /> <link href="https://sea2.discourse-cdn.com/flex020/stylesheets/discourse-data-explorer_47dec152524498242f46f43a1c47a275d2f970f9.css?__ws=community.plotly.com" media="all" rel="stylesheet" data-target="discourse-data-explorer" /> <link href="https://sea2.discourse-cdn.com/flex020/stylesheets/discourse-details_47dec152524498242f46f43a1c47a275d2f970f9.css?__ws=community.plotly.com" media="all" rel="stylesheet" data-target="discourse-details" /> <link href="https://sea2.discourse-cdn.com/flex020/stylesheets/discourse-lazy-videos_47dec152524498242f46f43a1c47a275d2f970f9.css?__ws=community.plotly.com" media="all" rel="stylesheet" data-target="discourse-lazy-videos" /> <link href="https://sea2.discourse-cdn.com/flex020/stylesheets/discourse-local-dates_47dec152524498242f46f43a1c47a275d2f970f9.css?__ws=community.plotly.com" media="all" rel="stylesheet" data-target="discourse-local-dates" /> <link href="https://sea2.discourse-cdn.com/flex020/stylesheets/discourse-math_47dec152524498242f46f43a1c47a275d2f970f9.css?__ws=community.plotly.com" media="all" rel="stylesheet" data-target="discourse-math" /> <link href="https://sea2.discourse-cdn.com/flex020/stylesheets/discourse-narrative-bot_47dec152524498242f46f43a1c47a275d2f970f9.css?__ws=community.plotly.com" media="all" rel="stylesheet" data-target="discourse-narrative-bot" /> <link href="https://sea2.discourse-cdn.com/flex020/stylesheets/discourse-policy_47dec152524498242f46f43a1c47a275d2f970f9.css?__ws=community.plotly.com" media="all" rel="stylesheet" data-target="discourse-policy" /> <link href="https://sea2.discourse-cdn.com/flex020/stylesheets/discourse-presence_47dec152524498242f46f43a1c47a275d2f970f9.css?__ws=community.plotly.com" media="all" rel="stylesheet" data-target="discourse-presence" /> <link href="https://sea2.discourse-cdn.com/flex020/stylesheets/discourse-reactions_47dec152524498242f46f43a1c47a275d2f970f9.css?__ws=community.plotly.com" media="all" rel="stylesheet" data-target="discourse-reactions" /> <link href="https://sea2.discourse-cdn.com/flex020/stylesheets/discourse-solved_47dec152524498242f46f43a1c47a275d2f970f9.css?__ws=community.plotly.com" media="all" rel="stylesheet" data-target="discourse-solved" /> <link href="https://sea2.discourse-cdn.com/flex020/stylesheets/discourse-templates_47dec152524498242f46f43a1c47a275d2f970f9.css?__ws=community.plotly.com" media="all" rel="stylesheet" data-target="discourse-templates" /> <link href="https://sea2.discourse-cdn.com/flex020/stylesheets/discourse-topic-voting_47dec152524498242f46f43a1c47a275d2f970f9.css?__ws=community.plotly.com" media="all" rel="stylesheet" data-target="discourse-topic-voting" /> <link href="https://sea2.discourse-cdn.com/flex020/stylesheets/footnote_47dec152524498242f46f43a1c47a275d2f970f9.css?__ws=community.plotly.com" media="all" rel="stylesheet" data-target="footnote" /> <link href="https://sea2.discourse-cdn.com/flex020/stylesheets/hosted-site_47dec152524498242f46f43a1c47a275d2f970f9.css?__ws=community.plotly.com" media="all" rel="stylesheet" data-target="hosted-site" /> <link href="https://sea2.discourse-cdn.com/flex020/stylesheets/poll_47dec152524498242f46f43a1c47a275d2f970f9.css?__ws=community.plotly.com" media="all" rel="stylesheet" data-target="poll" /> <link href="https://sea2.discourse-cdn.com/flex020/stylesheets/spoiler-alert_47dec152524498242f46f43a1c47a275d2f970f9.css?__ws=community.plotly.com" media="all" rel="stylesheet" data-target="spoiler-alert" /> <link href="https://sea2.discourse-cdn.com/flex020/stylesheets/chat_desktop_47dec152524498242f46f43a1c47a275d2f970f9.css?__ws=community.plotly.com" media="all" rel="stylesheet" data-target="chat_desktop" /> <link href="https://sea2.discourse-cdn.com/flex020/stylesheets/discourse-ai_desktop_47dec152524498242f46f43a1c47a275d2f970f9.css?__ws=community.plotly.com" media="all" rel="stylesheet" data-target="discourse-ai_desktop" /> <link href="https://sea2.discourse-cdn.com/flex020/stylesheets/discourse-reactions_desktop_47dec152524498242f46f43a1c47a275d2f970f9.css?__ws=community.plotly.com" media="all" rel="stylesheet" data-target="discourse-reactions_desktop" /> <link href="https://sea2.discourse-cdn.com/flex020/stylesheets/discourse-topic-voting_desktop_47dec152524498242f46f43a1c47a275d2f970f9.css?__ws=community.plotly.com" media="all" rel="stylesheet" data-target="discourse-topic-voting_desktop" /> <link href="https://sea2.discourse-cdn.com/flex020/stylesheets/poll_desktop_47dec152524498242f46f43a1c47a275d2f970f9.css?__ws=community.plotly.com" media="all" rel="stylesheet" data-target="poll_desktop" /> <link href="https://sea2.discourse-cdn.com/flex020/stylesheets/desktop_theme_5_f927249a7c02a50c3223b11919ccb9ea3b39ce2a.css?__ws=community.plotly.com" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="5" data-theme-name="custom header links"/> <link href="https://sea2.discourse-cdn.com/flex020/stylesheets/desktop_theme_7_4925797c764adbd5dd8363a285745c3051d0a4a9.css?__ws=community.plotly.com" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="7" data-theme-name="discourse-tag-sidebars"/> <link href="https://sea2.discourse-cdn.com/flex020/stylesheets/desktop_theme_2_630fdc021cb0c5a1589bca4d6d38dae9b0029bdb.css?__ws=community.plotly.com" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="2" data-theme-name="base style"/> <link href="https://sea2.discourse-cdn.com/flex020/stylesheets/desktop_theme_3_361d96c2f8504ddf8b8322d2556d0217786ba1a9.css?__ws=community.plotly.com" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="3" data-theme-name="header links"/> <link href="https://sea2.discourse-cdn.com/flex020/stylesheets/desktop_theme_6_744e2a3cace5055fb7c4204d46ce8f3be8e28234.css?__ws=community.plotly.com" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="6" data-theme-name="house ads"/> <link href="https://sea2.discourse-cdn.com/flex020/stylesheets/desktop_theme_4_0e51ac85ae7cfd25d72cfded9a179481b9897600.css?__ws=community.plotly.com" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="4" data-theme-name="plotly light"/> <script defer="" src="https://sea2.discourse-cdn.com/flex020/theme-javascripts/e0be0f227c4f7f52cdffda4c89899b164037dc16.js?__ws=community.plotly.com" data-theme-id="4" nonce="wGIxIpTkHJZwtZurCiGROoqmQ"></script> <!-- Global site tag (gtag.js) - AdWords: 1009791370 --> <script async="" src="https://www.googletagmanager.com/gtag/js?id=AW-1009791370" nonce="wGIxIpTkHJZwtZurCiGROoqmQ"></script> <script defer="" src="https://sea2.discourse-cdn.com/flex020/theme-javascripts/0c2e38f62f793a5051d0d14872c9bf34469a6aa3.js?__ws=community.plotly.com" data-theme-id="3" nonce="wGIxIpTkHJZwtZurCiGROoqmQ"></script> <script defer="" src="https://sea2.discourse-cdn.com/flex020/theme-javascripts/d94ac2bc7117e2106ded661606dbd9691e2ffe88.js?__ws=community.plotly.com" data-theme-id="8" nonce="wGIxIpTkHJZwtZurCiGROoqmQ"></script> <link rel="alternate nofollow" type="application/rss+xml" title="RSS feed of 'Range Breaks not working properly'" href="https://community.plotly.com/t/range-breaks-not-working-properly/88936.rss" /> <meta property="og:site_name" content="Plotly Community Forum" /> <meta property="og:type" content="website" /> <meta name="twitter:card" content="summary" /> <meta name="twitter:image" content="https://global.discourse-cdn.com/flex020/uploads/plot/optimized/3X/8/f/8f9d15cb2af01c6ad712d5c820811e9c52f0e7b4_2_1023x308.png" /> <meta property="og:image" content="https://global.discourse-cdn.com/flex020/uploads/plot/optimized/3X/8/f/8f9d15cb2af01c6ad712d5c820811e9c52f0e7b4_2_1023x308.png" /> <meta property="og:url" content="https://community.plotly.com/t/range-breaks-not-working-properly/88936" /> <meta name="twitter:url" content="https://community.plotly.com/t/range-breaks-not-working-properly/88936" /> <meta property="og:title" content="Range Breaks not working properly" /> <meta name="twitter:title" content="Range Breaks not working properly" /> <meta property="og:description" content="I get a weird plot. So when I use 1 minute data as follows symbols = [‘NVDA’, ‘AMD’] data = yf.download(symbols, period=‘5d’, interval=‘1m’) data=data[‘Adj Close’] data=(data-data.iloc[0])/data.iloc[0] data.index=data.index.tz_convert(‘US/Eastern’) import plotly.express as px fig = px.line(data.melt(value_name=‘Close’, ignore_index=False), color=‘Ticker’) fig.update_xaxes(rangebreaks=[dict(bounds=[“sat”, “mon”]), dict(bounds=[16, 9.5], pattern=“hour”)] # hide hours from 4pm to 9:30am ..." /> <meta name="twitter:description" content="I get a weird plot. So when I use 1 minute data as follows symbols = [‘NVDA’, ‘AMD’] data = yf.download(symbols, period=‘5d’, interval=‘1m’) data=data[‘Adj Close’] data=(data-data.iloc[0])/data.iloc[0] data.index=data.index.tz_convert(‘US/Eastern’) import plotly.express as px fig = px.line(data.melt(value_name=‘Close’, ignore_index=False), color=‘Ticker’) fig.update_xaxes(rangebreaks=[dict(bounds=[“sat”, “mon”]), dict(bounds=[16, 9.5], pattern=“hour”)] # hide hours from 4pm to 9:30am ..." /> <meta property="og:article:section" content="📊 Plotly Python" /> <meta property="og:article:section:color" content="92278F" /> <meta name="twitter:label1" value="Reading time" /> <meta name="twitter:data1" value="1 mins 🕑" /> <meta name="twitter:label2" value="Likes" /> <meta name="twitter:data2" value="1 ❤" /> <meta property="article:published_time" content="2024-11-23T19:22:31+00:00" /> <meta property="og:ignore_canonical" content="true" /> <script type="application/ld+json">{"@context":"http://schema.org","@type":"QAPage","name":"Range Breaks not working properly","mainEntity":{"@type":"Question","name":"Range Breaks not working properly","text":"I get a weird plot. So when I use 1 minute data as follows\n\nsymbols = [‘NVDA’, ‘AMD’]\n\ndata = yf.download(symbols, period=‘5d’, interval=‘1m’)\n\ndata=data[‘Adj Close’]\n\ndata=(data-data.iloc[0])/data.iloc[0]\n\ndata.index=data.index.tz_convert(‘US/Eastern’)\n\nimport plotly.express as px\n\nfig = px.line(da…","upvoteCount":1,"answerCount":0,"datePublished":"2024-11-23T19:22:31.836Z","author":{"@type":"Person","name":"trademamba","url":"https://community.plotly.com/u/trademamba"}}}</script> </head> <body class="crawler browser-update"> <div id="custom-banner-webinar"> ✨ Practice building amazing Plotly Dash apps: <a href="https://community.plotly.com/t/holiday-season-app-challenge-nyc-mta/88389" target="_blank">Join the app-building challenge!</a> </div> <script defer="" src="https://sea2.discourse-cdn.com/flex020/theme-javascripts/b891fd37ba759b491111807dba3f7eb4fc402381.js?__ws=community.plotly.com" data-theme-id="7" nonce="wGIxIpTkHJZwtZurCiGROoqmQ"></script> <header> <a href="/"> Plotly Community Forum </a> </header> <div id="main-outlet" class="wrap" role="main"> <div id="topic-title"> <h1> <a href="/t/range-breaks-not-working-properly/88936">Range Breaks not working properly</a> </h1> <div class="topic-category" itemscope itemtype="http://schema.org/BreadcrumbList"> <span itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"> <a href="/c/plotly-python/5" class="badge-wrapper bullet" itemprop="item"> <span class='badge-category-bg' style='background-color: #92278F'></span> <span class='badge-category clear-badge'> <span class='category-name' itemprop='name'>📊 Plotly Python</span> </span> </a> <meta itemprop="position" content="1" /> </span> </div> </div> <div itemscope itemtype='http://schema.org/DiscussionForumPosting'> <meta itemprop='headline' content='Range Breaks not working properly'> <link itemprop='url' href='https://community.plotly.com/t/range-breaks-not-working-properly/88936'> <meta itemprop='datePublished' content='2024-11-23T19:22:31Z'> <meta itemprop='articleSection' content='📊 Plotly Python'> <meta itemprop='keywords' content=''> <div itemprop='publisher' itemscope itemtype="http://schema.org/Organization"> <meta itemprop='name' content='Plotly'> <div itemprop='logo' itemscope itemtype="http://schema.org/ImageObject"> <meta itemprop='url' content='https://global.discourse-cdn.com/flex020/uploads/plot/original/3X/f/3/f3da33405ee7e693abfd12bd4ae334a55e8345d0.png'> </div> </div> <div id='post_1' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://community.plotly.com/u/trademamba'><span itemprop='name'>trademamba</span></a> </span> <link itemprop="mainEntityOfPage" href="https://community.plotly.com/t/range-breaks-not-working-properly/88936"> <link itemprop="image" href="https://global.discourse-cdn.com/flex020/uploads/plot/original/3X/8/f/8f9d15cb2af01c6ad712d5c820811e9c52f0e7b4.png"> <span class="crawler-post-infos"> <time datetime='2024-11-23T19:22:31Z' class='post-time'> November 23, 2024, 7:22pm </time> <meta itemprop='dateModified' content='2024-11-23T19:25:18Z'> <span itemprop='position'>1</span> </span> </div> <div class='post' itemprop='text'> <p>I get a weird plot. So when I use 1 minute data as follows</p> <p>symbols = [‘NVDA’, ‘AMD’]<br> data = yf.download(symbols, period=‘5d’, interval=‘1m’)</p> <p>data=data[‘Adj Close’]</p> <p>data=(data-data.iloc[0])/data.iloc[0]</p> <p>data.index=data.index.tz_convert(‘US/Eastern’)</p> <p>import plotly.express as px<br> fig = px.line(data.melt(value_name=‘Close’, ignore_index=False), color=‘Ticker’)<br> fig.update_xaxes(rangebreaks=[dict(bounds=[“sat”, “mon”]),<br> dict(bounds=[16, 9.5], pattern=“hour”)] # hide hours from 4pm to 9:30am<br> ) # Hide weekends<br> fig.show()</p> <p>I get</p> <p><div class="lightbox-wrapper"><a class="lightbox" href="https://global.discourse-cdn.com/flex020/uploads/plot/original/3X/8/f/8f9d15cb2af01c6ad712d5c820811e9c52f0e7b4.png" data-download-href="/uploads/short-url/kusPyJmHY4AD7S8QOao9v7ps02E.png?dl=1" title="image" rel="noopener nofollow ugc"><img src="https://global.discourse-cdn.com/flex020/uploads/plot/optimized/3X/8/f/8f9d15cb2af01c6ad712d5c820811e9c52f0e7b4_2_690x207.png" alt="image" data-base62-sha1="kusPyJmHY4AD7S8QOao9v7ps02E" width="690" height="207" srcset="https://global.discourse-cdn.com/flex020/uploads/plot/optimized/3X/8/f/8f9d15cb2af01c6ad712d5c820811e9c52f0e7b4_2_690x207.png, https://global.discourse-cdn.com/flex020/uploads/plot/optimized/3X/8/f/8f9d15cb2af01c6ad712d5c820811e9c52f0e7b4_2_1035x310.png 1.5x, https://global.discourse-cdn.com/flex020/uploads/plot/optimized/3X/8/f/8f9d15cb2af01c6ad712d5c820811e9c52f0e7b4_2_1380x414.png 2x" data-dominant-color="EEF2F8"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">image</span><span class="informations">1831×551 5.21 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div></p> <p>but when I change it to using interval = ‘5m’ instead of ‘1m’ i.e.</p> <p>data = yf.download(symbols, period=‘5d’, interval=‘5m’)</p> <p>for some reason it plots nicely? Any thoughts?</p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="1" /> <span class='post-likes'>1 Like</span> </div> </div> <div id='post_2' itemprop='comment' itemscope itemtype='http://schema.org/Comment' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://community.plotly.com/u/r-beginners'><span itemprop='name'>r-beginners</span></a> </span> <link itemprop="image" href="https://global.discourse-cdn.com/flex020/uploads/plot/original/3X/c/d/cdca969ba6c6fbf1129c79f09ca4a0008465bb62.png"> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2024-11-24T01:56:45Z' class='post-time'> November 24, 2024, 1:56am </time> <meta itemprop='dateModified' content='2024-11-24T01:56:45Z'> <span itemprop='position'>2</span> </span> </div> <div class='post' itemprop='text'> <p>Looking at the graph data created, I see scattergl() for 1 minute but scatter() for 5 minutes. scattergl() does not have a rangebreak function, I believe, so the graph is not created. I have not checked the source code, but it may be that the graph type changes depending on the number of data. As a workaround, the graph can be obtained by changing the graph type to the last one.</p> <pre><code class="lang-auto">fig.plotly_restyle({'type': 'scatter'}) fig.show() </code></pre> <p><div class="lightbox-wrapper"><a class="lightbox" href="https://global.discourse-cdn.com/flex020/uploads/plot/original/3X/c/d/cdca969ba6c6fbf1129c79f09ca4a0008465bb62.png" data-download-href="/uploads/short-url/tmvVljxTg59z44VhERDNdHgMLfA.png?dl=1" title="newplot - 2024-11-24T105558.892" rel="noopener nofollow ugc"><img src="https://global.discourse-cdn.com/flex020/uploads/plot/optimized/3X/c/d/cdca969ba6c6fbf1129c79f09ca4a0008465bb62_2_690x231.png" alt="newplot - 2024-11-24T105558.892" data-base62-sha1="tmvVljxTg59z44VhERDNdHgMLfA" width="690" height="231" srcset="https://global.discourse-cdn.com/flex020/uploads/plot/optimized/3X/c/d/cdca969ba6c6fbf1129c79f09ca4a0008465bb62_2_690x231.png, https://global.discourse-cdn.com/flex020/uploads/plot/optimized/3X/c/d/cdca969ba6c6fbf1129c79f09ca4a0008465bb62_2_1035x346.png 1.5x, https://global.discourse-cdn.com/flex020/uploads/plot/original/3X/c/d/cdca969ba6c6fbf1129c79f09ca4a0008465bb62.png 2x" data-dominant-color="EEEFF6"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">newplot - 2024-11-24T105558.892</span><span class="informations">1075×360 33.7 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div></p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="0" /> <span class='post-likes'></span> </div> </div> <div id='post_3' itemprop='comment' itemscope itemtype='http://schema.org/Comment' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://community.plotly.com/u/trademamba'><span itemprop='name'>trademamba</span></a> </span> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2024-11-24T17:41:39Z' class='post-time'> November 24, 2024, 5:41pm </time> <meta itemprop='dateModified' content='2024-11-24T17:41:39Z'> <span itemprop='position'>3</span> </span> </div> <div class='post' itemprop='text'> <aside class="quote no-group" data-username="r-beginners" data-post="2" data-topic="88936"> <div class="title"> <div class="quote-controls"></div> <img loading="lazy" alt="" width="24" height="24" src="https://avatars.discourse-cdn.com/v4/letter/r/a87d85/48.png" class="avatar"> r-beginners:</div> <blockquote> <pre><code class="lang-auto">fig.plotly_restyle({'type': 'scatter'}) </code></pre> </blockquote> </aside> <p>Nice catch! Thanks.</p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="0" /> <span class='post-likes'></span> </div> </div> </div> <div id="related-topics" class="more-topics__list " role="complementary" aria-labelledby="related-topics-title"> <h3 id="related-topics-title" class="more-topics__list-title"> Related topics </h3> <div class="topic-list-container" itemscope itemtype='http://schema.org/ItemList'> <meta itemprop='itemListOrder' content='http://schema.org/ItemListOrderDescending'> <table class='topic-list'> <thead> <tr> <th>Topic</th> <th></th> <th class="replies">Replies</th> <th class="views">Views</th> <th>Activity</th> </tr> </thead> <tbody> <tr class="topic-list-item" id="topic-list-item-55567"> <td class="main-link" itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'> <meta itemprop='position' content='1'> <span class="link-top-line"> <a itemprop='url' href='https://community.plotly.com/t/rangebreaks-not-working-in-domains/55567' class='title raw-link raw-topic-link'>Rangebreaks not working in domains</a> </span> <div class="link-bottom-line"> <a href='/c/plotly-python/5' class='badge-wrapper bullet'> <span class='badge-category-bg' style='background-color: #92278F'></span> <span class='badge-category clear-badge'> <span class='category-name'>📊 Plotly Python</span> </span> </a> <div class="discourse-tags"> </div> </div> </td> <td class="replies"> <span class='posts' title='posts'>1</span> </td> <td class="views"> <span class='views' title='views'>349</span> </td> <td> August 15, 2021 </td> </tr> <tr class="topic-list-item" id="topic-list-item-60660"> <td class="main-link" itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'> <meta itemprop='position' content='2'> <span class="link-top-line"> <a itemprop='url' href='https://community.plotly.com/t/issue-in-displaying-multi-day-data-with-range-breaks/60660' class='title raw-link raw-topic-link'>Issue in displaying multi day data with range breaks</a> </span> <div class="link-bottom-line"> <a href='/c/plotly-python/5' class='badge-wrapper bullet'> <span class='badge-category-bg' style='background-color: #92278F'></span> <span class='badge-category clear-badge'> <span class='category-name'>📊 Plotly Python</span> </span> </a> <div class="discourse-tags"> <a href='https://community.plotly.com/tag/question' class='discourse-tag'>question</a> </div> </div> </td> <td class="replies"> <span class='posts' title='posts'>1</span> </td> <td class="views"> <span class='views' title='views'>2057</span> </td> <td> February 3, 2022 </td> </tr> <tr class="topic-list-item" id="topic-list-item-84699"> <td class="main-link" itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'> <meta itemprop='position' content='3'> <span class="link-top-line"> <a itemprop='url' href='https://community.plotly.com/t/rangebreaks-weird-behaviour-of-rangebreaks/84699' class='title raw-link raw-topic-link'>[rangebreaks] Weird behaviour of rangebreaks</a> </span> <div class="link-bottom-line"> <a href='/c/plotly-python/5' class='badge-wrapper bullet'> <span class='badge-category-bg' style='background-color: #92278F'></span> <span class='badge-category clear-badge'> <span class='category-name'>📊 Plotly Python</span> </span> </a> <div class="discourse-tags"> </div> </div> </td> <td class="replies"> <span class='posts' title='posts'>0</span> </td> <td class="views"> <span class='views' title='views'>67</span> </td> <td> May 24, 2024 </td> </tr> <tr class="topic-list-item" id="topic-list-item-46073"> <td class="main-link" itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'> <meta itemprop='position' content='4'> <span class="link-top-line"> <a itemprop='url' href='https://community.plotly.com/t/how-to-use-rangebreaks-for-a-datetime-index-at-levels-smaller-than-1-hour/46073' class='title raw-link raw-topic-link'>How to use rangebreaks for a datetime index at levels smaller than 1 hour?</a> </span> <div class="link-bottom-line"> <a href='/c/plotly-python/5' class='badge-wrapper bullet'> <span class='badge-category-bg' style='background-color: #92278F'></span> <span class='badge-category clear-badge'> <span class='category-name'>📊 Plotly Python</span> </span> </a> <div class="discourse-tags"> </div> </div> </td> <td class="replies"> <span class='posts' title='posts'>3</span> </td> <td class="views"> <span class='views' title='views'>5576</span> </td> <td> September 4, 2024 </td> </tr> <tr class="topic-list-item" id="topic-list-item-53631"> <td class="main-link" itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'> <meta itemprop='position' content='5'> <span class="link-top-line"> <a itemprop='url' href='https://community.plotly.com/t/hello-how-to-set-rangebreaks-for-datetime/53631' class='title raw-link raw-topic-link'>Hello, how to set rangebreaks for datetime?</a> </span> <div class="link-bottom-line"> <a href='/c/plotly-python/5' class='badge-wrapper bullet'> <span class='badge-category-bg' style='background-color: #92278F'></span> <span class='badge-category clear-badge'> <span class='category-name'>📊 Plotly Python</span> </span> </a> <div class="discourse-tags"> </div> </div> </td> <td class="replies"> <span class='posts' title='posts'>0</span> </td> <td class="views"> <span class='views' title='views'>735</span> </td> <td> June 7, 2021 </td> </tr> </tbody> </table> </div> </div> </div> <footer class="container wrap"> <nav class='crawler-nav'> <ul> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/' itemprop="url">Home </a> </span> </li> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/categories' itemprop="url">Categories </a> </span> </li> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/guidelines' itemprop="url">Guidelines </a> </span> </li> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/tos' itemprop="url">Terms of Service </a> </span> </li> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/privacy' itemprop="url">Privacy Policy </a> </span> </li> </ul> </nav> <p class='powered-by-link'>Powered by <a href="https://www.discourse.org">Discourse</a>, best viewed with JavaScript enabled</p> </footer> <div class="buorg"><div>Unfortunately, <a href="https://www.discourse.org/faq/#browser">your browser is unsupported</a>. Please <a href="https://browsehappy.com">switch to a supported browser</a> to view rich content, log in and reply.</div></div> </body> </html>