Skip to content

Commit

Permalink
Finished docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kordejong committed Apr 12, 2024
1 parent d09b750 commit cdbcf64
Show file tree
Hide file tree
Showing 41 changed files with 257 additions and 110 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@

from adaptation_pathways.graph import SequenceGraph
from adaptation_pathways.io import text
from adaptation_pathways.plot import init_axes
from adaptation_pathways.plot import plot_default_sequence_graph as plot
from adaptation_pathways.plot import init_axes, plot_default_sequence_graph


actions, colour_by_action = text.read_actions(
Expand Down Expand Up @@ -44,5 +43,5 @@

_, axes = plt.subplots(layout="constrained")
init_axes(axes)
plot(axes, sequence_graph)
plot_default_sequence_graph(axes, sequence_graph)
plt.show()
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@

from adaptation_pathways.graph import SequenceGraph
from adaptation_pathways.io import text
from adaptation_pathways.plot import init_axes
from adaptation_pathways.plot import plot_default_sequence_graph as plot
from adaptation_pathways.plot import init_axes, plot_default_sequence_graph


actions, colour_by_action = text.read_actions(
Expand Down Expand Up @@ -44,5 +43,5 @@

_, axes = plt.subplots(layout="constrained")
init_axes(axes)
plot(axes, sequence_graph)
plot_default_sequence_graph(axes, sequence_graph)
plt.show()
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@

from adaptation_pathways.graph import SequenceGraph
from adaptation_pathways.io import text
from adaptation_pathways.plot import init_axes
from adaptation_pathways.plot import plot_default_sequence_graph as plot
from adaptation_pathways.plot import init_axes, plot_default_sequence_graph


actions, colour_by_action = text.read_actions(
Expand Down Expand Up @@ -48,5 +47,5 @@

_, axes = plt.subplots(layout="constrained")
init_axes(axes)
plot(axes, sequence_graph)
plot_default_sequence_graph(axes, sequence_graph)
plt.show()
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@

from adaptation_pathways.graph import SequenceGraph
from adaptation_pathways.io import text
from adaptation_pathways.plot import init_axes
from adaptation_pathways.plot import plot_default_sequence_graph as plot
from adaptation_pathways.plot import init_axes, plot_default_sequence_graph


actions, colour_by_action = text.read_actions(
Expand Down Expand Up @@ -55,5 +54,5 @@

_, axes = plt.subplots(layout="constrained")
init_axes(axes)
plot(axes, sequence_graph)
plot_default_sequence_graph(axes, sequence_graph)
plt.show()
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@

from adaptation_pathways.graph import SequenceGraph
from adaptation_pathways.io import text
from adaptation_pathways.plot import init_axes
from adaptation_pathways.plot import plot_default_sequence_graph as plot
from adaptation_pathways.plot import init_axes, plot_default_sequence_graph


actions, colour_by_action = text.read_actions(
Expand Down Expand Up @@ -61,5 +60,5 @@

_, axes = plt.subplots(layout="constrained")
init_axes(axes)
plot(axes, sequence_graph)
plot_default_sequence_graph(axes, sequence_graph)
plt.show()
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@

from adaptation_pathways.graph import SequenceGraph, sequence_graph_to_pathway_graph
from adaptation_pathways.io import text
from adaptation_pathways.plot import init_axes
from adaptation_pathways.plot import plot_default_pathway_graph as plot
from adaptation_pathways.plot import init_axes, plot_default_pathway_graph


actions, colour_by_action = text.read_actions(
Expand Down Expand Up @@ -45,5 +44,5 @@

_, axes = plt.subplots(layout="constrained")
init_axes(axes)
plot(axes, pathway_graph)
plot_default_pathway_graph(axes, pathway_graph)
plt.show()
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@

from adaptation_pathways.graph import SequenceGraph, sequence_graph_to_pathway_graph
from adaptation_pathways.io import text
from adaptation_pathways.plot import init_axes
from adaptation_pathways.plot import plot_default_pathway_graph as plot
from adaptation_pathways.plot import init_axes, plot_default_pathway_graph


actions, colour_by_action = text.read_actions(
Expand Down Expand Up @@ -45,5 +44,5 @@

_, axes = plt.subplots(layout="constrained")
init_axes(axes)
plot(axes, pathway_graph)
plot_default_pathway_graph(axes, pathway_graph)
plt.show()
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@

from adaptation_pathways.graph import SequenceGraph, sequence_graph_to_pathway_graph
from adaptation_pathways.io import text
from adaptation_pathways.plot import init_axes
from adaptation_pathways.plot import plot_default_pathway_graph as plot
from adaptation_pathways.plot import init_axes, plot_default_pathway_graph


actions, colour_by_action = text.read_actions(
Expand Down Expand Up @@ -49,5 +48,5 @@

_, axes = plt.subplots(layout="constrained")
init_axes(axes)
plot(axes, pathway_graph)
plot_default_pathway_graph(axes, pathway_graph)
plt.show()
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@

from adaptation_pathways.graph import SequenceGraph, sequence_graph_to_pathway_graph
from adaptation_pathways.io import text
from adaptation_pathways.plot import init_axes
from adaptation_pathways.plot import plot_default_pathway_graph as plot
from adaptation_pathways.plot import init_axes, plot_default_pathway_graph


actions, colour_by_action = text.read_actions(
Expand Down Expand Up @@ -56,5 +55,5 @@

_, axes = plt.subplots(layout="constrained")
init_axes(axes)
plot(axes, pathway_graph)
plot_default_pathway_graph(axes, pathway_graph)
plt.show()
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@

from adaptation_pathways.graph import SequenceGraph, sequence_graph_to_pathway_graph
from adaptation_pathways.io import text
from adaptation_pathways.plot import init_axes
from adaptation_pathways.plot import plot_default_pathway_graph as plot
from adaptation_pathways.plot import init_axes, plot_default_pathway_graph


actions, colour_by_action = text.read_actions(
Expand Down Expand Up @@ -62,5 +61,5 @@

_, axes = plt.subplots(layout="constrained")
init_axes(axes)
plot(axes, pathway_graph)
plot_default_pathway_graph(axes, pathway_graph)
plt.show()
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@

from adaptation_pathways.graph import SequenceGraph, sequence_graph_to_pathway_map
from adaptation_pathways.io import text
from adaptation_pathways.plot import init_axes
from adaptation_pathways.plot import plot_default_pathway_map as plot
from adaptation_pathways.plot import init_axes, plot_default_pathway_map


actions, colour_by_action = text.read_actions(
Expand Down Expand Up @@ -45,5 +44,5 @@

_, axes = plt.subplots(layout="constrained")
init_axes(axes)
plot(axes, pathway_map)
plot_default_pathway_map(axes, pathway_map)
plt.show()
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@

from adaptation_pathways.graph import SequenceGraph, sequence_graph_to_pathway_map
from adaptation_pathways.io import text
from adaptation_pathways.plot import init_axes
from adaptation_pathways.plot import plot_default_pathway_map as plot
from adaptation_pathways.plot import init_axes, plot_default_pathway_map


actions, colour_by_action = text.read_actions(
Expand Down Expand Up @@ -45,5 +44,5 @@

_, axes = plt.subplots(layout="constrained")
init_axes(axes)
plot(axes, pathway_map)
plot_default_pathway_map(axes, pathway_map)
plt.show()
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@

from adaptation_pathways.graph import SequenceGraph, sequence_graph_to_pathway_map
from adaptation_pathways.io import text
from adaptation_pathways.plot import init_axes
from adaptation_pathways.plot import plot_default_pathway_map as plot
from adaptation_pathways.plot import init_axes, plot_default_pathway_map


actions, colour_by_action = text.read_actions(
Expand Down Expand Up @@ -49,5 +48,5 @@

_, axes = plt.subplots(layout="constrained")
init_axes(axes)
plot(axes, pathway_map)
plot_default_pathway_map(axes, pathway_map)
plt.show()
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@

from adaptation_pathways.graph import SequenceGraph, sequence_graph_to_pathway_map
from adaptation_pathways.io import text
from adaptation_pathways.plot import init_axes
from adaptation_pathways.plot import plot_default_pathway_map as plot
from adaptation_pathways.plot import init_axes, plot_default_pathway_map


actions, colour_by_action = text.read_actions(
Expand Down Expand Up @@ -56,5 +55,5 @@

_, axes = plt.subplots(layout="constrained")
init_axes(axes)
plot(axes, pathway_map)
plot_default_pathway_map(axes, pathway_map)
plt.show()
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@

from adaptation_pathways.graph import SequenceGraph, sequence_graph_to_pathway_map
from adaptation_pathways.io import text
from adaptation_pathways.plot import init_axes
from adaptation_pathways.plot import plot_default_pathway_map as plot
from adaptation_pathways.plot import init_axes, plot_default_pathway_map


actions, colour_by_action = text.read_actions(
Expand Down Expand Up @@ -62,5 +61,5 @@

_, axes = plt.subplots(layout="constrained")
init_axes(axes)
plot(axes, pathway_map)
plot_default_pathway_map(axes, pathway_map)
plt.show()
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@

from adaptation_pathways.graph import SequenceGraph, sequence_graph_to_pathway_map
from adaptation_pathways.io import text
from adaptation_pathways.plot import action_level_by_first_occurrence, init_axes
from adaptation_pathways.plot import plot_classic_pathway_map as plot
from adaptation_pathways.plot import (
action_level_by_first_occurrence,
init_axes,
plot_classic_pathway_map,
)


actions, colour_by_action = text.read_actions(
Expand Down Expand Up @@ -48,5 +51,5 @@

_, axes = plt.subplots(layout="constrained")
init_axes(axes)
plot(axes, pathway_map)
plot_classic_pathway_map(axes, pathway_map)
plt.show()
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@

from adaptation_pathways.graph import SequenceGraph, sequence_graph_to_pathway_map
from adaptation_pathways.io import text
from adaptation_pathways.plot import action_level_by_first_occurrence, init_axes
from adaptation_pathways.plot import plot_classic_pathway_map as plot
from adaptation_pathways.plot import (
action_level_by_first_occurrence,
init_axes,
plot_classic_pathway_map,
)


actions, colour_by_action = text.read_actions(
Expand Down Expand Up @@ -48,5 +51,5 @@

_, axes = plt.subplots(layout="constrained")
init_axes(axes)
plot(axes, pathway_map)
plot_classic_pathway_map(axes, pathway_map)
plt.show()
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@

from adaptation_pathways.graph import SequenceGraph, sequence_graph_to_pathway_map
from adaptation_pathways.io import text
from adaptation_pathways.plot import action_level_by_first_occurrence, init_axes
from adaptation_pathways.plot import plot_classic_pathway_map as plot
from adaptation_pathways.plot import (
action_level_by_first_occurrence,
init_axes,
plot_classic_pathway_map,
)


actions, colour_by_action = text.read_actions(
Expand Down Expand Up @@ -52,5 +55,5 @@

_, axes = plt.subplots(layout="constrained")
init_axes(axes)
plot(axes, pathway_map)
plot_classic_pathway_map(axes, pathway_map)
plt.show()
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@

from adaptation_pathways.graph import SequenceGraph, sequence_graph_to_pathway_map
from adaptation_pathways.io import text
from adaptation_pathways.plot import action_level_by_first_occurrence, init_axes
from adaptation_pathways.plot import plot_classic_pathway_map as plot
from adaptation_pathways.plot import (
action_level_by_first_occurrence,
init_axes,
plot_classic_pathway_map,
)


actions, colour_by_action = text.read_actions(
Expand Down Expand Up @@ -59,5 +62,5 @@

_, axes = plt.subplots(layout="constrained")
init_axes(axes)
plot(axes, pathway_map)
plot_classic_pathway_map(axes, pathway_map)
plt.show()
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@

from adaptation_pathways.graph import SequenceGraph, sequence_graph_to_pathway_map
from adaptation_pathways.io import text
from adaptation_pathways.plot import action_level_by_first_occurrence, init_axes
from adaptation_pathways.plot import plot_classic_pathway_map as plot
from adaptation_pathways.plot import (
action_level_by_first_occurrence,
init_axes,
plot_classic_pathway_map,
)


actions, colour_by_action = text.read_actions(
Expand Down Expand Up @@ -65,5 +68,5 @@

_, axes = plt.subplots(layout="constrained")
init_axes(axes)
plot(axes, pathway_map)
plot_classic_pathway_map(axes, pathway_map)
plt.show()
6 changes: 3 additions & 3 deletions documentation/use/plot.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Plotting pathways
The package contains two command-line applications. One is called ``ap_plot_graphs`` and can
be used to gain insight into various kinds of graphs used to store information about pathways,
and one is called ``ap_plot_pathway_map`` and can be used to visualize pathway maps in the
so-called :const:`CLASSIC <adaptation_pathways.plot.util.PathwayMapLayout.CLASSIC>` layout.
so-called :const:`CLASSIC <adaptation_pathways.plot.pathway_map.plot.PathwayMapLayout.CLASSIC>` layout.


``ap_plot_graphs``
Expand All @@ -23,7 +23,7 @@ See also:

This command takes information about pathways as input, and outputs a plot of the sequence
graph, a plot of the pathway graph and a plot of the pathway map in :const:`DEFAULT
<adaptation_pathways.plot.util.PathwayMapLayout.DEFAULT>` layout.
<adaptation_pathways.plot.pathway_map.plot.PathwayMapLayout.DEFAULT>` layout.

Example for creating plots from ``my_pathways-action.txt`` and ``my_pathways-sequence.txt``
(or ``my_pathways.apw``) to ``./my_pathways-sequence_graph.pdf``,
Expand All @@ -43,7 +43,7 @@ See also:
:class:`PathwayMap <adaptation_pathways.graph.pathway_map.PathwayMap>`

This command takes information about pathways as input, and outputs a single plot containing
the pathway map in :const:`CLASSIC <adaptation_pathways.plot.util.PathwayMapLayout.CLASSIC>`
the pathway map in :const:`CLASSIC <adaptation_pathways.plot.pathway_map.plot.PathwayMapLayout.CLASSIC>`
layout.

Example for creating a plot from ``my_pathways-action.txt`` and ``my_pathways-sequence.txt``
Expand Down
Loading

0 comments on commit cdbcf64

Please sign in to comment.