I am working on a program which takes a user input and generates an output as a map projection plot. The easiest map projection library that I have found is matplotlib-basemap, written in python a language I am not much familier with (I work on Java ).I have written the user interface in Java. Currently I am executing the python code and sending command arrays with data using Runtime and exec() command calling the ".py" file. This exectues the command and shows the plot as a separate window.
My Question is this: Is it possible to embed this basemap (Interactive with Zoom features) on a Jpanel? Or on a python GUI which can then be embedded on a JPanel? I know I can save the image generated by matplotlib as a file which can be fixed on a panel, but then it won't be interactive, The Zoom features won't be available then. Or is using a Java based tool rather than basemap is more appropriate?(I haven't found any as good)
----Edit on 22nd May 2013------
Jython is not a solution as matplotlib is incompatible with it. Doing the whole thing in python I agree will be optimum but this is what I have to work with.
JACOB Jar: I wasn't able to find an example code showing how to embed a seperate application(basemap) on a JPanel or JFrame.
Currently I am planning on embedding the basemap into a wxpython GUI and then use sockets to communicate between the two languages.
TCP/IP Socket with Server Java and Client Python.