René's URL Explorer Experiment


Title: Angled/Skewed Axis · Issue #454 · core-plot/core-plot · GitHub

Open Graph Title: Angled/Skewed Axis · Issue #454 · core-plot/core-plot

X Title: Angled/Skewed Axis · Issue #454 · core-plot/core-plot

Description: Hello, I'd like to inquire about and offer to help add a feature I'd like to be able to use but I'm not quite sure where to start with implementing it. There's a scientific chart I'd like to make called a Skew-T Log-P diagram. The Y axis...

Open Graph Description: Hello, I'd like to inquire about and offer to help add a feature I'd like to be able to use but I'm not quite sure where to start with implementing it. There's a scientific chart I'd like to make c...

X Description: Hello, I'd like to inquire about and offer to help add a feature I'd like to be able to use but I'm not quite sure where to start with implementing it. There's a scientific chart I&...

Opengraph URL: https://github.com/core-plot/core-plot/issues/454

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Angled/Skewed Axis","articleBody":"Hello,\r\n\r\nI'd like to inquire about and offer to help add a feature I'd like to be able to use but I'm not quite sure where to start with implementing it. There's a scientific chart I'd like to make called a Skew-T Log-P diagram. The Y axis (Pressure as a vertical coordinate) is in logarithmic space, which thankfully core-plot already does! The strange part is that the X-axis is skewed (Temperature) anywhere from 33-45 degrees to the right of the vertical axis. I noticed that there is a not-yet implemented ScaleType identifier called 'angular', which sounds like it would be a good direction for being able to implement such a transformation. Here's an example plot below. The solid red line highlighted as the freezing level is an example of how a constant X axis value is represented by a slanted line. \r\n\r\n![image](https://user-images.githubusercontent.com/1411265/135560291-eb8685db-a70d-495d-9be0-72400c0bb5b7.png)\r\n\r\nThe Charts library for iOS has the ability to apply a matrix transform in which the underlying data can be skewed, but there's nothing for the axis lines. Awkwardly, Charts also doesn't support logarithmic data spaces easily. I would also prefer to use core-plot since it leverages the GPU more than Charts. I'd also prefer to be able to keep things in data-space coordinates and implement this at a lower level. \r\n\r\nI've implemented this a little more directly before using Qt Widgets using the following functions to transform from data space to pixel space. I understand that implementing this would be required at a lower level than what's done in Qt here, but if I can be directed to a good starting place I think I could figure out the rest and make a pull request. \r\n\r\nAny suggestions on where to start?\r\n\r\n\r\n```\r\ndef initUI(self):\r\n        ## These are some padding variables for axis drawing, and data-space limits on the graph\r\n        self.lpad = 30; self.rpad = 65\r\n        self.tpad = 20; self.bpad = 20\r\n        self.tlx = self.rpad; self.tly = self.tpad\r\n        self.wid = self.size().width() - self.rpad\r\n        self.hgt = self.size().height() - self.bpad\r\n        self.brx = self.wid ; self.bry = self.hgt\r\n        self.pmax = 1050.; self.pmin = 100.\r\n        self.barbx = self.brx + self.rpad / 2\r\n        self.log_pmax = np.log(self.pmax); self.log_pmin = np.log(self.pmin)\r\n        self.bltmpc = -50; self.brtmpc = 50; self.dt = 10\r\n        self.xskew = 100 / 3.\r\n        self.xrange = self.brtmpc - self.bltmpc\r\n        self.yrange = np.tan(np.deg2rad(self.xskew)) * self.xrange\r\n        self.clip = QRect(QPoint(self.lpad, self.tly), QPoint(self.brx + self.rpad, self.bry))\r\n        self.originx = 0. # self.size().width() / 2\r\n        self.originy = 0. # self.size().height() / 2\r\n        self.scale = 1.\r\n```\r\n\r\n```\r\n    def pres_to_pix(self, p):\r\n        scl1 = self.log_pmax - self.log_pmin\r\n        scl2 = self.log_pmax - np.log(p)\r\n        return self.bry - (scl2 / scl1) * (self.bry - self.tpad)\r\n\r\n    def tmpc_to_pix(self, t, p):\r\n         scl1 = self.brtmpc - (((self.bry - self.pres_to_pix(p)) /\r\n                              (self.bry - self.tpad)) * self.yrange)\r\n        return self.brx - (((scl1 - t) / self.xrange) * (self.brx - self.lpad))\r\n```\r\n\r\n\r\n\r\n\r\n","author":{"url":"https://github.com/keltonhalbert","@type":"Person","name":"keltonhalbert"},"datePublished":"2021-10-01T03:48:12.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":11},"url":"https://github.com/454/core-plot/issues/454"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:28e263ad-d78e-83c5-e9f0-de2052b7128b
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCC60:E7822:D58AFD4:114554C3:69770232
html-safe-nonce779e59a9fc18839e1c568a755a6c2218e9ec588ed9f1ad655e2cb76057e6a7a8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQzYwOkU3ODIyOkQ1OEFGRDQ6MTE0NTU0QzM6Njk3NzAyMzIiLCJ2aXNpdG9yX2lkIjoiMTM4NzY2OTk2NjIxMDY2Mjk2MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac5061bbb590edd569b20133420c6dbce45e88eb46601c1a48ac41362bd2d898c5
hovercard-subject-tagissue:1012851056
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/core-plot/core-plot/454/issue_layout
twitter:imagehttps://opengraph.githubassets.com/058a6e6dbc936c17115e754d096c0f96d0d57157f036044575f5ce8384187ba2/core-plot/core-plot/issues/454
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/058a6e6dbc936c17115e754d096c0f96d0d57157f036044575f5ce8384187ba2/core-plot/core-plot/issues/454
og:image:altHello, I'd like to inquire about and offer to help add a feature I'd like to be able to use but I'm not quite sure where to start with implementing it. There's a scientific chart I'd like to make c...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamekeltonhalbert
hostnamegithub.com
expected-hostnamegithub.com
None01d198479908d09a841b2febe8eb105a81af2af7d81830960fe0971e1f4adc09
turbo-cache-controlno-preview
go-importgithub.com/core-plot/core-plot git https://github.com/core-plot/core-plot.git
octolytics-dimension-user_id6242309
octolytics-dimension-user_logincore-plot
octolytics-dimension-repository_id15383182
octolytics-dimension-repository_nwocore-plot/core-plot
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id15383182
octolytics-dimension-repository_network_root_nwocore-plot/core-plot
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
releasef752335dbbea672610081196a1998e39aec5e14b
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/core-plot/core-plot/issues/454#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcore-plot%2Fcore-plot%2Fissues%2F454
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcore-plot%2Fcore-plot%2Fissues%2F454
Sign up https://patch-diff.githubusercontent.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=core-plot%2Fcore-plot
Reloadhttps://patch-diff.githubusercontent.com/core-plot/core-plot/issues/454
Reloadhttps://patch-diff.githubusercontent.com/core-plot/core-plot/issues/454
Reloadhttps://patch-diff.githubusercontent.com/core-plot/core-plot/issues/454
core-plot https://patch-diff.githubusercontent.com/core-plot
core-plothttps://patch-diff.githubusercontent.com/core-plot/core-plot
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fcore-plot%2Fcore-plot
Fork 603 https://patch-diff.githubusercontent.com/login?return_to=%2Fcore-plot%2Fcore-plot
Star 2.8k https://patch-diff.githubusercontent.com/login?return_to=%2Fcore-plot%2Fcore-plot
Code https://patch-diff.githubusercontent.com/core-plot/core-plot
Issues 47 https://patch-diff.githubusercontent.com/core-plot/core-plot/issues
Pull requests 2 https://patch-diff.githubusercontent.com/core-plot/core-plot/pulls
Discussions https://patch-diff.githubusercontent.com/core-plot/core-plot/discussions
Actions https://patch-diff.githubusercontent.com/core-plot/core-plot/actions
Projects 0 https://patch-diff.githubusercontent.com/core-plot/core-plot/projects
Wiki https://patch-diff.githubusercontent.com/core-plot/core-plot/wiki
Security 0 https://patch-diff.githubusercontent.com/core-plot/core-plot/security
Insights https://patch-diff.githubusercontent.com/core-plot/core-plot/pulse
Code https://patch-diff.githubusercontent.com/core-plot/core-plot
Issues https://patch-diff.githubusercontent.com/core-plot/core-plot/issues
Pull requests https://patch-diff.githubusercontent.com/core-plot/core-plot/pulls
Discussions https://patch-diff.githubusercontent.com/core-plot/core-plot/discussions
Actions https://patch-diff.githubusercontent.com/core-plot/core-plot/actions
Projects https://patch-diff.githubusercontent.com/core-plot/core-plot/projects
Wiki https://patch-diff.githubusercontent.com/core-plot/core-plot/wiki
Security https://patch-diff.githubusercontent.com/core-plot/core-plot/security
Insights https://patch-diff.githubusercontent.com/core-plot/core-plot/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/core-plot/core-plot/issues/454
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/core-plot/core-plot/issues/454
#455https://github.com/core-plot/core-plot/pull/455
Angled/Skewed Axishttps://patch-diff.githubusercontent.com/core-plot/core-plot/issues/454#top
#455https://github.com/core-plot/core-plot/pull/455
https://github.com/keltonhalbert
https://github.com/keltonhalbert
keltonhalberthttps://github.com/keltonhalbert
on Oct 1, 2021https://github.com/core-plot/core-plot/issues/454#issue-1012851056
https://user-images.githubusercontent.com/1411265/135560291-eb8685db-a70d-495d-9be0-72400c0bb5b7.png
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.