Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mooc-rr
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
83bf50fc8bf8249d7a09086058f8c99d
mooc-rr
Commits
32e2e61f
Commit
32e2e61f
authored
Jul 11, 2020
by
83bf50fc8bf8249d7a09086058f8c99d
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Alternative pour la modification de l'option backend
parent
066b908f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
tuto_emacs_windows.md
documents/tuto_emacs_windows/tuto_emacs_windows.md
+14
-1
No files found.
documents/tuto_emacs_windows/tuto_emacs_windows.md
View file @
32e2e61f
...
@@ -59,7 +59,8 @@ python -m pip install -U matplotlib
...
@@ -59,7 +59,8 @@ python -m pip install -U matplotlib
-
Désactiver les plots interactifs dans matplotlib
-
Désactiver les plots interactifs dans matplotlib
Pour ce faire, il faut d'abord savoir où se trouve le fichier de configuration de matplotlib sous Windows.
Pour ce faire, il faut d'abord savoir où se trouve le fichier de configuration
de
`matplotlib`
sous Windows.
Exécuter le code suivant sous Python
Exécuter le code suivant sous Python
...
@@ -90,6 +91,18 @@ Si vous devez passer d'un logiciel à l'autre, je suggère d'avoir deux fichiers
...
@@ -90,6 +91,18 @@ Si vous devez passer d'un logiciel à l'autre, je suggère d'avoir deux fichiers
`matplotlibrc`
, un avec la ligne
`backend: TkAgg`
et un autre avec la ligne
`matplotlibrc`
, un avec la ligne
`backend: TkAgg`
et un autre avec la ligne
`backend: Agg`
.
`backend: Agg`
.
Une alternative est de conserver l'option
`backend: TkAgg`
dans le fichier
`matplotlibrc`
et de définir l'option
`backend`
avant le chargement de
`pyplot`
:
```
import matplotlib
matplotlib.use('Agg')
from matplotlib import pyplot as plt
```
Il est bien sûr possible d'ajouter les deux lignes dans la définition du
raccourci
`>PP`
dans le fichier
`init.el`
.
---
---
---
---
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment