diff --git a/layouts/partials/scientific-domains.html b/layouts/partials/scientific-domains.html index 44b7760d2c..7b885f45f6 100644 --- a/layouts/partials/scientific-domains.html +++ b/layouts/partials/scientific-domains.html @@ -15,16 +15,16 @@ Statistical Computing Signal Processing Image Processing - Symbolic Computing + Graphs and Networks Astronomy Processes Cognitive Psychology A computer chip with an atomic symbol. A line graph with the line moving up. - A bar chart wiht positive and negative values. + A bar chart with positive and negative values. An photograph of the sun and mountains. - Multiple mathematical symbols on graph paper. + A simple graph. A telescope and multiple planets. A human head with gears. @@ -33,7 +33,7 @@ Pandas SciPy Scikit-image - SymPy + NetworkX AstroPy PsychoPy @@ -42,7 +42,7 @@ statsmodels PyWavelets OpenCV - + graph-tool SunPy @@ -51,10 +51,19 @@ Seaborn - + igraph SpacePy + + + + + + PyGSP + + + Bioinformatics @@ -71,7 +80,7 @@ Four mathematical symbols. A three-dimensional graph with a box. A conical flask and test tube. - The Earth surronded by four circling arrows. + The Earth surrounded by four circling arrows. A human hand tapping a browser window. diff --git a/static/images/content_images/sc_dom_img/graph.py b/static/images/content_images/sc_dom_img/graph.py new file mode 100644 index 0000000000..8b06348a75 --- /dev/null +++ b/static/images/content_images/sc_dom_img/graph.py @@ -0,0 +1,42 @@ +import networkx as nx +import matplotlib as mpl +import matplotlib.pyplot as plt +import matplotlib.patches as patches +import matplotlib.lines as lines + +mpl.rcParams['patch.antialiased'] = True +mpl.rcParams['lines.antialiased'] = True + +# create graph +G = nx.Graph() +G.add_edge(1, 2) +G.add_edge(1, 3) +G.add_edge(1, 5) +G.add_edge(2, 3) +G.add_edge(3, 4) +G.add_edge(4, 5) + +# set node positions and drawing options +pos = {1: (0, 0), 2: (-1, 0.3), 3: (2, 0.17), 4: (4, 0.255), 5: (5, 0.03)} +options = { + "node_size": 4000, + "node_color": "white", + "edge_color": "black", + "edgecolors": "black", + "linewidths": 20, + "width": 20, +} + +# draw graph +nx.draw(G, pos, **options) +ax = plt.gca() +ax.margins(0.10) +plt.axis("off") +plt.savefig("sd6-large.svg") + +# set the width to 130 pixels with the following command: +# $ rsvg-convert -a -w 160 -f svg sd6-large.svg -o sd6.svg + +# if you want to blur the lines +# $ convert sd6-large.svg -blur 0x8 sd6-blur.svg +# $ rsvg-convert -a -w 160 -f svg sd6-blur.svg -o sd6.svg diff --git a/static/images/content_images/sc_dom_img/sd6.png b/static/images/content_images/sc_dom_img/sd6.png deleted file mode 100644 index 68cd0a1d9c..0000000000 Binary files a/static/images/content_images/sc_dom_img/sd6.png and /dev/null differ diff --git a/static/images/content_images/sc_dom_img/sd6.svg b/static/images/content_images/sc_dom_img/sd6.svg new file mode 100644 index 0000000000..2699809eed --- /dev/null +++ b/static/images/content_images/sc_dom_img/sd6.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + +