Re: jpype with JFreeChart, anyone interested to help?

2008-01-15 Thread Peter Wang
On Jan 14, 8:25 pm, oyster [EMAIL PROTECTED] wrote:
 Thanx
 However I knew Chaco and matplotlib, and I use matplotlib during my
 school days. And as I have pointed out, they are for plot, but not
 chart. If you don't know the difference between plot and chart, you
 can have a look at athttp://www.jfree.org/jfreechart,http://www.rmchart.com
 Yes, it is true we can use plot lib to draw chart, but that is tedious.

What are the chart types that are missing?  Or do you find that the
handling of categorical data is generally lacking?

Charting and plotting are quite related, and I think you might get
better traction trying to add the exact chart and axis types that you
need to an existing package rather than starting yet another plotting
package for Python. :)


-Peter
-- 
http://mail.python.org/mailman/listinfo/python-list


jpype with JFreeChart, anyone interested to help?

2008-01-14 Thread oyster
As you may know, there is no beautiful and free chart(not plot, you
can find the examples at http://www.jfree.org/jfreechart,
http://www.rmchart.com) module for python than runs on
windows/linux/mac osx.

On the other hand, there is a living
package(http://www.jfree.org/jfreechart) for java, and it is nice. So
what about make the interface to JFreeChart via
jpype(http://jpype.sourceforge.net), or rewrite JFreeChart in and for
Python to kick off JVM?

I have tried this, but since I don't know Java, I did not go further.
If anyone can help me with the following code, or organzie a
py_jfreechart team, or put up a pyFreeChart team, that would be great.

Thanks

[code]
import jpype

p=r'e:\Java\j2re1.4.0\bin\client\jvm.dll'
jpype.startJVM(p,
r'-Djava.class.path=h:\jfreechart-1.0.9\lib\jfreechart-1.0.9.jar' )

pkg=jpype.JPackage(org.jfree.data)
print pkg.DefaultKeyedValues
print pkg.DefaultKeyedValues.DefaultKeyedValues
print pkg.DefaultKeyedValues.DefaultKeyedValues.DefaultKeyedValues

jc=jpype.JClass(org.jfree.data.DefaultKeyedValues)
[/code]

[msg]
Java package org.jfree.data.DefaultKeyedValues
Java package org.jfree.data.DefaultKeyedValues.DefaultKeyedValues
Java package org.jfree.data.DefaultKeyedValues.DefaultKeyedValues.DefaultKeyedV
alues
Traceback (most recent call last):
  File H:\jfreechart-1.0.9\lib\b.py, line 11, in module
jc=jpype.JClass(org.jfree.data.DefaultKeyedValues)
  File H:\jfreechart-1.0.9\lib\jpype\_jclass.py, line 54, in JClass
raise _RUNTIMEEXCEPTION.PYEXC(Class %s not found % name)
jpype._jexception.ExceptionPyRaisable: java.lang.Exception: Class
org.jfree.data.DefaultKeyedValues not found
[/msg]
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: jpype with JFreeChart, anyone interested to help?

2008-01-14 Thread Peter Wang
On Jan 14, 6:51 am, oyster [EMAIL PROTECTED] wrote:
 As you may know, there is no beautiful and free chart(notplot, you
 can find the examples 
 athttp://www.jfree.org/jfreechart,http://www.rmchart.com) module for python 
 than runs on
 windows/linux/mac osx.

Actually, may I humbly suggest two:

Chaco: http://code.enthought.com/chaco/gallery/index.shtml

matplotlib: http://matplotlib.sourceforge.net/


-Peter

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: jpype with JFreeChart, anyone interested to help?

2008-01-14 Thread oyster
Thanx
However I knew Chaco and matplotlib, and I use matplotlib during my
school days. And as I have pointed out, they are for plot, but not
chart. If you don't know the difference between plot and chart, you
can have a look at at http://www.jfree.org/jfreechart,
http://www.rmchart.com
Yes, it is true we can use plot lib to draw chart, but that is tedious.

2008/1/15, [EMAIL PROTECTED] [EMAIL PROTECTED]:
 From: Peter Wang [EMAIL PROTECTED]
 To: python-list@python.org
 Date: Mon, 14 Jan 2008 07:58:02 -0800 (PST)
 Subject: Re: jpype with JFreeChart, anyone interested to help?
 On Jan 14, 6:51 am, oyster [EMAIL PROTECTED] wrote:
  As you may know, there is no beautiful and free chart(notplot, you
  can find the examples 
  athttp://www.jfree.org/jfreechart,http://www.rmchart.com) module for python 
  than runs on
  windows/linux/mac osx.

 Actually, may I humbly suggest two:

 Chaco: http://code.enthought.com/chaco/gallery/index.shtml

 matplotlib: http://matplotlib.sourceforge.net/


 -Peter



-- 
http://mail.python.org/mailman/listinfo/python-list