Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug observed while plotting dot plots with small number of samples #20

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

nikhilbhavikatti
Copy link
Collaborator

@nikhilbhavikatti nikhilbhavikatti commented Aug 15, 2024

scale factor was not taken into account when computing dot sizes when samples were less than 100. Correction has been made.

Sample code:
import uadapy.data as data
import uadapy.dr.uapca as uapca
import uadapy.plotting.plots1D as plots1D

distribs_hi = data.load_iris_normal()
distribs_lo = uapca(distribs_hi, dims=2)
fig, axs = plots1D.plot_1d_distribution(distribs_lo, 50, ['dotplot'], titles=["Dimension 1" ,"Dimension 2"])

Result:
Figure_1

Resolves Issue #14

@marinaevers marinaevers merged commit 53dd309 into main Sep 5, 2024
@marinaevers marinaevers deleted the dotplot_bugfix branch September 5, 2024 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants