This page is no longer maintained — Please continue to the home page at www.scala-lang.org

best scientific and plotting libraries for use with Scala?

6 replies
Roy Lowrance
Joined: 2011-12-01,
User offline. Last seen 42 years 45 weeks ago.
When I use Python, I use numpy, scipy, and matplotlib?
What is the best choice when using Scala for scientific computing and creation of plot?
- Roy
Jason Zaugg
Joined: 2009-05-18,
User offline. Last seen 38 weeks 5 days ago.
Re: best scientific and plotting libraries for use with Scala?
On Thu, Dec 1, 2011 at 11:27 PM, Roy Lowrance <roy.lowrance@gmail.com> wrote:
When I use Python, I use numpy, scipy, and matplotlib?
What is the best choice when using Scala for scientific computing and creation of plot?

Hi Roy,
I use Scalala [1][2] for vector/matrix math and 2d plotting, and jzy3d [3] (a Java library) for 3d plotting.  
-jason
[1] https://github.com/scalala/Scalala/wiki/QuickStart [2] https://wiki.scala-lang.org/display/SW/ScalaDays+2011+Resources#ScalaDays2011Resources-ScalalaAScalableLinearAlgebraLibrary [3] http://code.google.com/p/jzy3d/
Roy Lowrance
Joined: 2011-12-01,
User offline. Last seen 42 years 45 weeks ago.
Re: best scientific and plotting libraries for use with Scala?
Thank you. -Roy

On Thu, Dec 1, 2011 at 5:36 PM, Jason Zaugg <jzaugg@gmail.com> wrote:
On Thu, Dec 1, 2011 at 11:27 PM, Roy Lowrance <roy.lowrance@gmail.com> wrote:
When I use Python, I use numpy, scipy, and matplotlib?
What is the best choice when using Scala for scientific computing and creation of plot?

Hi Roy,
I use Scalala [1][2] for vector/matrix math and 2d plotting, and jzy3d [3] (a Java library) for 3d plotting.  
-jason
[1] https://github.com/scalala/Scalala/wiki/QuickStart [2] https://wiki.scala-lang.org/display/SW/ScalaDays+2011+Resources#ScalaDays2011Resources-ScalalaAScalableLinearAlgebraLibrary [3] http://code.google.com/p/jzy3d/



--
Roy Lowrance
tel: 347 255 2544
Kevin Wright 2
Joined: 2010-05-30,
User offline. Last seen 26 weeks 4 days ago.
Re: best scientific and plotting libraries for use with Scala?
jzy3d is a new one on me, looks fun :)
You have an open-source Scala wrapper for it, right... ?



On 1 December 2011 22:36, Jason Zaugg <jzaugg@gmail.com> wrote:
On Thu, Dec 1, 2011 at 11:27 PM, Roy Lowrance <roy.lowrance@gmail.com> wrote:
When I use Python, I use numpy, scipy, and matplotlib?
What is the best choice when using Scala for scientific computing and creation of plot?

Hi Roy,
I use Scalala [1][2] for vector/matrix math and 2d plotting, and jzy3d [3] (a Java library) for 3d plotting.  
-jason
[1] https://github.com/scalala/Scalala/wiki/QuickStart [2] https://wiki.scala-lang.org/display/SW/ScalaDays+2011+Resources#ScalaDays2011Resources-ScalalaAScalableLinearAlgebraLibrary [3] http://code.google.com/p/jzy3d/


Russ P.
Joined: 2009-01-31,
User offline. Last seen 1 year 26 weeks ago.
Re: best scientific and plotting libraries for use with Scala?

Since physical units and scalars are fundamental to science, you might
be interested in my "Efficient Scalars in Scala":

http://russp.us/scalar-scala.htm

Here is a summary:

The Scalar class represents physical scalars in the Scala programming
language. The standard arithmetic operators are overloaded to provide
a syntax identical to that for basic numeric types. Operations with
inconsistent units (e.g., adding a time to a length) cause an
exception to be thrown. The Scalar class itself does not define any
units but comes with a complete implementation of the standard SI
metric system of units and many common non-metric units. The design
also allows users to define a specialized or reduced set of physical
units for any particular application or domain. Once an application
has been developed and tested, the Scalar class can be easily disabled
or bypassed -- with no change required to client code -- to achieve
the execution efficiency of operations on basic numeric types, which
are more than an order of magnitude faster.

Note that in the "disabled" or "bypassed" mode, the Scalar class is
replaced with Doubles for efficiency. This mode should be fully
compatible with Scalala or any other scientific library that
represents scalars as Doubles.

--Russ P.

On Dec 1, 2:27 pm, Roy Lowrance wrote:
> When I use Python, I use numpy, scipy, and matplotlib?
>
> What is the best choice when using Scala for scientific computing and
> creation of plot?
>
> - Roy

d_m
Joined: 2010-11-11,
User offline. Last seen 35 weeks 2 days ago.
Re: Re: best scientific and plotting libraries for use with Sca

On Fri, Dec 02, 2011 at 01:02:22PM -0800, Russ P. wrote:
> Since physical units and scalars are fundamental to science, you might
> be interested in my "Efficient Scalars in Scala":
>
> http://russp.us/scalar-scala.htm

Hi Russ,

Relatedly, have you seen Simon Ochsenreiter's units library?

https://github.com/soc/scalax-units

OlegYch
Joined: 2011-06-28,
User offline. Last seen 42 years 45 weeks ago.
Re: best scientific and plotting libraries for use with Scala?

Not sure about numpy or scipy, but I wasn't able to find something
close to matplotlib (e.g. for contour plots).

Thanks, Oleg.

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland