Interpolation between points during plot()

Hi,

When plotting,

    plot(x, y, marker="-")

and its similar markers, what functionality in MPL is responsible for
interpolating between the points? My naive guess is that
interpolation is done in "display" coordinates since everything looks
nice even when zooming in. I inquire because I'd like to make
interpolation between two points follow some other path between the
two points. In other words, I'd like to make a plot structure which
will follow a different type of geodesic. Any tips or pointers in the
right direction would be greatly appreciated.

Thanks!

The drawing between the points is done using the regular "line drawing" commands of the backend. So there isn't really any low-level control over how the line between points is drawn.

As a workaround, however, you can interpolate the data yourself and just pass more points to matplotlib. You may also be interested in this document if you're implementing new geodesics (though it doesn't solve the interpolation problem you describe):

http://matplotlib.sourceforge.net/devel/add_new_projection.html

Mike

T J wrote:

···

Hi,

When plotting,

    plot(x, y, marker="-")

and its similar markers, what functionality in MPL is responsible for
interpolating between the points? My naive guess is that
interpolation is done in "display" coordinates since everything looks
nice even when zooming in. I inquire because I'd like to make
interpolation between two points follow some other path between the
two points. In other words, I'd like to make a plot structure which
will follow a different type of geodesic. Any tips or pointers in the
right direction would be greatly appreciated.

Thanks!

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
  
--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA