From Fedora Project Wiki

Revision as of 06:55, 5 September 2013 by Amitksaha (talk | contribs) (→‎gnuplot)

(Refer: Scientific_Spin)

C programming

Including use of math, gsl

C++ programming

Use of libraries such as Bliz++ and others

Java programming

Use of libraries

Numpy & SciPy

SymPy

IPython (including notebook)

matplotlib

Please test the following with both Python 2 and Python 3.

  • Basic plotting with the default backend using the pylab module:
# basic plotting with default backend
from pylab import plot, show

plot([1,2,3])
show()

  • Basic plotting with the default backend using the maplotlib package:
# basic plotting using the matplotlib interface
import matplotlib.pyplot as plt

plt.plot([1,2,3])
plt.show()

The default backend is Qt4Agg. The next scripts will test theeTkAgg backend.

  • Basic plotting with the TkAgg backend using the pylab module:
# basic plotting with default backend
import matplotlib
matplotlib.use('TkAgg')

from pylab import plot, show

plot([1,2,3])
show()


  • Basic plotting with the TkAgg backend using the maplotlib package:
# basic plotting using the matplotlib interface
import matplotlib
matplotlib.use('tkagg')

import matplotlib.pyplot as plt
plt.plot([1,2,3])
plt.show()


gnuplot

  • Plotting with default terminal (qt)
$       gnuplot

        G N U P L O T
        Version 4.6 patchlevel 3    last modified 2013-04-12 
        Build System: Linux x86_64

        Copyright (C) 1986-1993, 1998, 2004, 2007-2013
        Thomas Williams, Colin Kelley and many others

        gnuplot home:     http://www.gnuplot.info
        faq, bugs, etc:   type "help FAQ"
        immediate help:   type "help"  (plot window: hit 'h')

Terminal type set to 'qt'
gnuplot>  p sin(x)
  • Try other terminals (fig, latex)