set_tick_direction_spine_visibility#

This notebook is a simple example of the GeoCAT-viz function set_tick_direction_spine_visibility.

# Import packages:

import matplotlib.pyplot as plt
import geocat.viz as gv
# Plot:

# Create figure and axis
fig, ax = plt.subplots(figsize=(6, 6))

# Use geocat.viz.util convenience function to set spines visibility
gv.set_tick_direction_spine_visibility(ax,
                                       tick_direction='in',
                                       top_spine_visible=False,
                                       right_spine_visible=False)

# Display Plot
plt.tight_layout()
plt.show();
../_images/d447c9f6ea87a4a1779eb0400eba7ad696c8b3e9a5f4c56e85483c1d3003c230.png