@@ -45,11 +45,18 @@ def get_colormap(cmap):
4545
4646def _check_mask (data , mask ):
4747 """
48-
49- Ensure that data and mask are compatible and add missing values and infinite values.
48+ Ensure that data and mask are compatible and add missing values and infinite values.
5049 Values will be plotted for cells where ``mask`` is ``False``.
51- ``data`` is expected to be a DataFrame; ``mask`` can be an array or
52- a DataFrame.
50+ ``data`` is expected to be a DataFrame; ``mask`` can be an array or a DataFrame.
51+
52+ Parameters
53+ ----------
54+ data
55+ mask
56+
57+ Returns
58+ -------
59+
5360 """
5461 if mask is None :
5562 mask = np .zeros (data .shape , bool )
@@ -94,7 +101,10 @@ def _calculate_luminance(color):
94101def define_cmap (
95102 plot_data , vmin = None , vmax = None , cmap = None , center = None , robust = True , na_col = "white"
96103):
97- """Use some heuristics to set good defaults for colorbar and range."""
104+ """
105+ Use some heuristics to set good defaults for colorbar and range.
106+
107+ """
98108 # plot_data is a np.ma.array instance
99109 # plot_data=np.ma.masked_where(np.asarray(plot_data), plot_data)
100110 # calc_data = plot_data.astype(float).filled(np.nan)
@@ -240,7 +250,10 @@ def axis_ticklabels_overlap(labels):
240250# =============================================================================
241251# =============================================================================
242252def _skip_ticks (labels , tickevery ):
243- """Return ticks and labels at evenly spaced intervals."""
253+ """
254+ Return ticks and labels at evenly spaced intervals.
255+
256+ """
244257 n = len (labels )
245258 if tickevery == 0 :
246259 ticks , labels = [], []
@@ -255,7 +268,10 @@ def _skip_ticks(labels, tickevery):
255268
256269# =============================================================================
257270def _auto_ticks (ax , labels , axis ):
258- """Determine ticks and ticklabels that minimize overlap."""
271+ """
272+ Determine ticks and ticklabels that minimize overlap.
273+
274+ """
259275 transform = ax .figure .dpi_scale_trans .inverted ()
260276 bbox = ax .get_window_extent ().transformed (transform )
261277 size = [bbox .width , bbox .height ][axis ]
0 commit comments