pygraphistry icon indicating copy to clipboard operation
pygraphistry copied to clipboard

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

Open DataBoyTX opened this issue 10 months ago • 0 comments

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: https://github.com/graphistry/pygraphistry/issues/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

DataBoyTX avatar Jan 15 '25 19:01 DataBoyTX