CatJason / chaquopy-matplotlib

Chaquopy Matplotlib example

Home Page:https://chaquo.com/chaquopy/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chaquopy Matplotlib demo

This is the source code of the app demonstrated in my interview with Eric Decanini. It uses Chaquopy to include Python code and libraries in an Android app.

  • The top-level and module-level build.gradle files contain the Chaquopy configuration, including installing Matplotlib.
  • The MainActivity inputs two strings from text boxes and passes them to a Python function.
  • The Python code parses the strings into lists of numbers, and uses Matplotlib to plot them on a chart.
  • The Python function then returns the chart image as a byte array in PNG format, which the MainActivity displays in an ImageView.

About

Chaquopy Matplotlib example

https://chaquo.com/chaquopy/

License:MIT License


Languages

Language:Kotlin 90.8%Language:Python 9.2%