has2k1 / plotnine

Compare 2adfb41 ... +0 ... 77e60be

Coverage Reach
geoms/geom_path.py geoms/geom.py geoms/geom_boxplot.py geoms/geom_dotplot.py geoms/annotation_logticks.py geoms/geom_text.py geoms/annotation_stripes.py geoms/geom_violin.py geoms/geom_map.py geoms/geom_crossbar.py geoms/geom_raster.py geoms/geom_rect.py geoms/geom_rug.py geoms/__init__.py geoms/geom_polygon.py geoms/geom_abline.py geoms/geom_vline.py geoms/geom_smooth.py geoms/annotate.py geoms/geom_ribbon.py geoms/geom_point.py geoms/geom_step.py geoms/geom_segment.py geoms/geom_hline.py geoms/geom_errorbar.py geoms/geom_errorbarh.py geoms/geom_jitter.py geoms/geom_pointrange.py geoms/geom_bar.py geoms/geom_tile.py geoms/geom_spoke.py geoms/geom_label.py geoms/geom_linerange.py geoms/geom_area.py geoms/geom_blank.py geoms/geom_col.py geoms/geom_freqpoly.py geoms/geom_density.py geoms/geom_quantile.py geoms/geom_line.py geoms/geom_sina.py geoms/geom_density_2d.py geoms/geom_pointdensity.py geoms/geom_bin2d.py geoms/geom_qq_line.py geoms/geom_count.py geoms/geom_qq.py geoms/geom_histogram.py stats/smoothers.py stats/stat_bindot.py stats/stat.py stats/stat_ellipse.py stats/binning.py stats/stat_sina.py stats/stat_summary.py stats/stat_density.py stats/stat_density_2d.py stats/stat_bin_2d.py stats/stat_boxplot.py stats/stat_ydensity.py stats/stat_smooth.py stats/stat_summary_bin.py stats/stat_function.py stats/density.py stats/stat_bin.py stats/stat_qq_line.py stats/stat_count.py stats/stat_quantile.py stats/stat_pointdensity.py stats/stat_qq.py stats/stat_sum.py stats/__init__.py stats/distributions.py stats/stat_ecdf.py stats/stat_hull.py stats/stat_identity.py stats/stat_unique.py scales/scale.py scales/scale_color.py scales/scales.py scales/scale_xy.py scales/limits.py scales/__init__.py scales/scale_size.py scales/scale_manual.py scales/scale_identity.py scales/scale_alpha.py scales/scale_stroke.py scales/scale_shape.py scales/scale_linetype.py scales/range.py themes/themeable.py themes/elements.py themes/theme.py themes/seaborn_rcmod.py themes/theme_xkcd.py themes/theme_matplotlib.py themes/__init__.py themes/theme_gray.py themes/theme_538.py themes/theme_seaborn.py themes/theme_linedraw.py themes/theme_classic.py themes/theme_void.py themes/theme_light.py themes/theme_bw.py themes/theme_dark.py themes/theme_minimal.py facets/facet.py facets/strips.py facets/facet_wrap.py facets/facet_grid.py facets/layout.py facets/labelling.py facets/facet_null.py facets/__init__.py guides/guide_colorbar.py guides/guide_legend.py guides/guides.py guides/guide.py guides/guide_axis.py guides/__init__.py utils.py positions/position.py positions/position_dodge2.py positions/position_dodge.py positions/position_stack.py positions/position_jitterdodge.py positions/position_jitter.py positions/position_nudge.py positions/__init__.py positions/position_identity.py positions/position_fill.py ggplot.py mapping/aes.py mapping/evaluation.py mapping/__init__.py layer.py coords/coord.py coords/coord_trans.py coords/coord_flip.py coords/coord_cartesian.py coords/coord_fixed.py coords/__init__.py doctools.py qplot.py animation.py data/__init__.py labels.py __init__.py options.py exceptions.py watermark.py

No flags found

Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.

e.g., #unittest #integration

#production #enterprise

#frontend #backend

Learn more about Codecov Flags here.


@@ -71,6 +71,8 @@
Loading
71 71
        y_is_log = is_log(y_scale)
72 72
        if isinstance(coord, coord_flip):
73 73
            x_is_log, y_is_log = y_is_log, x_is_log
74 +
            x_scale, y_scale = y_scale, x_scale
75 +
            base_x, base_y = base_y, base_x
74 76
75 77
        if 't' in sides or 'b' in sides:
76 78
            if base_x is None:
@@ -163,18 +165,27 @@
Loading
163 165
            'alpha': params['alpha'],
164 166
            'linetype': params['linetype']
165 167
        }
168 +
        # these are already flipped iff coord_flip
166 169
        base_x, base_y = self._check_log_scale(
167 170
            params['base'], sides, panel_params, coord)
168 171
169 172
        if 'b' in sides or 't' in sides:
170 -
            tick_positions = self._calc_ticks(panel_params.x.range, base_x)
173 +
            if isinstance(coord, coord_flip):
174 +
                tick_range = panel_params.y.range
175 +
            else:
176 +
                tick_range = panel_params.x.range
177 +
            tick_positions = self._calc_ticks(tick_range, base_x)
171 178
            for (positions, length) in zip(tick_positions, lengths):
172 179
                data = pd.DataFrame(dict(x=positions, **_aesthetics))
173 180
                super().draw_group(data, panel_params, coord, ax,
174 181
                                   length=length, **params)
175 182
176 183
        if 'l' in sides or 'r' in sides:
177 -
            tick_positions = self._calc_ticks(panel_params.y.range, base_y)
184 +
            if isinstance(coord, coord_flip):
185 +
                tick_range = panel_params.x.range
186 +
            else:
187 +
                tick_range = panel_params.y.range
188 +
            tick_positions = self._calc_ticks(tick_range, base_y)
178 189
            for (positions, length) in zip(tick_positions, lengths):
179 190
                data = pd.DataFrame(dict(y=positions, **_aesthetics))
180 191
                super().draw_group(data, panel_params, coord, ax,

Learn more Showing 1 files with coverage changes found.

Changes in plotnine/geoms/annotation_logticks.py
-1
-2
+3
Loading file...
Files Coverage
plotnine 0.04% 85.25%
Project Totals (153 files) 85.25%
Loading