File: debianization-documentation-freeze-plot_iplotx.patch

package info (click to toggle)
python-igraph 1.0.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,612 kB
  • sloc: ansic: 25,204; python: 22,041; sh: 118; makefile: 35; sed: 2
file content (142 lines) | stat: -rw-r--r-- 4,696 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
Description: debianization: documentation: freeze: gallery example: plot_iplotx
 This patch freeze the gallery example doc/examples_sphinx-gallery/plot_iplotx
 as the python3 module iplotx is not supported by Debian at the time of
 packaging. This is a temporary patch that must be removed once the
 aforementioned module is supported.
Origin: vendor, Debian
Forwarded: not-needed
Author: Jerome Benoit <calculus@rezozer.net>
Last-Update: 2025-10-25

--- a/doc/examples_sphinx-gallery/plot_iplotx.py
+++ /dev/null
@@ -1,63 +0,0 @@
-"""
-.. _tutorials-iplotx:
-
-==============================
-Visualising graphs with iplotx
-==============================
-``iplotx`` (https://iplotx.readthedocs.io) is a library for visualisation of graphs/networks
-with direct compatibility with both igraph and NetworkX. It uses ``matplotlib`` behind the
-scenes so the results are compatible with the current igraph matplotlib backend and many
-additional chart types (e.g. bar charts, annotations).
-
-Compared to the standard visualisations shipped with igraph, ``iplotx`` offers:
-
-- More styling options
-- More consistent behaviour across DPI resolutions and backends
-- More consistent matplotlib artists for plot editing and animation
-
-"""
-
-import igraph as ig
-import iplotx as ipx
-
-# Construct a graph with 5 vertices
-n_vertices = 5
-edges = [(0, 1), (0, 2), (0, 3), (0, 4), (1, 2), (1, 3), (1, 4), (3, 4)]
-g = ig.Graph(n_vertices, edges)
-
-# Set attributes for the graph, nodes, and edges
-g["title"] = "Small Social Network"
-g.vs["name"] = [
-    "Daniel Morillas",
-    "Kathy Archer",
-    "Kyle Ding",
-    "Joshua Walton",
-    "Jana Hoyer",
-]
-g.vs["gender"] = ["M", "F", "F", "M", "F"]
-g.es["married"] = [False, False, False, False, False, False, False, True]
-
-# Set individual attributes
-g.vs[1]["name"] = "Kathy Morillas"
-g.es[0]["married"] = True
-
-# Plot using iplotx
-ipx.network(
-    g,
-    layout="circle",  # print nodes in a circular layout
-    vertex_marker="s",
-    vertex_size=45,
-    vertex_linewidth=2,
-    vertex_facecolor=[
-        "lightblue" if gender == "M" else "deeppink" for gender in g.vs["gender"]
-    ],
-    vertex_label_color=[
-        "black" if gender == "M" else "white" for gender in g.vs["gender"]
-    ],
-    vertex_edgecolor="black",
-    vertex_labels=[name.replace(" ", "\n") for name in g.vs["name"]],
-    edge_linewidth=[2 if married else 1 for married in g.es["married"]],
-    edge_color=["#7142cf" if married else "#AAA" for married in g.es["married"]],
-    edge_padding=3,
-    aspect=1.0,
-)
--- /dev/null
+++ b/doc/examples_sphinx-gallery/plot_iplotx.py.upkg
@@ -0,0 +1,63 @@
+"""
+.. _tutorials-iplotx:
+
+==============================
+Visualising graphs with iplotx
+==============================
+``iplotx`` (https://iplotx.readthedocs.io) is a library for visualisation of graphs/networks
+with direct compatibility with both igraph and NetworkX. It uses ``matplotlib`` behind the
+scenes so the results are compatible with the current igraph matplotlib backend and many
+additional chart types (e.g. bar charts, annotations).
+
+Compared to the standard visualisations shipped with igraph, ``iplotx`` offers:
+
+- More styling options
+- More consistent behaviour across DPI resolutions and backends
+- More consistent matplotlib artists for plot editing and animation
+
+"""
+
+import igraph as ig
+import iplotx as ipx
+
+# Construct a graph with 5 vertices
+n_vertices = 5
+edges = [(0, 1), (0, 2), (0, 3), (0, 4), (1, 2), (1, 3), (1, 4), (3, 4)]
+g = ig.Graph(n_vertices, edges)
+
+# Set attributes for the graph, nodes, and edges
+g["title"] = "Small Social Network"
+g.vs["name"] = [
+    "Daniel Morillas",
+    "Kathy Archer",
+    "Kyle Ding",
+    "Joshua Walton",
+    "Jana Hoyer",
+]
+g.vs["gender"] = ["M", "F", "F", "M", "F"]
+g.es["married"] = [False, False, False, False, False, False, False, True]
+
+# Set individual attributes
+g.vs[1]["name"] = "Kathy Morillas"
+g.es[0]["married"] = True
+
+# Plot using iplotx
+ipx.network(
+    g,
+    layout="circle",  # print nodes in a circular layout
+    vertex_marker="s",
+    vertex_size=45,
+    vertex_linewidth=2,
+    vertex_facecolor=[
+        "lightblue" if gender == "M" else "deeppink" for gender in g.vs["gender"]
+    ],
+    vertex_label_color=[
+        "black" if gender == "M" else "white" for gender in g.vs["gender"]
+    ],
+    vertex_edgecolor="black",
+    vertex_labels=[name.replace(" ", "\n") for name in g.vs["name"]],
+    edge_linewidth=[2 if married else 1 for married in g.es["married"]],
+    edge_color=["#7142cf" if married else "#AAA" for married in g.es["married"]],
+    edge_padding=3,
+    aspect=1.0,
+)