fa029aa5d2f61c3dfc3a3324e9e5b12332440988,ggplot/geoms/geom_dotplot.py,geom_dotplot,draw_group,#Any#Any#Any#Any#,121

Before Change


        ranges = coord.range(panel_scales)
        // For perfect circles the width/height of the circle(ellipse)
        // should factor in the figure dimensions
        fw, fh = ax.figure.get_figwidth(), ax.figure.get_figheight()
        factor = ((fw/fh) *
                  np.ptp(ranges.y)/np.ptp(ranges.x))
        size = data.loc[0, "binwidth"] * params["dotsize"]

After Change



        // For perfect circles the width/height of the circle(ellipse)
        // should factor in the dimensions of axes
        bbox = ax.get_window_extent().transformed(
            ax.figure.dpi_scale_trans.inverted())
        ax_width, ax_height = bbox.width, bbox.height

        factor = ((ax_width/ax_height) *
                  np.ptp(ranges.y)/np.ptp(ranges.x))
        size = data.loc[0, "binwidth"] * params["dotsize"]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: has2k1/plotnine
Commit Name: fa029aa5d2f61c3dfc3a3324e9e5b12332440988
Time: 2016-04-26
Author: has2k1@gmail.com
File Name: ggplot/geoms/geom_dotplot.py
Class Name: geom_dotplot
Method Name: draw_group


Project Name: broadinstitute/keras-rcnn
Commit Name: ad6f05fa2a4510a310f37b8a73548614dc2f8df8
Time: 2018-04-12
Author: allen.goodman@icloud.com
File Name: keras_rcnn/callbacks/_tensorboard.py
Class Name:
Method Name: _generate_image


Project Name: matplotlib/matplotlib
Commit Name: 608a6e6c14a8135f82454959ad9f2e09b32156d4
Time: 2020-10-08
Author: jklymak@gmail.com
File Name: lib/mpl_toolkits/mplot3d/axes3d.py
Class Name: Axes3D
Method Name: apply_aspect