Private Sub btnSimpleBar_Click
Dim df As PyWrapper = LOAToDataFrame(Sales)
Dim ax As PyWrapper = SimpleBar(df)
GetImageAndShow(ax)
End Sub
Private Sub SimpleBar (df As PyWrapper) As PyWrapper
Dim ax As PyWrapper = df.Run("plot").ArgNamed("kind", "bar").ArgNamed("x", "Month").ArgNamed("y", "Sales") 'df.plot(kind=bar, x="Month", y="Sales")
Return ax
End Sub
Private Sub GetImageAndShow(ax As PyWrapper)
Wait For (PlotToImage(ax)) Complete (Result As B4XBitmap)
B4XImageView1.Bitmap = Result
End Sub