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

Fixed plot bugs, added functionality, updated images #353

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

ventsiR
Copy link

@ventsiR ventsiR commented Oct 28, 2024

Added functions in awpy.plot.utils that transform in the opposite direction (i.e. from map pixel coordinates to in-game coordinates) and added documentation indicating direction of transform.

Updated the vertigo map images to show the new layout after the map got updated.

Added functions in awpy.plot.utils that transform in the opposite direction (i.e. from map pixel coordinates to in-game coordinates) and added documentation indicating direction of transform.

Updated the vertigo map images to show the new layout after the map got updated.
…ke Vertigo and Nuke)

awpy.plot.utils.is_position_on_lower_level() was always returning False trivially; if statement in line 122 was checking if pos is greater than max instead off less than max.

Added `is_lower` argument to all plot functions. plot() (and _generate_frame_plot() & gif(), which use it) now correctly set alpha to 0.4 for lower points.

heatmap() now ignores points not on the level provided by the user and spits out a warning.

Also cleaned up map_data file.
@ventsiR ventsiR changed the title Added plot.utils functions and updated map images Fixed bug with awpy.plot not handling lower levels points, added plot.utils reverse transform functions and updated map images Oct 29, 2024
vary_alpha functionality of plot.heatmap() was not working correctly because values were set to np.nan before applying alpha arithmetic. I also added vary_alpha_range as an argument for users to set min and max alpha for each point
@ventsiR ventsiR changed the title Fixed bug with awpy.plot not handling lower levels points, added plot.utils reverse transform functions and updated map images Fixed plot bugs, added functionality, updated images Nov 8, 2024
Added ignore_extreme_points argument. When set to True, it will ignore points that are outside of the bounds of the default map image. Previously, code functioned as if this was set to False. Default value is False.
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