Commit graph

12 commits

Author SHA1 Message Date
Derek Thomas
da250793e7 add iterm2 and inline-image support for xontrib-mpl
- requires the use of `iTerm2.app` app for OSX
- requires the presence of package `iterm2_tools` to work
2016-10-09 22:55:42 +08:00
Derek Thomas
99c43bd28e add doc-string for mplhooks.show 2016-10-09 22:53:32 +08:00
Derek Thomas
ffded5cc7c add returns to the doc-string for mpl
- also, remove the link to forked method because the current methodology
has diverged from it entirely
2016-10-09 22:49:30 +08:00
Derek Thomas
0806b0ff48 mpl now relies on a buffer method as the recommended way to save figure
- also, removes reliance on the canvas object in favor of simple
high-level figure methods
2016-10-09 22:47:35 +08:00
Derek Thomas
33c49e55f1 refactor xontrib-mpl
- add environment configuration: $XONTRIB_MPL_MINIMAL_DEFAULT
    + defines if the plot will plot will minimize all plots and reduce
    margins to nearly nothing
    + if false, the printed plot will attempt meet the same layout as
    the figure is meant to contain, but text will look mostly like
    single characters unless font size is particularly large compared to
    the plot area.
- split the array generation into two functions
    + figure_to_rgb_array now is a simple function that generates a
    numpy array of the image representation of the figure.
    + figure_to_tight_array replaces the old figure_to_rgb_array by
    taking in a width, height, and minimal boolean.
2016-10-09 21:23:22 +08:00
Derek Thomas
57d1b3b38e mpl adjusts subplot positions to force no margins
- does not use tight layout anymore
2016-10-03 23:51:27 +09:00
Derek Thomas
f3ea7c273d mpl now iterates over all axes in the figure to change parameters
- also added ylabel, xlabel, and title zeroing, so that they do not
interfere with the layout since it cannot be displayed anyway
2016-10-03 23:42:39 +09:00
Derek Thomas
e7f2d5a281 move mpl figure-copy routine to figure_to_rgb_array
- this simplifies testing
- this also makes more sense because it copies the figure just when
changes are being applied
- the figure is also closed in this function
2016-10-03 15:59:28 +09:00
Derek Thomas
4e941f7ff4 add inline documentation for mpl figure copy/close 2016-10-03 12:51:43 +09:00
Derek Thomas
aec0430622 xontrib-mpl makes a copy of the current figure before modifying it 2016-10-02 17:18:20 +09:00
Leonardo Santagada
61099aab10 small style changes 2016-07-18 11:30:57 +02:00
Anthony Scopatz
8f886ca11a started xontrib 2016-05-08 17:45:03 -04:00
Renamed from xonsh/mplhooks.py (Browse further)