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

[BUG] user reports scale of scene settings does not match the UI ex: .5 in settings changes to 50 in UI #639

Open
DataBoyTX opened this issue Jan 15, 2025 · 0 comments
Assignees
Labels

Comments

@DataBoyTX
Copy link
Contributor

Describe the bug

  • point_size and edge_size - range from 0-100 but in the scene settings, it's required to pass in 0.0 to 1.0 - user requests that these numbers align
  • edge_curvature, edge_opacity and point_opacity are percentages in the UI, so these seem to make sense to enter as 0.0 to 1.0

from user:

Mismatch in names on UI and attributes in Graphistry API. Also, mismatch in the scale of the UI input and what is available on the API. Either update documentation or make the UI and API like-for-like

somewhat related: #633

To Reproduce

import graphistry
import pandas as pd

#graphistry.register(api=3, username='...', password='...', protocol='https', server='hub.graphistry.com')

df = pd.read_csv('https://raw.githubusercontent.com/graphistry/pygraphistry/master/demos/data/honeypot.csv')

g = graphistry.edges(df, 'attackerIP', 'victimIP')

g2 = g.scene_settings(
  point_size=0.2,
  edge_curvature=0.3,
  edge_opacity=0.4,
  point_opacity=0.5
)
g2.plot()

Screenshots
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants