Utilities#

Saving and loading environment#

save_env(env, filename[, protocol])

Save environment in Python pickle format.

load_env(filename)

Load environment in Python pickle format.

Drawing#

It is hard to provide a proper environment visualization especially when the environment is large and complex. The aim of these functions is to provide a convenient and fast check of environment structure. For a more thorough and beautiful visualization, people can use graph visualization tools to show the state-level detailed environment structure. Notable examples of dedicated and fully-featured graph visualization tools are Cytoscape, Gephi, Graphviz. To use these and other such tools, you can export the NetworkX graph that represents the environment (W.world) into a format that can be read by those tools. More information can be found at Reading and writing graphs - NetworkX. People can also refers to the NetworkX built-in features for graph visualization.

show_area_connection(env[, layout])

Show environment area connections.

show_area(env, area[, show_altitude, figsize])

Show details for one area.