##// END OF EJS Templates
Backport PR #2384: Adapt inline backend to changes in matplotlib...
Backport PR #2384: Adapt inline backend to changes in matplotlib Matplotlib recently merged https://github.com/matplotlib/matplotlib/pull/1125 that makes it simpler to use objective oriented figure creation by automatically creating the right canvas for the backend. To solve that all backends must provide a backend_xxx.FigureCanvas. This is obviosly missing from the inline backend. The change is needed to make the inline backend work with mpl's 1.2.x branch which is due to released soon. Simply setting the default canvas equal to a Agg canvas appears to work for both svg and png figures but I'm not sure weather that is the right approach. Should the canvas depend on the figure format and provide a svg canvas for a svg figure? (Note that before this change to matplotlib the canvas from a plt.figure call seams to be a agg type in all cases) Edit: I made the pull request against 0.13.1 since it would be good to have this in the stable branch for when mpl is released. Just let me know and I can rebase it against master

File last commit:

r7983:8a12e011
r8562:7d16877a
Show More
pycolor.1
39 lines | 1.4 KiB | application/x-troff | GroffLexer
fperez
Reorganized the directory for ipython/ to have its own dir, which is a bit...
r0 .\" Hey, EMACS: -*- nroff -*-
.\" First parameter, NAME, should be all caps
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
.\" other parameters are allowed: see man(7), man(1)
Fernando Perez
Fix padding of matplotlib figures, after much whining from Stefan :)
r4254 .TH PYCOLOR 1 "July 15, 2011"
fperez
Reorganized the directory for ipython/ to have its own dir, which is a bit...
r0 .\" Please adjust this date whenever revising the manpage.
.\"
.\" Some roff macros, for reference:
.\" .nh disable hyphenation
.\" .hy enable hyphenation
.\" .ad l left justify
.\" .ad b justify to both left and right margins
.\" .nf disable filling
.\" .fi enable filling
.\" .br insert line break
.\" .sp <n> insert n+1 empty lines
.\" for manpage-specific macros, see man(7)
.SH NAME
vivainio
Paul Mueller: pycolorize considers 'no arguments' as 'read data from stdin'"
r646 pycolor \- Colorize a python file or stdin using ANSI and print to stdout.
fperez
Reorganized the directory for ipython/ to have its own dir, which is a bit...
r0 .SH SYNOPSIS
.B pycolor
vivainio
Paul Mueller: pycolorize considers 'no arguments' as 'read data from stdin'"
r646 .RI [ options ]
.RI [ file ]
fperez
Reorganized the directory for ipython/ to have its own dir, which is a bit...
r0 .SH DESCRIPTION
vivainio
Paul Mueller: pycolorize considers 'no arguments' as 'read data from stdin'"
r646 Prints a colorized version of the input file (or standard input if no file is
MinRK
Backport PR #2060: change minus to \- or \(hy in manpages...
r7983 given, or the file name \- is given) to standard out.
fperez
Reorganized the directory for ipython/ to have its own dir, which is a bit...
r0 .SH OPTIONS
.TP
vivainio
Paul Mueller: switch pycolor to use optparse
r645 .B \-h, \-\-help
Output a brief help message.
.TP
.B \-s, \-\-scheme <scheme>
Fernando Perez
Fix padding of matplotlib figures, after much whining from Stefan :)
r4254 Give the color scheme to use. Currently only Linux (default), LightBG, and
NoColor are implemented.
fperez
Reorganized the directory for ipython/ to have its own dir, which is a bit...
r0 .SH AUTHOR
Fernando Perez
Fix padding of matplotlib figures, after much whining from Stefan :)
r4254 pycolor is part of the IPython project (http://ipython.org).
fperez
Reorganized the directory for ipython/ to have its own dir, which is a bit...
r0 This manual page was written by Jack Moffitt <jack@xiph.org>,
Fernando Perez
Fix padding of matplotlib figures, after much whining from Stefan :)
r4254 for the Debian project (but may be used by others). Updated by Fernando Perez
<fernando.perez@berkeley.edu>.