René's URL Explorer Experiment


Title: Using 'date' type for scatter xaxis fails when coordinates stored in Numpy array · Issue #1927 · plotly/plotly.py · GitHub

Open Graph Title: Using 'date' type for scatter xaxis fails when coordinates stored in Numpy array · Issue #1927 · plotly/plotly.py

X Title: Using 'date' type for scatter xaxis fails when coordinates stored in Numpy array · Issue #1927 · plotly/plotly.py

Description: It's possible (nay, likely) that I'm misunderstanding something but the docs indicate that Numpy arrays containing timestamps should be allowed. Yet, I'm currently having to cast this into a Pandas Series for it to work: # plotly date ax...

Open Graph Description: It's possible (nay, likely) that I'm misunderstanding something but the docs indicate that Numpy arrays containing timestamps should be allowed. Yet, I'm currently having to cast this into a Pandas...

X Description: It's possible (nay, likely) that I'm misunderstanding something but the docs indicate that Numpy arrays containing timestamps should be allowed. Yet, I'm currently having to cast this i...

Opengraph URL: https://github.com/plotly/plotly.py/issues/1927

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Using 'date' type for scatter xaxis fails when coordinates stored in Numpy array","articleBody":"It's possible (nay, likely) that I'm misunderstanding something but the [docs](https://plot.ly/python/reference/#scatter-x) indicate that Numpy arrays containing timestamps should be allowed. Yet, I'm currently having to cast this into a Pandas Series for it to work:\r\n\r\n```python\r\n# plotly date axis bug?\r\nimport dash\r\nimport dash_core_components as dcc\r\nimport dash_html_components as html\r\nimport plotly.graph_objects as go\r\n\r\nimport numpy as np\r\nimport pandas as pd\r\n\r\n\r\napp = dash.Dash(__name__)\r\n\r\ntimestamps = np.array(\r\n    [\r\n        '2017-05-24T23:00:21',\r\n        '2017-05-24T23:00:23',\r\n        '2017-05-24T23:00:25',\r\n        '2017-05-24T23:00:27',\r\n        '2017-05-24T23:00:29'\r\n    ],\r\n    dtype='datetime64[ns]'\r\n)\r\nfake_data = np.arange(len(timestamps))\r\n\r\nfig_working = go.Figure().add_scatter(\r\n    x=pd.Series(timestamps),\r\n    y=fake_data\r\n).update_layout(xaxis_type='date')\r\n\r\n\r\nfig_working_not_so_much = go.Figure().add_scatter(\r\n    x=timestamps,\r\n    y=fake_data\r\n).update_layout(xaxis_type='date')\r\n\r\n\r\napp.layout = html.Div(\r\n    [\r\n        html.H1(\"Working with a pandas.Series:\"),\r\n        dcc.Graph(figure=fig_working),\r\n\r\n        html.H1(\"Same data in a numpy.array:\"),\r\n        dcc.Graph(figure=fig_working_not_so_much),\r\n\r\n        html.H1(\"😿\")\r\n    ]\r\n)\r\n\r\n\r\nif __name__ == '__main__':\r\n    app.run_server(debug=True)\r\n```\r\n\r\nThis yields:\r\n\r\n![image](https://user-images.githubusercontent.com/423534/69572911-b54f5480-0f8a-11ea-8bca-7c0983ebaee4.png)\r\n","author":{"url":"https://github.com/jordanweaver","@type":"Person","name":"jordanweaver"},"datePublished":"2019-11-25T19:51:59Z","url":"https://github.com/plotly/plotly.py/issues/1927"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:18987e7b-6878-608d-b080-1e823d4483b7
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCFBC:87955:4DA228:6674C8:6B01776D
html-safe-nonce8e63090b20369e67d5016c5ae0abb85404f4fdb734eeedee80e961d97078230a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRkJDOjg3OTU1OjREQTIyODo2Njc0Qzg6NkIwMTc3NkQiLCJ2aXNpdG9yX2lkIjoiMTgyNDUyOTY2NTY0NjIyOTM1NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac26a0cbdac97a65c9eaf9b0b48f0ebe3fe736cca38738be4dad01e75a49cd655d
hovercard-subject-tagissue:528302190
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/plotly/plotly.py/1927/issue_layout
twitter:imagehttps://opengraph.githubassets.com/4e61a58b054cba6502411f341aa7398fd1e8b3c64fbde379a342bf4cf382d850/plotly/plotly.py/issues/1927
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4e61a58b054cba6502411f341aa7398fd1e8b3c64fbde379a342bf4cf382d850/plotly/plotly.py/issues/1927
og:image:altIt's possible (nay, likely) that I'm misunderstanding something but the docs indicate that Numpy arrays containing timestamps should be allowed. Yet, I'm currently having to cast this into a Pandas...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejordanweaver
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/plotly/plotly.py git https://github.com/plotly/plotly.py.git
octolytics-dimension-user_id5997976
octolytics-dimension-user_loginplotly
octolytics-dimension-repository_id14579099
octolytics-dimension-repository_nwoplotly/plotly.py
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id14579099
octolytics-dimension-repository_network_root_nwoplotly/plotly.py
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/plotly/plotly.py/issues/1927#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fplotly%2Fplotly.py%2Fissues%2F1927
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fplotly%2Fplotly.py%2Fissues%2F1927
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=plotly%2Fplotly.py
Reloadhttps://github.com/plotly/plotly.py/issues/1927
Reloadhttps://github.com/plotly/plotly.py/issues/1927
Reloadhttps://github.com/plotly/plotly.py/issues/1927
plotlyhttps://github.com/plotly
plotly.pyhttps://github.com/plotly/plotly.py
Codehttps://github.com/plotly/plotly.py
Issues650 (650)https://github.com/plotly/plotly.py/issues
Pull requests83 (83)https://github.com/plotly/plotly.py/pulls
Actionshttps://github.com/plotly/plotly.py/actions
Security and qualityhttps://github.com/plotly/plotly.py/security
Insightshttps://github.com/plotly/plotly.py/insights
https://github.com/plotly/plotly.py
New issuehttps://github.com/login?return_to=https://github.com/plotly/plotly.py/issues/1927
New issuehttps://github.com/login?return_to=https://github.com/plotly/plotly.py/issues/1927
Using 'date' type for scatter xaxis fails when coordinates stored in Numpy arrayhttps://github.com/plotly/plotly.py/issues/1927#top
https://github.com/jordanweaver
jordanweaverhttps://github.com/jordanweaver
on Nov 25, 2019https://github.com/plotly/plotly.py/issues/1927#issue-528302190
docshttps://plot.ly/python/reference/#scatter-x
https://user-images.githubusercontent.com/423534/69572911-b54f5480-0f8a-11ea-8bca-7c0983ebaee4.png
jordanweaverhttps://github.com/jordanweaver
on Nov 25, 2019https://github.com/plotly/plotly.py/issues/1927#event-2829422431
https://github.com/eceforge
eceforgehttps://github.com/eceforge
on Apr 14, 2021https://github.com/plotly/plotly.py/issues/1927#issuecomment-819716410
https://github.com/nicolaskruchten
nicolaskruchtenhttps://github.com/nicolaskruchten
on Apr 22, 2021https://github.com/plotly/plotly.py/issues/1927#issuecomment-825142724
@jonmmeasehttps://github.com/jonmmease
#2955https://github.com/plotly/plotly.py/pull/2955
https://github.com/nicolaskruchten
nicolaskruchtenhttps://github.com/nicolaskruchten
on May 31, 2021https://github.com/plotly/plotly.py/issues/1927#issuecomment-851610802
@jonmmeasehttps://github.com/jonmmease
#3022https://github.com/plotly/plotly.py/pull/3022
https://github.com/nicolaskruchten
nicolaskruchtenhttps://github.com/nicolaskruchten
on May 31, 2021https://github.com/plotly/plotly.py/issues/1927#issuecomment-851612027
nicolaskruchtenhttps://github.com/nicolaskruchten
completedhttps://github.com/plotly/plotly.py/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on May 31, 2021https://github.com/plotly/plotly.py/issues/1927#event-4821638198
Sign up for freehttps://github.com/signup?return_to=https://github.com/plotly/plotly.py/issues/1927
Sign in to commenthttps://github.com/login?return_to=https://github.com/plotly/plotly.py/issues/1927
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.