GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [pyos][visualization] viz.datashade() wrong positioning of matrix elements · Issue #473 · python-graphblas/python-graphblas

[pyos][visualization] viz.datashade() wrong positioning of matrix elements #473

New issue
Copy link
New issue
Copy link
Open
Open
[pyos][visualization] viz.datashade() wrong positioning of matrix elements#473
Copy link

Description

@szhorvat
szhorvat
opened on Jun 25, 2023
Issue body actions

I'm not sure if something's wrong with my setup, but with viz.datashade() I am not getting the output I expect. Here's an example:

import graphblas as gb
M=gb.Matrix.from_edgelist([(0,1),(0,3),(2,3)])
gb.viz.datashade(M)
image

This is a 3-by-4 matrix, and this is reflected in the axes ranges ([0,3] vertical, [0,4] horizontal). However, the matrix elements only appear if I zoom out, and they're not positioned at the coordinates corresponding to their indices:

image

Part of: pyOpenSci/software-submission#81

Activity

  1. szhorvat
    changed the title [-][pyos] viz.datashade() wrong positioning of matrix elements[/-] [+][pyos][visualization] viz.datashade() wrong positioning of matrix elements[/+] on Jun 25, 2023
  2. eriknw commented on Jun 27, 2023

    @eriknw
    eriknw
    on Jun 27, 2023
    Member
    More actions

    Oh no! That doesn't look right.

    Testing of viz requires that the output is rendered and viewable, not just that the code runs, so we need to enhance our docs.

    One option I've been considering is to have visualization in a different package similar to how we have algorithms in graphblas-algorithms. I like this for many reasons, including:

    • dependencies handled by it
    • it can have its own documentation
    • this helps keep the scope of python-graphblas narrow (but I still like having most conversions in python-graphblas)
    • other maintainers can "own" a significant package
    • it can be more inviting and easier to contribute to for new contributors

    I think the last point is really important. I think we can make the "barrier of entry" to contribute to graphblas-algorithms and e.g. graphblaz-viz much lower compared to python-graphblas.

  3. eriknw commented on Jun 29, 2023

    @eriknw
    eriknw
    on Jun 29, 2023
    Member
    More actions

    We discussed viz in our weekly meeting this week.

    Since viz is not a primary purpose of python-graphblas, for now we would like to keep our viz functions to a minimum that we need for documentation. We're open to creating a new graphblas-viz package that could host functions such as datashade. In general, conversions to other common formats (for example, igraph) that have their own visualization should be what we primarily support.

    I'm sad to learn that gb.viz.datashade isn't working properly for you, so thanks for raising the issue. Since it's not a high priority for us atm, maybe we can add some notes to the docstring about it being experimental.

    Reacted by Szabolcs Horvát
  4. szhorvat commented on Jun 29, 2023

    @szhorvat
    szhorvat
    on Jun 29, 2023
    Author
    More actions

    Since viz is not a primary purpose of python-graphblas, for now we would like to keep our viz functions to a minimum that we need for documentation.

    This is reasonable.

  5. eriknw
    added 2 commits that reference this issue on Aug 6, 2026

    Fix viz.datashade cell positioning and separate reciprocal edges in v…

    80a2f44

    Fix viz.datashade cell positioning and separate reciprocal edges in v…

    1f1e16d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.