ENH: Basic mplexporter / pyplot interface

The todo list:

* [x] Translate Cyrille's code to vispy submodule + example.
* [x] Make text display.
* [x] Make `Line` based on `Visual`.
* [x] Make `Marker` a visual.
* [x] Complete support for marker properties.
* [x] Change to use `SceneCanvas`. This should facilitate:
* [x] Deal with different plotting coordinate systems.
* [x] Deal with multiple axes.
* [x] Add image support.
* [x] Complete text display options, with proper scaling and location.
* [x] Improve image visual quality and fix view transformation.
* [x] Add tests.
* [ ] Complete support for line properties.
* [ ] Improve line quality (agg).
* [ ] Make it faster (it's *very* slow currently).

Things that would be nice, but not 100% necessary to have things working (and probably difficult):

* [ ] Make collections work (efficiency).

-1 for pyplot_mpl
I prefer just pyplot, which is exactly the name of MPL's package, so it's
clear enough
for our novo API we can use vispy.plot


2014-08-13 18:31 GMT+06:00 Luke Campagnola <notifications@github.com>:

> In examples/basics/pyplot/vispy_pyplot.py:
>
> > @@ -0,0 +1,51 @@
> > +# -*- coding: utf-8 -*-
> > +# Copyright (c) 2014, Vispy Development Team.
> > +# Distributed under the (new) BSD License. See LICENSE.txt for more info.
> > +"""
> > +Example demonstrating how to use vispy.pyplot, which uses mplexporter
> > +to convert matplotlib commands to vispy draw commands.
> > +
> > +Requires matplotlib.
> > +"""
> > +
> > +import numpy as np
> > +import sys
> > +
> > +import vispy.pyplot as plt
>
> Agreed with Almar--I think vispy.pyplot should always exist as a drop-in
> replacement for matplotlib, and we should also begin vispy.plot as our
> own de novo plotting interface. So it might indeed make sense to rename
> pyplot => pyplot_mpl just to make its intended purpose more clear.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/vispy/vispy/pull/358/files#r16172258>.
>