All articles

  1. Newton interpolation and numerical differentiation

    Fri 15 April 2011
    By vene

    I am sharing some Python code code that I wrote as a school assignment. This computes the Newton form of the interpolation polynomial of a given set of points, and allows for the evaluation of both the polynomial and its derivative, at a given point. This is an accurate way ...

  2. Tweaking matplotlib subplots for pretty results

    Mon 04 April 2011
    By vene

    When plotting multiple subplots using matplotlib, the axes rarely look pretty with the default configuration. Since matplotlib figures are abstract objects, designed for consistency in print as well as on screen, tweaking their layout can get tricky.

    An example

    The following code is taken from the face recognition example in ...