-
Notifications
You must be signed in to change notification settings - Fork 15
TypeError with Cartesian #59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for opening an issue. This is due to an incompatibility with the current API for |
i tested this on a PyBadge and with the fix the simple example is working. |
Hi,
Thank you, now it works with different boards and different displays.
It's a really handy widget!
However, at the moment I can't draw lines (update_line). I only have
a pointer (update_pointer) that moves. Could you add an example of
use in the Circuitpython libraries bundle?
Best regards,
Mike
********************************************
Michaël BOTTIN - Enseignant
IUT RENNES - Département GEII
********************************************
Le 16/12/2021 03:56:32, foamyguy ***@***.***> a écrit :
Closed #59 [#59] via #60 [#60].
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub [#59 (comment)], or unsubscribe [https://github.com/notifications/unsubscribe-auth/AJMNCXOKBG7CEWR5BMGAAGTURFIN5ANCNFSM5JXXJVZA].
Triage notifications on the go with GitHub Mobile for iOS [https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675] or Android [https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub].
|
@MBottinIUT There is work underway to draw lines in the cartesian widget. See PR #62 for the current status. I'll be looking into it more over the upcoming weekend so I will probably get merged into the library soon. But you can grab it now from the branch of that PR if you want to give it a try sooner. |
Hi Mike,
you can copy the cartesian.py and delete the cartesian.mpy file in your library folder to test it... FoamyGuy was faster with typing ;-) |
Hi Stefan,
the module cartesian.py and the method 'update_line' work perfectly well. Thank you.
When will this file change be reflected in the Adafruit package?
One last question: is it possible to draw a graph with refreshing values? I have tried but I can't see how to clear the data lines from the previous display. As a result, the lines overlap on each pass and after a while I get a memory allocation problem.
Thanks in advance and happy Christmas and New Year.
Mike
********************************************
Michaël BOTTIN - Enseignant
IUT RENNES - Département GEII
********************************************
Le 17/12/2021 15:29:03, Stefan Krüger ***@***.***> a écrit :
Hi Mike,
i had exactly this issue:
issue #61 [#61]
and created a fix and an example:
* pullrequest #62 [#62]
* fixed cartesian.py [https://github.com/adafruit/Adafruit_CircuitPython_DisplayIO_Layout/blob/c356d2aff5cc153588f65bd1d879a0d8a9a09c9f/adafruit_displayio_layout/widgets/cartesian.py]
* example: examples/displayio_layout_cartesian_lineplot.py [https://github.com/adafruit/Adafruit_CircuitPython_DisplayIO_Layout/blob/c356d2aff5cc153588f65bd1d879a0d8a9a09c9f/examples/displayio_layout_cartesian_lineplot.py]
you can copy the cartesian.py and delete the cartesian.mpy file in your library folder to test it...
—
Reply to this email directly, view it on GitHub [#59 (comment)], or unsubscribe [https://github.com/notifications/unsubscribe-auth/AJMNCXL5WLYDKRBGOPTPMFTURNCK3ANCNFSM5JXXJVZA].
Triage notifications on the go with GitHub Mobile for iOS [https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675] or Android [https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub].
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Hi Mike, all your wishes are already on there way 🤣 i just added a currently not possible is to update a already drawn line.. |
Hi,
I tried to add a Cartesian to a ST7735 display.
All the elements (axis, tick, labels...) appear, but when I tried to add some points, I've got a 'TypeError' message.
I post this on Adafruit forum but someone told me to post an issue here.
This is my code
Hope you can find what's wrong.
Mike
The text was updated successfully, but these errors were encountered: