Skip to content

Allow to define a custom matplolib backend for plotting #150

Merged
fabianp merged 1 commit intopythonprofilers:masterfrom
rth:agg-backend
Jun 13, 2017
Merged

Allow to define a custom matplolib backend for plotting #150
fabianp merged 1 commit intopythonprofilers:masterfrom
rth:agg-backend

Conversation

@rth
Copy link
Copy Markdown
Contributor

@rth rth commented Jun 13, 2017

Partially fixes #121 by adding a --backend option to mprof plot as suggested in this comment. This can be used e.g. to specify the Agg backend to make the plots on a remote server without a $DISPLAY defined.

Also moving the first matplotlib import after the argument parsing, so that mprof plot --help would work even if matplotlib is not installed, and printing the detailed error when matplotlib fails to import.

@fabianp fabianp merged commit 1eff08e into pythonprofilers:master Jun 13, 2017
@fabianp
Copy link
Copy Markdown
Collaborator

fabianp commented Jun 13, 2017

Thanks @rth !

@rth rth deleted the agg-backend branch June 13, 2017 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Graph plotting to shell/terminal console

2 participants