Skip to main content

Interface to Autoplot Java library

Project description

Autoplot/Python Interface Tools

Install using pip install autoplot

from autoplot import javaaddpath, toDateTime

# Download autoplot.jar if needed and return Python bridge object
org = javaaddpath('http://autoplot.org/jnlp/latest/autoplot.jar')

# Create Autoplot Data Set
apds = org.autoplot.idlsupport.APDataSet()

# Set URI
apds.setDataSetURI('http://autoplot.org/data/swe-np.xls?column=data&depend0=dep0')

# Get the data
apds.doGetDataSet()

print(apds.toString())

# Extract data values
vv = apds.values()
tt= toDateTime( apds, 'dep0' )

from matplotlib import pyplot as plt
plt.plot(tt,vv)
plt.show()

Contact

Jeremy Faden <faden@cottagesystems.net>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

autoplot-0.1.0.tar.gz (3.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page