Skip to content

Improve plot map func #27

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ShawnChen09
Copy link

No description provided.

@ShawnChen09
Copy link
Author

Question:
Is the type of input_data a pd.DataFrame? I tried to access a column's values using indexing in the format input_data[1] or input_data[1:3], but it doesn't work. Therefore, I changed the indexing format to input_data.iloc[:, i], where i represents the column index.

@ShawnChen09
Copy link
Author

Update Details:
I have added two new arguments. The first one is z_type (I am considering renaming it to z_dim). The allowed options are '1d', '2d', and '3d'. The '2d' option will be transformed into '3d' by filling the values of the third axis with 0. The functionality for '1d' remains unchanged. For both '2d' and '3d', the values will be normalized within the range (0, 1) across the three dimensions, representing the (R, G, B) values of the point's color.

The second argument is cax, which accepts a list of floats to control the colorbar's position (left, bottom, width, height). If set to None, the default settings will be used. For z_type = '1d', a colorbar still be used to display the linear relationship, while for '2d' and '3d', a scatter plot will be used to show the distribution of values in RGB space.

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.

1 participant