Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 1011 Bytes

README.md

File metadata and controls

15 lines (13 loc) · 1011 Bytes

Chaquopy Matplotlib demo

This is a simple app which 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.