Skip to content
This repository was archived by the owner on Dec 4, 2024. It is now read-only.

Commit a685242

Browse files
committed
Use matplotlib backend
1 parent 9fbbbd0 commit a685242

File tree

5 files changed

+10
-0
lines changed

5 files changed

+10
-0
lines changed

Pegasus_Embedding_Video/draw_yield.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# limitations under the License.
1414

1515
from pegasus_graph import P6
16+
import matplotlib
17+
matplotlib.use("agg")
1618
from matplotlib import pyplot as plt
1719
import dwave_networkx as dnx
1820

Pegasus_Embedding_Video/embed_draw_clique.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# limitations under the License.
1414

1515
from pegasus_graph import P16
16+
import matplotlib
17+
matplotlib.use("agg")
1618
from matplotlib import pyplot as plt
1719
import networkx as nx, dwave_networkx as dnx
1820

Pegasus_Embedding_Video/embed_draw_random.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# limitations under the License.
1414

1515
from pegasus_graph import P6
16+
import matplotlib
17+
matplotlib.use("agg")
1618
from matplotlib import pyplot as plt, colors as mpl_color
1719
import networkx as nx, dwave_networkx as dnx, minorminer
1820

Pegasus_Embedding_Video/embed_draw_sparse.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
from pegasus_graph import P6
1616
import dwave_networkx as dnx, networkx as nx
17+
import matplotlib
18+
matplotlib.use("agg")
1719
from matplotlib import pyplot as plt, colors as mpl_color
1820

1921
from minorminer import layout

Pegasus_Embedding_Video/embed_draw_sparse2.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
from pegasus_graph import P16, P6
1616
import minorminer.layout as mml, dwave_networkx as dnx, networkx as nx
17+
import matplotlib
18+
matplotlib.use("agg")
1719
from matplotlib import pyplot as plt, colors as mpl_color
1820

1921
if False:

0 commit comments

Comments
 (0)