datamole-ai / edvart

An open-source Python library for Data Scientists & Data Analysts designed to simplify the exploratory data analysis process. Using Edvart, you can explore data sets and generate reports with minimal coding.
https://datamole-ai.github.io/edvart/
MIT License
48 stars 7 forks source link

feat: add `equal_scale_axes` to 2D scatter plot #40

Closed mbelak-dtml closed 1 year ago

mbelak-dtml commented 1 year ago

It works as expected for interactive plots: image but it does not for noninteractive: image The code used to generate the plots:

import numpy as np
import pandas as pd
from edvart.plots import scatter_plot_2d

df = pd.DataFrame({'a': np.arange(10) * 200, 'b': np.arange(10)})

scatter_plot_2d(df=df, x='a', y='b', equal_scale_axes=True, interactive=False)

Thanks, fixed by using a different setting to scale the axes.