Python data on charts


Is there a way to put the data from Python script on a chart?  E.g I have a Python script, which gets the data, calculates a result and I want to place that result somewhere near the bar, or anywhere on the chart. At the moment, when I run the script, I can only see Python icon on the chart and output in the journal or anywhere else I place it, e.g db, but not on the chart.