René's URL Explorer Experiment


Title: Different logarithmic scale behavior when compared to Qwt · Issue #94 · PlotPyStack/PythonQwt · GitHub

Open Graph Title: Different logarithmic scale behavior when compared to Qwt · Issue #94 · PlotPyStack/PythonQwt

X Title: Different logarithmic scale behavior when compared to Qwt · Issue #94 · PlotPyStack/PythonQwt

Description: Hi folks, We are having different results when using the logarithmic scale compared with Qwt. Qwt from PyQt5.QtWidgets import QApplication from Qwt5 import QwtPlot, QwtPlotCurve, QwtLog10ScaleEngine app = QApplication([]) plot = QwtPlot(...

Open Graph Description: Hi folks, We are having different results when using the logarithmic scale compared with Qwt. Qwt from PyQt5.QtWidgets import QApplication from Qwt5 import QwtPlot, QwtPlotCurve, QwtLog10ScaleEngin...

X Description: Hi folks, We are having different results when using the logarithmic scale compared with Qwt. Qwt from PyQt5.QtWidgets import QApplication from Qwt5 import QwtPlot, QwtPlotCurve, QwtLog10ScaleEngin...

Opengraph URL: https://github.com/PlotPyStack/PythonQwt/issues/94

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Different logarithmic scale behavior when compared to Qwt","articleBody":"Hi folks,\r\n\r\nWe are having different results when using the logarithmic scale compared with `Qwt`.\r\n\r\n# Qwt\r\n\r\n```python\r\nfrom PyQt5.QtWidgets import QApplication\r\nfrom Qwt5 import QwtPlot, QwtPlotCurve, QwtLog10ScaleEngine\r\n\r\n\r\napp = QApplication([])\r\nplot = QwtPlot()\r\nplot.setWindowTitle(\"Qwt\")\r\nplot.resize(800, 600)\r\n\r\ny = [1, 500, 1000, 1500]\r\nx = [1, 2, 3, 4]\r\n\r\ncurve = QwtPlotCurve()\r\ncurve.setData(x, y)\r\n\r\nengine = QwtLog10ScaleEngine()\r\nplot.setAxisScaleEngine(QwtPlot.yLeft, engine)\r\n\r\ncurve.attach(plot)\r\nplot.show()\r\napp.exec()\r\n```\r\n\r\n![image](https://github.com/user-attachments/assets/8c443ef1-665a-4417-bf99-5c7715799ea7)\r\n\r\n\r\n\r\n# PythonQwt\r\n\r\n```python\r\nfrom PyQt5.QtWidgets import QApplication\r\nfrom qwt import QwtPlot, QwtPlotCurve, QwtLogScaleEngine\r\n\r\n\r\napp = QApplication([])\r\nplot = QwtPlot()\r\nplot.setWindowTitle(\"PythonQwt\")\r\nplot.resize(800, 600)\r\n\r\ny = [1, 500, 1000, 1500]\r\nx = [1, 2, 3, 4]\r\n\r\ncurve = QwtPlotCurve()\r\ncurve.setData(x, y)\r\n\r\nengine = QwtLogScaleEngine()\r\nplot.setAxisScaleEngine(QwtPlot.yLeft, engine)\r\n\r\ncurve.attach(plot)\r\nplot.show()\r\napp.exec()\r\n```\r\n\r\n![image](https://github.com/user-attachments/assets/b8621033-7c7b-41fa-9f0a-b7572a7c2b03)\r\n\r\n\r\n---\r\n\r\nThe original `Qwt` scale looks right, but `PythonQwt` is not really logarithmic... any ideas what the problem might be? I suspect it might be related to the fact that now `PythonQwt` uses a better overall auto range calculation to give some room on each side of each axis (which looks much better in normal situations), but this extra room might not be playing well with the old logarithmic scaling code, but this is just a hunch.\r\n\r\nI did look at the [`QwtLogScaleEngine.autoScale` method](https://github.com/PlotPyStack/PythonQwt/blob/582289a8f29972690e1567a2d423e4894f42bcaf/qwt/scale_engine.py#L643-L714) in comparison [with the original](https://sourceforge.net/p/qwt/code/HEAD/tree/trunk/qwt/src/qwt_scale_engine.cpp#l798), and everything seems well.\r\n\r\nAny hints/suggestions would be greatly appreciated! 👍 \r\n","author":{"url":"https://github.com/nicoddemus","@type":"Person","name":"nicoddemus"},"datePublished":"2024-12-27T12:50:29.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/94/PythonQwt/issues/94"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:35595561-be9f-ae24-17dc-e52802525143
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA3A2:B4897:27B6C9C:355D36A:6972E195
html-safe-noncea9c1415a3d17d5fde169bc1f1e245c837c98ebe24971f01d82034c119c3281e5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBM0EyOkI0ODk3OjI3QjZDOUM6MzU1RDM2QTo2OTcyRTE5NSIsInZpc2l0b3JfaWQiOiI3MjA0OTAzODM5NDg2NjMyMzQxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac82bd5202670dccdeba433484e84d43c43c5ca6d7054e6bb2323e32dd49acc448
hovercard-subject-tagissue:2760848892
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/PlotPyStack/PythonQwt/94/issue_layout
twitter:imagehttps://opengraph.githubassets.com/204e9b56393cedc5072196efdd9ef47f057ac8f8f5a5d3d64617c31e0f86eaa2/PlotPyStack/PythonQwt/issues/94
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/204e9b56393cedc5072196efdd9ef47f057ac8f8f5a5d3d64617c31e0f86eaa2/PlotPyStack/PythonQwt/issues/94
og:image:altHi folks, We are having different results when using the logarithmic scale compared with Qwt. Qwt from PyQt5.QtWidgets import QApplication from Qwt5 import QwtPlot, QwtPlotCurve, QwtLog10ScaleEngin...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamenicoddemus
hostnamegithub.com
expected-hostnamegithub.com
None824b30a290fe1f3775d1c3b755ace6ec71165752363f95d9255c1b87220040e4
turbo-cache-controlno-preview
go-importgithub.com/PlotPyStack/PythonQwt git https://github.com/PlotPyStack/PythonQwt.git
octolytics-dimension-user_id145201262
octolytics-dimension-user_loginPlotPyStack
octolytics-dimension-repository_id41204495
octolytics-dimension-repository_nwoPlotPyStack/PythonQwt
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id41204495
octolytics-dimension-repository_network_root_nwoPlotPyStack/PythonQwt
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
release7ef892904a22cef6ce15e4347cbf70e4cbfdc883
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/PlotPyStack/PythonQwt/issues/94#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPlotPyStack%2FPythonQwt%2Fissues%2F94
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://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPlotPyStack%2FPythonQwt%2Fissues%2F94
Sign up https://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=PlotPyStack%2FPythonQwt
Reloadhttps://github.com/PlotPyStack/PythonQwt/issues/94
Reloadhttps://github.com/PlotPyStack/PythonQwt/issues/94
Reloadhttps://github.com/PlotPyStack/PythonQwt/issues/94
PlotPyStack https://github.com/PlotPyStack
PythonQwthttps://github.com/PlotPyStack/PythonQwt
Notifications https://github.com/login?return_to=%2FPlotPyStack%2FPythonQwt
Fork 30 https://github.com/login?return_to=%2FPlotPyStack%2FPythonQwt
Star 100 https://github.com/login?return_to=%2FPlotPyStack%2FPythonQwt
Code https://github.com/PlotPyStack/PythonQwt
Issues 7 https://github.com/PlotPyStack/PythonQwt/issues
Pull requests 0 https://github.com/PlotPyStack/PythonQwt/pulls
Actions https://github.com/PlotPyStack/PythonQwt/actions
Projects 0 https://github.com/PlotPyStack/PythonQwt/projects
Wiki https://github.com/PlotPyStack/PythonQwt/wiki
Security 0 https://github.com/PlotPyStack/PythonQwt/security
Insights https://github.com/PlotPyStack/PythonQwt/pulse
Code https://github.com/PlotPyStack/PythonQwt
Issues https://github.com/PlotPyStack/PythonQwt/issues
Pull requests https://github.com/PlotPyStack/PythonQwt/pulls
Actions https://github.com/PlotPyStack/PythonQwt/actions
Projects https://github.com/PlotPyStack/PythonQwt/projects
Wiki https://github.com/PlotPyStack/PythonQwt/wiki
Security https://github.com/PlotPyStack/PythonQwt/security
Insights https://github.com/PlotPyStack/PythonQwt/pulse
New issuehttps://github.com/login?return_to=https://github.com/PlotPyStack/PythonQwt/issues/94
New issuehttps://github.com/login?return_to=https://github.com/PlotPyStack/PythonQwt/issues/94
Different logarithmic scale behavior when compared to Qwthttps://github.com/PlotPyStack/PythonQwt/issues/94#top
https://github.com/nicoddemus
https://github.com/nicoddemus
nicoddemushttps://github.com/nicoddemus
on Dec 27, 2024https://github.com/PlotPyStack/PythonQwt/issues/94#issue-2760848892
https://private-user-images.githubusercontent.com/1085180/398939915-8c443ef1-665a-4417-bf99-5c7715799ea7.png?jwt=eyJ0eXAiOiJKV1QiLC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MkYyMDI2MDEyMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjAxMjNUMDI0ODUzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZTU2NDViMzY3OTFjMGE0Y2Q5NDQ3ZTViOGZmZjkzZjE4MzM1YjUxMTY1M2FiNjMxYzgwODVlMGU1YTczOTI0MiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.-iHuZXDt3uuVLtFEtJUHMm0k6OmAESrbDbn0pYSJUyM
QwtLogScaleEngine.autoScale methodhttps://github.com/PlotPyStack/PythonQwt/blob/582289a8f29972690e1567a2d423e4894f42bcaf/qwt/scale_engine.py#L643-L714
with the originalhttps://sourceforge.net/p/qwt/code/HEAD/tree/trunk/qwt/src/qwt_scale_engine.cpp#l798
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.