Code Search for Developers
 
 
  

make.py from matplotlib at Krugle


Show make.py syntax highlighted

#!/usr/bin/env python

import os, sys

def clean():
    print 'cleaning...'
    os.system('rm -f *.bbl *.blg *.dvi *.log *.toc *.aux *.tex *.out *~ #*')
    os.system('rm -f examples/*~ examples/*.pyc')

def pdf():
    print 'making pdf'
    #os.system('lyx -e pdf main.lyx')
    os.system('./lyxport2 --pdf main')

def ps():
    print 'making ps'
    #os.system('lyx -e pdf main.lyx')
    os.system('./lyxport2 --ps main')

def dist():
    pdf()
    try:
        os.symlink('main.pdf','practical_scicomp_py.pdf')
    except OSError:
        pass
    
for arg in sys.argv[1:]:
    try:
        exec arg
    except NameError:
        raise NameError('Unrecognized command "%s"' % arg)
    else:
        exec arg+'()'




See more files for this project here

matplotlib

Matplotlib is a pure python plotting library with the goal of making\r\npublication quality plots using a syntax familiar to matlab users. \r\nThe library uses Numeric for handling large\r\ndata sets and supports a variety of output backends

Project homepage: http://sourceforge.net/projects/matplotlib
Programming language(s): C,C++,Python
License: other

  code/
    parse_file.py
  data/
    images/
      r1001.ima
      r1002.ima
      r1003.ima
      r1004.ima
      r1005.ima
      r1006.ima
      r1007.ima
      r1008.ima
      r1009.ima
      r1010.ima
      r1011.ima
      r1012.ima
      r1013.ima
      r1014.ima
      r1015.ima
      r1016.ima
      r1017.ima
      r1018.ima
      r1019.ima
      r1020.ima
      r1021.ima
      r1022.ima
      r1023.ima
      r1024.ima
      r1025.ima
      r1026.ima
      r1027.ima
      r1028.ima
      r1029.ima
      r1030.ima
      r1031.ima
      r1032.ima
      r1033.ima
      r1034.ima
      r1035.ima
      r1036.ima
      r1037.ima
      r1038.ima
      r1039.ima
      r1040.ima
      r1041.ima
      r1042.ima
      r1043.ima
      r1044.ima
      r1045.ima
      r1046.ima
      r1047.ima
      r1048.ima
      r1049.ima
      r1050.ima
      r1051.ima
      r1052.ima
      r1053.ima
      r1054.ima
      r1055.ima
      r1056.ima
      r1057.ima
      r1058.ima
      r1059.ima
      r1060.ima
    ascii_data.dat
    bighead.vtk
    family.csv
    ratner.png
  examples/
    scipy/
    .matplotlibrc
    README
    WallisPi.py
    WindowLevelInterface.py
    __init__.py
    colors.py
    erathostenes.py
    ip_embed-short.py
    ip_embed.py
    ip_expensive_init.py
    ip_simple.py
    ip_simple2.py
    mayavi_bighead.py
    mpl_agg_oo.py
    mpl_image_ratner.py
    mpl_imshow.py
    mpl_pylab.py
    mpl_set_get.py
    mpl_subplot_demo.py
    parse_file.py
    runall.py
    vtk_hello.py
    vtk_marching_cubes.py
    vtk_slice_viewer.py
    weave_callback.py
    weave_cplx.py
    weave_examples.py
    wrap_f2py_setup.py
    wrap_weave.py
  fig/
    scipy/
    hello_world.png
    ipscr_code.png
    ipscr_meth_src.png
    ipscr_traceback.png
    mayavi_basic_anot.jpg
    mayavi_cmd_line_sc_shot.jpg
    mayavi_control_panel_anot.jpg
    mpl_image_hot.png
    mpl_image_jet.png
    mpl_one_two_three.png
    mpl_ratner.png
    mpl_set_get1.png
    mpl_set_get2.png
    mpl_subplot_demo.png
    mpl_toolbar.png
    skin.gif
    vtk_cortex.png
    vtk_pbrain.png
    vtk_slicer.png
    vtkcube.png
  projects/
    sethna/
  snippets/
    load_data.ipy
    mpl_get.ipy
    mpl_plot_line.ipy
    mpl_pylab.ipy
    mpl_set.ipy
    mpl_text_set.ipy
    wrap_sub_sig.f
    wrap_sub_sig_f2py.f
    wrap_sub_sig_f2py2.f
  talk_intro/
    fig/
    intro_python_scicomp.lyx
  REQUIREMENTS
  course_test.py
  intro_to_python.lyx
  ipython_tut.lyx
  lyxport2
  main.lyx
  make.py
  matplotlib_tut.lyx
  mayavi_tut.lyx
  numeric_tut.lyx
  python.bib
  python2.bib
  schedule
  scipy_tour.lyx
  vtk_tut.lyx
  why_python.lyx
  wrapping.lyx